From nobody Tue Mar 28 21:26:44 2023 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PmN6c59CFz42SV7 for ; Tue, 28 Mar 2023 21:26:48 +0000 (UTC) (envelope-from andrew_terekhov@yahoo.com) Received: from sonic315-21.consmr.mail.ne1.yahoo.com (sonic315-21.consmr.mail.ne1.yahoo.com [66.163.190.147]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PmN6c1qS3z4QVB for ; Tue, 28 Mar 2023 21:26:48 +0000 (UTC) (envelope-from andrew_terekhov@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1680038806; bh=fSd7lyvUiE77eth+aqj3aPtxJ2dsbgAl5HYc9qH3wG8=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=ED3c4DHMOvsNg5IDVUwe2GYIGfVrQBVhR2u0toiB+7O9nTs1a+2IbUtfFLspaSfvKL45iHFOwm6mJkH6lQ9ON3zDkU38rP8wtuuzqxjB3frw6yz/b9N9f18L+5aTclB9iKdYlinfLqHdKaASw9xxSO7dlmKdDxJJhLH3VSd+K545C6ZX7/kdF5R/dbBFBVRxv7KbSfht1bFHTx9PGBgfhL/CCm8KIJ5nT/ceh82GRs7XFzkKvRWSOESdjV5pJY6LQvCsMtL/nfgP+FSFqAX2d7/ODkCyVDRbdZeDaXz0TRyoAzqfyG6XP6WdltfBdTCPlQ8o4ritI8JxZCwxJg0dPA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1680038806; bh=sHvNYt61OPSgsQX7ThqdUqZF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PHoa Uy6W2KZbcsSnJiT670A1eyaNGJk4tIDa5vK1NvcjksA0xlqrT2I_6ZElfE45wj3CazWPuP9UMQu9 ssvWhRz0Jpx9XncMReSl_HECfvBGtKPwW14yNhIH4AGkzXmQ982OHUx.vuMRgioXQV4fOEfd93o3 OBwvdof3lg72b1dooOK8OOyXyplzT.KKfADK9E_jbpWJyNy9OrIgjv_U0KD1Ue37MR.uy31yJfvK u2am1YadAVVIP2gLb0BUOvSLhv6LyT2_1VX5fyUEJ2Gieqfs5JY0mFggSr6tqsDXyfkKeCLQf10H CL449S8YrW6Egxnew5cNAZfz8g12zXQCantKzhC1an0DpQzDmiBiEJFOgP3Ik_PCXAGmjpCwGXgW zpO_BP8bP9qOONKJTz9HSr3fdgteFNru0_gAKe7l1ccskGXPu8HokKTRhiJaSnF78OpwG_7wDRHp zukY7Ks35cEO4kKVt7teM.V0zLpWgwFO_pFFfKdFDvr7vGbiHauYRY7ZWEqVdfY47a6TfK4hCfEr rlyoqxblZTKfeHbKG6F5G.r7XeGzWQAWYy4BFFzZgzbbZ_qp3mLFE2VSJEDL8XD__sw-- X-Sonic-MF: X-Sonic-ID: 90f0c78a-011f-4c4d-b789-bf4d4ebdc5e3 Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Tue, 28 Mar 2023 21:26:46 +0000 Date: Tue, 28 Mar 2023 21:26:44 +0000 (UTC) From: Andrew Terekhov To: "ports@freebsd.org" , Yuri Message-ID: <446577808.2072737.1680038804540@mail.yahoo.com> In-Reply-To: References: <1889988356.2071741.1680037766388.ref@mail.yahoo.com> <1889988356.2071741.1680037766388@mail.yahoo.com> Subject: Re: Segmentation fault when amule starts List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2072736_1596896837.1680038804537" X-Mailer: WebService/1.1.21284 YMailNorrin X-Rspamd-Queue-Id: 4PmN6c1qS3z4QVB X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N ------=_Part_2072736_1596896837.1680038804537 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks a lot, Yuri, worked like a charm. On Tuesday, March 28, 2023 at 01:19:03 PM GMT-8, Yuri = wrote: =20 =20 Andrew Terekhov wrote: > Hi, >=20 > My system is: >=20 > $ uname -a > FreeBSD obama 13.1-RELEASE-p6 FreeBSD 13.1-RELEASE-p6 GENERIC amd64 >=20 > fully updated wrt to packages and ports. >=20 > I installed amule package and it segfaulted when started. So I enabled > debug info for ports and rebuilt amule as port. What else can I do to > help fix the problem? Try the solution from forums: https://forums.freebsd.org/threads/amule-wont-run-on-freebsd-13-1-release-b= ecause-segmentation-fault-error.87980/post-597909 > Below is where it crashes: >=20 >=20 > $ lldb amule > (lldb) target create "amule" > Current executable set to 'amule' (x86_64). > (lldb) run > Process 22227 launched: '/usr/local/bin/amule' (x86_64) > Process 22227 stopped > * thread #1, name =3D 'amule', stop reason =3D signal SIGSEGV: invalid > address (fault address: 0x10) > =C2=A0=C2=A0=C2=A0 frame #0: 0x0000000801699e85 libcryptopp.so.8`CryptoPP= ::(anonymous > namespace)::SHA256_HashBlock_CXX(state=3D0x0000000000000010, > data=3D0x00007fffffffd440) at sha.cpp:424:5 > =C2=A0=C2=A0 384 =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 385 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 input +=3D SHA1::BLOCKSIZE/sizeof(word32); > =C2=A0=C2=A0 386 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 length -=3D SHA1::BLOCKSIZE; > =C2=A0=C2=A0 387 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 } > =C2=A0=C2=A0 388 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 while (length >=3D= SHA1::BLOCKSIZE); > =C2=A0=C2=A0 389 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 return length; > =C2=A0=C2=A0 390 =C2=A0=C2=A0 =C2=A0} > =C2=A0=C2=A0 391 =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 392 =C2=A0=C2=A0 =C2=A0// **********************************= *************************** > =C2=A0=C2=A0 393 =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 394 =C2=A0=C2=A0 =C2=A0ANONYMOUS_NAMESPACE_BEGIN > =C2=A0=C2=A0 395 =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 396 =C2=A0=C2=A0 =C2=A0#define a(i) T[(0-i)&7] > =C2=A0=C2=A0 397 =C2=A0=C2=A0 =C2=A0#define b(i) T[(1-i)&7] > =C2=A0=C2=A0 398 =C2=A0=C2=A0 =C2=A0#define c(i) T[(2-i)&7] > =C2=A0=C2=A0 399 =C2=A0=C2=A0 =C2=A0#define d(i) T[(3-i)&7] > =C2=A0=C2=A0 400 =C2=A0=C2=A0 =C2=A0#define e(i) T[(4-i)&7] > =C2=A0=C2=A0 401 =C2=A0=C2=A0 =C2=A0#define f(i) T[(5-i)&7] > =C2=A0=C2=A0 402 =C2=A0=C2=A0 =C2=A0#define g(i) T[(6-i)&7] > =C2=A0=C2=A0 403 =C2=A0=C2=A0 =C2=A0#define h(i) T[(7-i)&7] > =C2=A0=C2=A0 404 =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 405 =C2=A0=C2=A0 =C2=A0#define blk0(i) (W[i] =3D data[i]) > =C2=A0=C2=A0 406 =C2=A0=C2=A0 =C2=A0#define blk2(i) > (W[i&15]+=3Ds1(W[(i-2)&15])+W[(i-7)&15]+s0(W[(i-15)&15])) > =C2=A0=C2=A0 407 =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 408 =C2=A0=C2=A0 =C2=A0#define Ch(x,y,z) (z^(x&(y^z))) > =C2=A0=C2=A0 409 =C2=A0=C2=A0 =C2=A0#define Maj(x,y,z) (y^((x^y)&(y^z))) > =C2=A0=C2=A0 410 =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 411 =C2=A0=C2=A0 =C2=A0#define R(i) > h(i)+=3DS1(e(i))+Ch(e(i),f(i),g(i))+SHA256_K[i+j]+(j?blk2(i):blk0(i));\ > =C2=A0=C2=A0 412 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 d(i)+=3Dh(i);h(i)+= =3DS0(a(i))+Maj(a(i),b(i),c(i)) > =C2=A0=C2=A0 413 =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 414 =C2=A0=C2=A0 =C2=A0// for SHA256 > =C2=A0=C2=A0 415 =C2=A0=C2=A0 =C2=A0#define s0(x) (rotrConstant<7>(x)^rot= rConstant<18>(x)^(x>>3)) > =C2=A0=C2=A0 416 =C2=A0=C2=A0 =C2=A0#define s1(x) (rotrConstant<17>(x)^ro= trConstant<19>(x)^(x>>10)) > =C2=A0=C2=A0 417 =C2=A0=C2=A0 =C2=A0#define S0(x) > (rotrConstant<2>(x)^rotrConstant<13>(x)^rotrConstant<22>(x)) > =C2=A0=C2=A0 418 =C2=A0=C2=A0 =C2=A0#define S1(x) > (rotrConstant<6>(x)^rotrConstant<11>(x)^rotrConstant<25>(x)) > =C2=A0=C2=A0 419 =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 420 =C2=A0=C2=A0 =C2=A0void SHA256_HashBlock_CXX(word32 *sta= te, const word32 *data) > =C2=A0=C2=A0 421 =C2=A0=C2=A0 =C2=A0{ > =C2=A0=C2=A0 422 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 word32 W[16]=3D{0}= , T[8]; > =C2=A0=C2=A0 423 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 /* Copy context->s= tate[] to working vars */ > -> 424 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 memcpy(T, state, sizeof(T)); > =C2=A0=C2=A0 425 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 /* 64 operations, = partially loop unrolled */ > =C2=A0=C2=A0 426 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 for (unsigned int = j=3D0; j<64; j+=3D16) > =C2=A0=C2=A0 427 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 { > =C2=A0=C2=A0 428 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 R( 0); R( 1); R( 2); R( 3); > =C2=A0=C2=A0 429 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 R( 4); R( 5); R( 6); R( 7); > =C2=A0=C2=A0 430 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 R( 8); R( 9); R(10); R(11); > =C2=A0=C2=A0 431 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 R(12); R(13); R(14); R(15); > =C2=A0=C2=A0 432 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 } > =C2=A0=C2=A0 433 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 /* Add the working= vars back into context.state[] */ > =C2=A0=C2=A0 434 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 state[0] +=3D a(0)= ; > =C2=A0=C2=A0 435 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 state[1] +=3D b(0)= ; > =C2=A0=C2=A0 436 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 state[2] +=3D c(0)= ; > =C2=A0=C2=A0 437 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 state[3] +=3D d(0)= ; > =C2=A0=C2=A0 438 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 state[4] +=3D e(0)= ; > =C2=A0=C2=A0 439 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 state[5] +=3D f(0)= ; > =C2=A0=C2=A0 440 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 state[6] +=3D g(0)= ; > =C2=A0=C2=A0 441 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 state[7] +=3D h(0)= ; > =C2=A0=C2=A0 442 =C2=A0=C2=A0 =C2=A0} > =C2=A0=C2=A0 443 =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 444 =C2=A0=C2=A0 =C2=A0#undef Ch > (lldb) bt > * thread #1, name =3D 'amule', stop reason =3D signal SIGSEGV: invalid > address (fault address: 0x10) > =C2=A0 * frame #0: 0x0000000801699e85 libcryptopp.so.8`CryptoPP::(anonymo= us > namespace)::SHA256_HashBlock_CXX(state=3D0x0000000000000010, > data=3D0x00007fffffffd440) at sha.cpp:424:5 > =C2=A0=C2=A0=C2=A0 frame #1: 0x000000080169ad1d > libcryptopp.so.8`CryptoPP::SHA256::HashMultipleBlocks(this=3D0x00007fffff= ffd430, input=3D0x00007fffffffd480, length=3D64) at sha.cpp:977:13 > =C2=A0=C2=A0=C2=A0 frame #2: 0x000000080161bcbf > libcryptopp.so.8`CryptoPP::IteratedHashBase CryptoPP::HashTransformation>::Update(unsigned char const*, unsigned > long) [inlined] CryptoPP::IteratedHashBase CryptoPP::HashTransformation>::HashBlock(this=3D0x00007fffffffd430, > input=3D0x00007fffffffd440) at iterhash.h:109:4 > =C2=A0=C2=A0=C2=A0 frame #3: 0x000000080161bca5 > libcryptopp.so.8`CryptoPP::IteratedHashBase CryptoPP::HashTransformation>::Update(this=3D0x00007fffffffd430, > input=3D"^\xd1\U00000013$\U0000001c\xb63\a\U00000019}\x85|\xde=C8=85\x84\= xdbA\xc6\xdfw\xa0\xa0\xff\xe7N\xc0t\xa0\x83\U0000001d\xdd", length=3D32) at= iterhash.cpp:38:4 > =C2=A0=C2=A0=C2=A0 frame #4: 0x00000008016711e0 > libcryptopp.so.8`CryptoPP::RandomPool::IncorporateEntropy(this=3D0x000000= 0000877938, input=3D"^\xd1\U00000013$\U0000001c\xb63\a\U00000019}\x85|\xde= =C8=85\x84\xdbA\xc6\xdfw\xa0\xa0\xff\xe7N\xc0t\xa0\x83\U0000001d\xdd", leng= th=3D32) at randpool.cpp:36:7 > =C2=A0=C2=A0=C2=A0 frame #5: 0x000000080165b27d > libcryptopp.so.8`CryptoPP::AutoSeededRandomPool::Reseed(this=3D0x00000000= 00877938, blocking=3Dfalse, seedSize=3D32) at osrng.cpp:330:2 > =C2=A0=C2=A0=C2=A0 frame #6: 0x0000000000793fbe > amule`CryptoPP::AutoSeededRandomPool::AutoSeededRandomPool(this=3D0x00000= 00000877938, blocking=3Dfalse, seedSize=3D32) at osrng.h:171:4 > =C2=A0=C2=A0=C2=A0 frame #7: 0x0000000000793e3a amule`::__cxx_global_var_= init.1() at > RandomFunctions.cpp:31:39 > =C2=A0=C2=A0=C2=A0 frame #8: 0x0000000000793f7e > amule`_GLOBAL__sub_I_RandomFunctions.cpp at RandomFunctions.cpp:0 > =C2=A0=C2=A0=C2=A0 frame #9: 0x000000080086e0fd ld-elf.so.1 > =C2=A0=C2=A0=C2=A0 frame #10: 0x000000080086c38b ld-elf.so.1 >=20 >=20 >=20 >=20 =20 ------=_Part_2072736_1596896837.1680038804537 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks a lot, Yuri, worked l= ike a charm.

