From nobody Tue Mar 28 21:09:26 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 4PmMl94nsWz42RWM for ; Tue, 28 Mar 2023 21:09:57 +0000 (UTC) (envelope-from andrew_terekhov@yahoo.com) Received: from sonic318-20.consmr.mail.ne1.yahoo.com (sonic318-20.consmr.mail.ne1.yahoo.com [66.163.186.82]) (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 4PmMl81cTFz4NMv for ; Tue, 28 Mar 2023 21:09:56 +0000 (UTC) (envelope-from andrew_terekhov@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b="cgTNK+/Y"; spf=pass (mx1.freebsd.org: domain of andrew_terekhov@yahoo.com designates 66.163.186.82 as permitted sender) smtp.mailfrom=andrew_terekhov@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1680037794; bh=iCN4WCxuV8CptjPbkIO/Bv4mQOQkX07k+evfjI9lKiw=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=cgTNK+/YoUDLdZGnHZFmoBRfy+22tnUx6ev6+JWaYj7BLtxM2/uVynxY//As9E++ree5xnYJ8M2R9Z09pj9qRSo3GK33dvYEz9/25KP4eVtPV7HDxZ5kMCuT3xvYkqqnFm3IxTrc01ov2sEzpN0IHRjZnTdsQuxV0/Sud7CJK/FfQp1bOSA41WpS8IPoVn6O7yK21ZlD/vMhZq8LP1jVIBkARG+PmYZbIpOTE3+s200q39Zevu6y+OFnynjrAVOaao9+KkK7prmchgFi6YfeJMY/QI/74fl92E4QNYObtMTZbhK7h7wJ73O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D8KP6Hu0VatxYcucFp93Fze11eOZ8Y_OiARaZEf8Y8HP.g7k3OZQ6pzKsC MIQ28RdOgqzcVtEUWYK5XFF9vkfbfp2P8nj9IhLrgF_KE4BeJfJT1GJLAQCj0iKGkyhf_vUaZzAk 3aU96HUIlFc3d0Fl5nPwi6tV3W72qeGwwozPTsjGqLkaD2C3hnEdsHNAS_PbgQmeCxBJC6LYHXpC p05HBrFVxgwBJEuv9A7sbml2NMYp2bQ2oFA6PzNAai5IYcsmw3xTrm_Z3p5TQBe1RPF8OFrGTew0 2FNgHOyvCIhSob0.0J8YpONwqrguVMWGg3SrBtvp.9ESLfAgzFXorgciZMQlWIVWewlPyQR1laL5 GgncWrzZe2bpr_Nm3BXGkXBvNpxgAp1QYAJ_ySqQVo.pY2XcKowDdsKatRDN0vvUEEFogyUneuXX .0fdNbTDSt9QGev.MFjKYkeIK0Un5KfBWcP5QF4T3e7qTj28Xm8xIFKRQJb2QX2bJKJSqys7V2E9 ah87xpYiGNCd.xjeeNyPLndZqm5DEeChzpLb1kGx3H5GcBbweiXhgxP0O01OSUkrhY_lUGCRJBf2 qAPtbRCFJM8I18YA0aMwYqJGh9.AoEfVYOzzRUeFded02D4Hu1nueiB1aEOYkEX8we3VKVRJXOtT WdfYunUWedeaWbzHRg01fKw4- X-Sonic-MF: X-Sonic-ID: 43909759-8125-44b1-9017-19df7ff8b569 Received: from sonic.gate.mail.ne1.yahoo.com by sonic318.consmr.mail.ne1.yahoo.com with HTTP; Tue, 28 Mar 2023 21:09:54 +0000 Date: Tue, 28 Mar 2023 21:09:26 +0000 (UTC) From: Andrew Terekhov To: "ports@freebsd.org" Message-ID: <1889988356.2071741.1680037766388@mail.yahoo.com> Subject: 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_2071740_877850499.1680037766386" References: <1889988356.2071741.1680037766388.ref@mail.yahoo.com> X-Mailer: WebService/1.1.21284 YMailNorrin X-Spamd-Result: default: False [-3.93 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.998]; NEURAL_HAM_MEDIUM(-0.98)[-0.977]; NEURAL_HAM_SHORT(-0.95)[-0.952]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[ports@freebsd.org]; TO_DN_EQ_ADDR_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RCVD_IN_DNSWL_NONE(0.00)[66.163.186.82:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FREEMAIL_FROM(0.00)[yahoo.com]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] X-Rspamd-Queue-Id: 4PmMl81cTFz4NMv X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N ------=_Part_2071740_877850499.1680037766386 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, My system is: $ uname -a FreeBSD obama 13.1-RELEASE-p6 FreeBSD 13.1-RELEASE-p6 GENERIC amd64 fully updated wrt to packages and ports. I installed amule package and it segfaulted when started. So I enabled debu= g info for ports and rebuilt amule as port. What else can I do to help fix = the problem? Below is where it crashes: $ 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 addr= ess (fault address: 0x10) =C2=A0=C2=A0=C2=A0 frame #0: 0x0000000801699e85 libcryptopp.so.8`CryptoPP::= (anonymous namespace)::SHA256_HashBlock_CXX(state=3D0x0000000000000010, dat= a=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 S= HA1::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)^rotrC= onstant<18>(x)^(x>>3)) =C2=A0=C2=A0 416 =C2=A0=C2=A0 =C2=A0#define s1(x) (rotrConstant<17>(x)^rotr= Constant<19>(x)^(x>>10)) =C2=A0=C2=A0 417 =C2=A0=C2=A0 =C2=A0#define S0(x) (rotrConstant<2>(x)^rotrC= onstant<13>(x)^rotrConstant<22>(x)) =C2=A0=C2=A0 418 =C2=A0=C2=A0 =C2=A0#define S1(x) (rotrConstant<6>(x)^rotrC= onstant<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 *state= , 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->sta= te[] 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, pa= rtially 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 v= ars 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 addr= ess (fault address: 0x10) =C2=A0 * frame #0: 0x0000000801699e85 libcryptopp.so.8`CryptoPP::(anonymous= namespace)::SHA256_HashBlock_CXX(state=3D0x0000000000000010, data=3D0x0000= 7fffffffd440) at sha.cpp:424:5 =C2=A0=C2=A0=C2=A0 frame #1: 0x000000080169ad1d libcryptopp.so.8`CryptoPP::= SHA256::HashMultipleBlocks(this=3D0x00007fffffffd430, input=3D0x00007ffffff= fd480, length=3D64) at sha.cpp:977:13 =C2=A0=C2=A0=C2=A0 frame #2: 0x000000080161bcbf libcryptopp.so.8`CryptoPP::= IteratedHashBase::Update(unsign= ed char const*, unsigned long) [inlined] CryptoPP::IteratedHashBase::HashBlock(this=3D0x00007fffffffd430, = input=3D0x00007fffffffd440) at iterhash.h:109:4 =C2=A0=C2=A0=C2=A0 frame #3: 0x000000080161bca5 libcryptopp.so.8`CryptoPP::= IteratedHashBase::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=3D0x0000000000877938, input=3D"^\xd1\U0= 0000013$\U0000001c\xb63\a\U00000019}\x85|\xde=C8=85\x84\xdbA\xc6\xdfw\xa0\x= a0\xff\xe7N\xc0t\xa0\x83\U0000001d\xdd", length=3D32) at randpool.cpp:36:7 =C2=A0=C2=A0=C2=A0 frame #5: 0x000000080165b27d libcryptopp.so.8`CryptoPP::= AutoSeededRandomPool::Reseed(this=3D0x0000000000877938, blocking=3Dfalse, s= eedSize=3D32) at osrng.cpp:330:2 =C2=A0=C2=A0=C2=A0 frame #6: 0x0000000000793fbe amule`CryptoPP::AutoSeededR= andomPool::AutoSeededRandomPool(this=3D0x0000000000877938, blocking=3Dfalse= , seedSize=3D32) at osrng.h:171:4 =C2=A0=C2=A0=C2=A0 frame #7: 0x0000000000793e3a amule`::__cxx_global_var_in= it.1() at RandomFunctions.cpp:31:39 =C2=A0=C2=A0=C2=A0 frame #8: 0x0000000000793f7e amule`_GLOBAL__sub_I_Random= Functions.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 ------=_Part_2071740_877850499.1680037766386 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

My system is:

$ uname -a
FreeBSD obama 13.1-RELEASE-p6 FreeBSD 13.1-RELEASE-p6 GENE= RIC amd64

fully updated wrt to p= ackages and ports.

I installed amule package and it segfaulted when started. So I enabled=20 debug info for ports and rebuilt amule as port. What else can I do to=20 help fix the problem?

= Below is where it crashes:


$ lldb amule
(lldb) target create "amul= e"
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 add= ress (fault address: 0x10)
    frame #0: 0x0000000801699e85 libcryptopp.so.8`CryptoPP::(anonymous=20 namespace)::SHA256_HashBlock_CXX(state=3D0x0000000000000010,=20 data=3D0x00007fffffffd440) at sha.cpp:424:5
   384   = ;  
   385         &nb= sp;   input +=3D SHA1::BLOCKSIZE/sizeof(word32);
   = 386             length -= =3D SHA1::BLOCKSIZE;
   387       &nb= sp; }
   388         while (leng= th >=3D SHA1::BLOCKSIZE);
   389      &= nbsp;  return length;
   390     }
&nbs= p;  391     
   392     // = *************************************************************
 &nbs= p; 393     
   394     ANONYMOUS= _NAMESPACE_BEGIN
   395     
   39= 6     #define a(i) T[(0-i)&7]
   397  =    #define b(i) T[(1-i)&7]
   398    &= nbsp;#define c(i) T[(2-i)&7]
   399     #de= fine d(i) T[(3-i)&7]
   400     #define e(i= ) T[(4-i)&7]
   401     #define f(i) T[(5-i= )&7]
   402     #define g(i) T[(6-i)&7]=
   403     #define h(i) T[(7-i)&7]
&nbs= p;  404     
   405     #de= fine blk0(i) (W[i] =3D data[i])
   406     #def= ine blk2(i) (W[i&15]+=3Ds1(W[(i-2)&15])+W[(i-7)&15]+s0(W[(i-15)= &15]))
   407     
   408 &nbs= p;   #define Ch(x,y,z) (z^(x&(y^z)))
   409 &nbs= p;   #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))+SHA256_K[i+j]+(j?blk2(i):blk0(i));\
&n= bsp;  412         d(i)+=3Dh(i);h(i)+=3DS= 0(a(i))+Maj(a(i),b(i),c(i))
   413     
&nbs= p;  414     // for SHA256
   415  &nb= sp;  #define s0(x) (rotrConstant<7>(x)^rotrConstant<18>(x)= ^(x>>3))
   416     #define s1(x) (rotrCo= nstant<17>(x)^rotrConstant<19>(x)^(x>>10))
  = ; 417     #define S0(x) (rotrConstant<2>(x)^rotrConsta= nt<13>(x)^rotrConstant<22>(x))
   418   =  #define S1(x) (rotrConstant<6>(x)^rotrConstant<11>(x)^ro= trConstant<25>(x))
   419     
 &= nbsp; 420     void SHA256_HashBlock_CXX(word32 *state, const= word32 *data)
   421     {
   422=         word32 W[16]=3D{0}, T[8];
 &= nbsp; 423         /* Copy context->state[]= to working vars */
-> 424         memc= py(T, state, sizeof(T));
   425       = ;  /* 64 operations, partially loop unrolled */
   426 &n= bsp;       for (unsigned int j=3D0; j<64; j+=3D= 16)
   427         {
 &n= bsp; 428             R( 0= ); R( 1); R( 2); R( 3);
   429       =       R( 4); R( 5); R( 6); R( 7);
   = 430             R( 8); R(= 9); R(10); R(11);
   431        = ;     R(12); R(13); R(14); R(15);
   432 &= nbsp;       }
   433    &nb= sp;    /* Add the working vars back into context.state[] */<= br>   434         state[0] +=3D a(0= );
   435         state[1] +=3D = b(0);
   436         state[2] += =3D c(0);
   437         state[3= ] +=3D d(0);
   438         stat= e[4] +=3D e(0);
   439         s= tate[5] +=3D f(0);
   440        = ; state[6] +=3D g(0);
   441       &n= bsp; state[7] +=3D h(0);
   442     }
 =   443     
   444     #unde= f Ch