=20
=20
On Tuesday, March 28, 2023 at 01:19:03 PM GMT-8, Yuri &= lt;yuri@aetern.org> wrote:


Andrew Terekhov wrote:
> Hi,
>
> My system is:
>
> $ uname -a
> FreeBSD obama 13.1-REL= EASE-p6 FreeBSD 13.1-RELEASE-p6 GENERIC amd64
>= ;
> fully updated wrt to packages and ports.<= br>
>
> I installed = amule package and it segfaulted when started. So I enabled
> debug info for ports and rebuilt amule as port. What else ca= n I do to
> help fix the problem?

Try the solution from forums:
<= /div>



> Below is where = it crashes:
>
> =
> $ lldb amule
>= (lldb) target create "amule"
> Current execut= able set to 'amule' (x86_64).
> (lldb) run
=
> Process 22227 launched: '/usr/local/bin/amule' = (x86_64)
> Process 22227 stopped
> * thread #1, name =3D 'amule', stop reason =3D signal SIG= SEGV: invalid
> address (fault address: 0x10)<= br>
>     frame #0: 0x0000000801699= e85 libcryptopp.so.8`CryptoPP::(anonymous
> na= mespace)::SHA256_HashBlock_CXX(state=3D0x0000000000000010,
> data=3D0x00007fffffffd440) at sha.cpp:424:5
>    384     
>    385          &= nbsp;  input +=3D SHA1::BLOCKSIZE/sizeof(word32);
>    386         &nbs= p;   length -=3D SHA1::BLOCKSIZE;
> =    387         }
>    388         while = (length >=3D SHA1::BLOCKSIZE);
>  &nbs= p; 389         return length;
>    390     }
>    391     
&g= t;    392     // *********************************= ****************************
>    39= 3     
>    394  = ;   ANONYMOUS_NAMESPACE_BEGIN
> &nbs= p;  395     
>   = ; 396     #define a(i) T[(0-i)&7]
>    397     #define b(i) T[(1-i)&7]
>    398     #define c(= i) T[(2-i)&7]
>    399  &nb= sp;  #define d(i) T[(3-i)&7]
>  =   400     #define e(i) T[(4-i)&7]
>    401     #define f(i) T[(5-i)&= 7]
>    402     #defi= ne g(i) T[(6-i)&7]
>    403 &nbs= p;   #define h(i) T[(7-i)&7]
> &= nbsp;  404     
>  &n= bsp; 405     #define blk0(i) (W[i] =3D data[i])
>    406     #define blk2(i)
<= /div>
> (W[i&15]+=3Ds1(W[(i-2)&15])+W[(i-7)&= 15]+s0(W[(i-15)&15]))
>    407 &= nbsp;   
>    408  &n= bsp;  #define Ch(x,y,z) (z^(x&(y^z)))
&g= t;    409     #define Maj(x,y,z) (y^((x^y)&(y^= z)))
>    410     
>    411     #define R(= i)
> h(i)+=3DS1(e(i))+Ch(e(i),f(i),g(i))+SHA25= 6_K[i+j]+(j?blk2(i):blk0(i));\
>    = 412         d(i)+=3Dh(i);h(i)+=3DS0(a(i))+Maj= (a(i),b(i),c(i))
>    413  &nbs= p;  
>    414    &nbs= p;// for SHA256
>    415   = ;  #define s0(x) (rotrConstant<7>(x)^rotrConstant<18>(x)^(= x>>3))
>    416    &= nbsp;#define s1(x) (rotrConstant<17>(x)^rotrConstant<19>(x)^(x&= gt;>10))
>    417    &n= bsp;#define S0(x)
> (rotrConstant<2>(x)^= rotrConstant<13>(x)^rotrConstant<22>(x))
>    418     #define S1(x)
> (rotrConstant<6>(x)^rotrConstant<11>(x)^rotrCons= tant<25>(x))
>    419  &n= bsp;  
>    420    &n= bsp;void SHA256_HashBlock_CXX(word32 *state, const word32 *data)
<= div dir=3D"ltr">>    421     {
>    422         word3= 2 W[16]=3D{0}, T[8];
>    423  =        /* Copy context->state[] to working vars= */
> -> 424       = ;  memcpy(T, state, sizeof(T));
>  &= nbsp; 425         /* 64 operations, partially= loop unrolled */
>    426  &nb= sp;      for (unsigned int j=3D0; j<64; j+=3D16)
=
>    427       = ;  {
>    428    &nbs= p;        R( 0); R( 1); R( 2); R( 3);
>    429      &nbs= p;      R( 4); R( 5); R( 6); R( 7);
>    430        &nbs= p;    R( 8); R( 9); R(10); R(11);
= >    431          &nbs= p;  R(12); R(13); R(14); R(15);
>  &= nbsp; 432         }
>    433         /* Add the wor= king vars back into context.state[] */
>  = ;  434         state[0] +=3D a(0);
>    435       &= nbsp; state[1] +=3D b(0);
>    436 &= nbsp;       state[2] +=3D c(0);
>    437         state[= 3] +=3D d(0);
>    438    =      state[4] +=3D e(0);
>=    439         state[5] +=3D f(0);=
>    440      &= nbsp;  state[6] +=3D g(0);
>   = 441         state[7] +=3D h(0);
>    442     }
>    443     
>    444     #undef Ch
> (lldb) bt
> * thread #1, name =3D 'am= ule', stop reason =3D signal SIGSEGV: invalid
>= ; address (fault address: 0x10)
>   * fra= me #0: 0x0000000801699e85 libcryptopp.so.8`CryptoPP::(anonymous
> namespace)::SHA256_HashBlock_CXX(state=3D0x000000000000= 0010,
> data=3D0x00007fffffffd440) at sha.cpp:= 424:5
>     frame #1: 0x0000000= 80169ad1d
> libcryptopp.so.8`CryptoPP::SHA256:= :HashMultipleBlocks(this=3D0x00007fffffffd430, input=3D0x00007fffffffd480, = length=3D64) at sha.cpp:977:13
>   &= nbsp; frame #2: 0x000000080161bcbf
> libcrypto= pp.so.8`CryptoPP::IteratedHashBase<unsigned int,
> CryptoPP::HashTransformation>::Update(unsigned char const*, unsi= gned
> long) [inlined] CryptoPP::IteratedHashB= ase<unsigned int,
> CryptoPP::HashTransform= ation>::HashBlock(this=3D0x00007fffffffd430,
&= gt; input=3D0x00007fffffffd440) at iterhash.h:109:4
>     frame #3: 0x000000080161bca5
> libcryptopp.so.8`CryptoPP::IteratedHashBase<unsigned int,<= br>
> CryptoPP::HashTransformation>::Update(thi= s=3D0x00007fffffffd430,
> input=3D"^\xd1\U0000= 0013$\U0000001c\xb63\a\U00000019}\x85|\xde=C8=85\x84\xdbA\xc6\xdfw\xa0\xa0\= xff\xe7N\xc0t\xa0\x83\U0000001d\xdd", length=3D32) at iterhash.cpp:38:4
=
>     frame #4: 0x00000008016711e0=
> libcryptopp.so.8`CryptoPP::RandomPool::Inco= rporateEntropy(this=3D0x0000000000877938, input=3D"^\xd1\U00000013$\U000000= 1c\xb63\a\U00000019}\x85|\xde=C8=85\x84\xdbA\xc6\xdfw\xa0\xa0\xff\xe7N\xc0t= \xa0\x83\U0000001d\xdd", length=3D32) at randpool.cpp:36:7
>     frame #5: 0x000000080165b27d
> libcryptopp.so.8`CryptoPP::AutoSeededRandomPool::Reseed(= this=3D0x0000000000877938, blocking=3Dfalse, seedSize=3D32) at osrng.cpp:33= 0:2
>     frame #6: 0x000000000= 0793fbe
> amule`CryptoPP::AutoSeededRandomPool= ::AutoSeededRandomPool(this=3D0x0000000000877938, blocking=3Dfalse, seedSiz= e=3D32) at osrng.h:171:4
>     = frame #7: 0x0000000000793e3a amule`::__cxx_global_var_init.1() at
=
> RandomFunctions.cpp:31:39
&= gt;     frame #8: 0x0000000000793f7e
> amule`_GLOBAL__sub_I_RandomFunctions.cpp at RandomFunctions.cpp:0
>     frame #9: 0x000000080086e0= fd ld-elf.so.1
>     frame #10:= 0x000000080086c38b ld-elf.so.1
>
>
>
>


------=_Part_2072736_1596896837.1680038804537--