(lldb) bt
* thread #1, name =3D 'amule', stop reason =3D signal = SIGSEGV: invalid address (fault address: 0x10)
  * frame #0: 0x0000000801699e85 libcryptopp.so.8`CryptoPP::(anonymous=20 namespace)::SHA256_HashBlock_CXX(state=3D0x0000000000000010,=20 data=3D0x00007fffffffd440) at sha.cpp:424:5
    frame #1:= =20 0x000000080169ad1d=20 libcryptopp.so.8`CryptoPP::SHA256::HashMultipleBlocks(this=3D0x00007fffffff= d430, input=3D0x00007fffffffd480, length=3D64) at sha.cpp:977:13
  =   frame #2: 0x000000080161bcbf=20 libcryptopp.so.8`CryptoPP::IteratedHashBase<unsigned int,=20 CryptoPP::HashTransformation>::Update(unsigned char const*, unsigned=20 long) [inlined] CryptoPP::IteratedHashBase<unsigned int,=20 CryptoPP::HashTransformation>::HashBlock(this=3D0x00007fffffffd430,=20 input=3D0x00007fffffffd440) at iterhash.h:109:4
    frame= #3:=20 0x000000080161bca5=20 libcryptopp.so.8`CryptoPP::IteratedHashBase<unsigned int,=20 CryptoPP::HashTransformation>::Update(this=3D0x00007fffffffd430,=20 input=3D"^\xd1\U00000013$\U0000001c\xb63\a\U00000019}\x85|\xde=C8=85\x84\xd= bA\xc6\xdfw\xa0\xa0\xff\xe7N\xc0t\xa0\x83\U0000001d\xdd", length=3D32) at iterhash.cpp:38:4
    frame #4: 0x000000= 08016711e0=20 libcryptopp.so.8`CryptoPP::RandomPool::IncorporateEntropy(this=3D0x00000000= 00877938, =20 input=3D"^\xd1\U00000013$\U0000001c\xb63\a\U00000019}\x85|\xde=C8=85\x84\xd= bA\xc6\xdfw\xa0\xa0\xff\xe7N\xc0t\xa0\x83\U0000001d\xdd", length=3D32) at randpool.cpp:36:7
    frame #5: 0x000000= 080165b27d=20 libcryptopp.so.8`CryptoPP::AutoSeededRandomPool::Reseed(this=3D0x0000000000= 877938, blocking=3Dfalse, seedSize=3D32) at osrng.cpp:330:2
    = frame #6:=20 0x0000000000793fbe=20 amule`CryptoPP::AutoSeededRandomPool::AutoSeededRandomPool(this=3D0x0000000= 000877938, blocking=3Dfalse, seedSize=3D32) at osrng.h:171:4
    fr= ame #7: 0x0000000000793e3a amule`::__cxx_global_var_init.1() at RandomFunct= ions.cpp:31:39
    frame #8: 0x0000000000793f7e amule`_GL= OBAL__sub_I_RandomFunctions.cpp at RandomFunctions.cpp:0
  &nb= sp; frame #9: 0x000000080086e0fd ld-elf.so.1
    frame #1= 0: 0x000000080086c38b ld-elf.so.1




------=_Part_2071740_877850499.1680037766386--