Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2023 21:36:27 +0000 (UTC)
From:      Andrew Terekhov <andrew_terekhov@yahoo.com>
To:        Mario Marietto <marietto2008@gmail.com>
Cc:        "ports@freebsd.org" <ports@freebsd.org>, Yuri <yuri@aetern.org>
Subject:   Re: Segmentation fault when amule starts
Message-ID:  <204523998.2085417.1680039387471@mail.yahoo.com>
In-Reply-To: <CA%2B1FSihrEbNQkgt6H4ZEUmX2L1HECQNanCQ2vBbfV525hMWE1w@mail.gmail.com>
References:  <1889988356.2071741.1680037766388.ref@mail.yahoo.com> <1889988356.2071741.1680037766388@mail.yahoo.com> <bbcb8a7c-ad97-23a3-683f-77d189246439@aetern.org> <446577808.2072737.1680038804540@mail.yahoo.com> <CA%2B1FSihrEbNQkgt6H4ZEUmX2L1HECQNanCQ2vBbfV525hMWE1w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_2085416_1594464310.1680039387467
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

 Grazie mille, Zio Mario :)

    On Tuesday, March 28, 2023 at 01:31:44 PM GMT-8, Mario Marietto <mariet=
to2008@gmail.com> wrote: =20
=20
 yeah,I'm the user who started that post :P

On Tue, Mar 28, 2023 at 11:26=E2=80=AFPM Andrew Terekhov <andrew_terekhov@y=
ahoo.com> wrote:

 Thanks a lot, Yuri, worked like a charm.

    On Tuesday, March 28, 2023 at 01:19:03 PM GMT-8, Yuri <yuri@aetern.org>=
 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<unsigned int,
> CryptoPP::HashTransformation>::Update(unsigned char const*, unsigned
> long) [inlined] CryptoPP::IteratedHashBase<unsigned int,
> 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<unsigned int,
> 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


--=20
Mario.
 =20
------=_Part_2085416_1594464310.1680039387467
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div class=3D"ydp6b325f7cyahoo-style-wrap" style=
=3D"font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px=
;"><div></div>
        <div dir=3D"ltr" data-setdir=3D"false">Grazie mille, Zio Mario :)<b=
r></div><div><br></div>
       =20
        </div><div id=3D"ydp281e8201yahoo_quoted_1002139129" class=3D"ydp28=
1e8201yahoo_quoted">
            <div style=3D"font-family:'Helvetica Neue', Helvetica, Arial, s=
ans-serif;font-size:13px;color:#26282a;">
               =20
                <div>
                    On Tuesday, March 28, 2023 at 01:31:44 PM GMT-8, Mario =
Marietto &lt;marietto2008@gmail.com&gt; wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id=3D"ydp281e8201yiv4454835041"><div><div dir=3D"=
ltr">yeah,I'm the user who started that post :P<br clear=3D"none"></div><br=
 clear=3D"none"><div id=3D"ydp281e8201yiv4454835041yqt49690" class=3D"ydp28=
1e8201yiv4454835041yqt1687788842"><div class=3D"ydp281e8201yiv4454835041gma=
il_quote"><div dir=3D"ltr" class=3D"ydp281e8201yiv4454835041gmail_attr">On =
Tue, Mar 28, 2023 at 11:26=E2=80=AFPM Andrew Terekhov &lt;<a shape=3D"rect"=
 href=3D"mailto:andrew_terekhov@yahoo.com" rel=3D"nofollow" target=3D"_blan=
k">andrew_terekhov@yahoo.com</a>&gt; wrote:<br clear=3D"none"></div><blockq=
uote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);padding-left:1ex;" class=3D"ydp281e8201yiv4454835041gmail_quote"><div><d=
iv style=3D"font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-s=
ize:13px;"><div></div>
        <div dir=3D"ltr">Thanks a lot, Yuri, worked like a charm.</div><div=
 dir=3D"ltr"><br clear=3D"none"></div><div><br clear=3D"none"></div>
       =20
        </div><div id=3D"ydp281e8201yiv4454835041m_2735943298648508466ydp41=
7e393cyahoo_quoted_0715735192">
            <div style=3D"font-family:Helvetica, Arial, sans-serif;font-siz=
e:13px;color:rgb(38,40,42);">
               =20
                <div>
                    On Tuesday, March 28, 2023 at 01:19:03 PM GMT-8, Yuri &=
lt;<a shape=3D"rect" href=3D"mailto:yuri@aetern.org" rel=3D"nofollow" targe=
t=3D"_blank">yuri@aetern.org</a>&gt; wrote:
                </div>
                <div><br clear=3D"none"></div>
                <div><br clear=3D"none"></div>
                <div><div dir=3D"ltr">Andrew Terekhov wrote:<br clear=3D"no=
ne"></div><div dir=3D"ltr">&gt; Hi,<br clear=3D"none"></div><div dir=3D"ltr=
">&gt; <br clear=3D"none"></div><div dir=3D"ltr">&gt; My system is:<br clea=
r=3D"none"></div><div dir=3D"ltr">&gt; <br clear=3D"none"></div><div dir=3D=
"ltr">&gt; $ uname -a<br clear=3D"none"></div><div dir=3D"ltr">&gt; FreeBSD=
 obama 13.1-RELEASE-p6 FreeBSD 13.1-RELEASE-p6 GENERIC amd64<br clear=3D"no=
ne"></div><div dir=3D"ltr">&gt; <br clear=3D"none"></div><div dir=3D"ltr">&=
gt; fully updated wrt to packages and ports.<br clear=3D"none"></div><div d=
ir=3D"ltr">&gt; <br clear=3D"none"></div><div dir=3D"ltr">&gt; I installed =
amule package and it segfaulted when started. So I enabled<br clear=3D"none=
"></div><div dir=3D"ltr">&gt; debug info for ports and rebuilt amule as por=
t. What else can I do to<br clear=3D"none"></div><div dir=3D"ltr">&gt; help=
 fix the problem?<br clear=3D"none"></div><div dir=3D"ltr"><br clear=3D"non=
e"></div><div dir=3D"ltr">Try the solution from forums:<br clear=3D"none"><=
/div><div dir=3D"ltr"><br clear=3D"none"></div><div dir=3D"ltr"><a shape=3D=
"rect" href=3D"https://forums.freebsd.org/threads/amule-wont-run-on-freebsd=
-13-1-release-because-segmentation-fault-error.87980/post-597909" rel=3D"no=
follow" target=3D"_blank">https://forums.freebsd.org/threads/amule-wont-run=
-on-freebsd-13-1-release-because-segmentation-fault-error.87980/post-597909=
</a><br clear=3D"none"></div><div dir=3D"ltr"><br clear=3D"none"></div><div=
 dir=3D"ltr"><br clear=3D"none"></div><div dir=3D"ltr">&gt; Below is where =
it crashes:<br clear=3D"none"></div><div dir=3D"ltr">&gt; <br clear=3D"none=
"></div><div dir=3D"ltr">&gt; <br clear=3D"none"></div><div dir=3D"ltr">&gt=
; $ lldb amule<br clear=3D"none"></div><div dir=3D"ltr">&gt; (lldb) target =
create "amule"<br clear=3D"none"></div><div dir=3D"ltr">&gt; Current execut=
able set to 'amule' (x86_64).<br clear=3D"none"></div><div dir=3D"ltr">&gt;=
 (lldb) run<br clear=3D"none"></div><div dir=3D"ltr">&gt; Process 22227 lau=
nched: '/usr/local/bin/amule' (x86_64)<br clear=3D"none"></div><div dir=3D"=
ltr">&gt; Process 22227 stopped<br clear=3D"none"></div><div dir=3D"ltr">&g=
t; * thread #1, name =3D 'amule', stop reason =3D signal SIGSEGV: invalid<b=
r clear=3D"none"></div><div dir=3D"ltr">&gt; address (fault address: 0x10)<=
br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp;&nbsp; frame #0: =
0x0000000801699e85 libcryptopp.so.8`CryptoPP::(anonymous<br clear=3D"none">=
</div><div dir=3D"ltr">&gt; namespace)::SHA256_HashBlock_CXX(state=3D0x0000=
000000000010,<br clear=3D"none"></div><div dir=3D"ltr">&gt; data=3D0x00007f=
ffffffd440) at sha.cpp:424:5<br clear=3D"none"></div><div dir=3D"ltr">&gt; =
&nbsp;&nbsp; 384 &nbsp;&nbsp; &nbsp;<br clear=3D"none"></div><div dir=3D"lt=
r">&gt; &nbsp;&nbsp; 385 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp; input +=3D SHA1::BLOCKSIZE/sizeof(word32);<br clear=3D"none"></=
div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 386 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp; length -=3D SHA1::BLOCKSIZE;<br clear=3D"none=
"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 387 &nbsp;&nbsp; &nbsp;&nbsp;&nb=
sp;&nbsp; }<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 388 =
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; while (length &gt;=3D SHA1::BLOCKSIZE=
);<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 389 &nbsp;&nb=
sp; &nbsp;&nbsp;&nbsp;&nbsp; return length;<br clear=3D"none"></div><div di=
r=3D"ltr">&gt; &nbsp;&nbsp; 390 &nbsp;&nbsp; &nbsp;}<br clear=3D"none"></di=
v><div dir=3D"ltr">&gt; &nbsp;&nbsp; 391 &nbsp;&nbsp; &nbsp;<br clear=3D"no=
ne"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 392 &nbsp;&nbsp; &nbsp;// ****=
*********************************************************<br clear=3D"none"=
></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 393 &nbsp;&nbsp; &nbsp;<br clear=
=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 394 &nbsp;&nbsp; &nbsp;A=
NONYMOUS_NAMESPACE_BEGIN<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbs=
p;&nbsp; 395 &nbsp;&nbsp; &nbsp;<br clear=3D"none"></div><div dir=3D"ltr">&=
gt; &nbsp;&nbsp; 396 &nbsp;&nbsp; &nbsp;#define a(i) T[(0-i)&amp;7]<br clea=
r=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 397 &nbsp;&nbsp; &nbsp;=
#define b(i) T[(1-i)&amp;7]<br clear=3D"none"></div><div dir=3D"ltr">&gt; &=
nbsp;&nbsp; 398 &nbsp;&nbsp; &nbsp;#define c(i) T[(2-i)&amp;7]<br clear=3D"=
none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 399 &nbsp;&nbsp; &nbsp;#defi=
ne d(i) T[(3-i)&amp;7]<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;=
&nbsp; 400 &nbsp;&nbsp; &nbsp;#define e(i) T[(4-i)&amp;7]<br clear=3D"none"=
></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 401 &nbsp;&nbsp; &nbsp;#define f(=
i) T[(5-i)&amp;7]<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp=
; 402 &nbsp;&nbsp; &nbsp;#define g(i) T[(6-i)&amp;7]<br clear=3D"none"></di=
v><div dir=3D"ltr">&gt; &nbsp;&nbsp; 403 &nbsp;&nbsp; &nbsp;#define h(i) T[=
(7-i)&amp;7]<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 404=
 &nbsp;&nbsp; &nbsp;<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&n=
bsp; 405 &nbsp;&nbsp; &nbsp;#define blk0(i) (W[i] =3D data[i])<br clear=3D"=
none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 406 &nbsp;&nbsp; &nbsp;#defi=
ne blk2(i)<br clear=3D"none"></div><div dir=3D"ltr">&gt; (W[i&amp;15]+=3Ds1=
(W[(i-2)&amp;15])+W[(i-7)&amp;15]+s0(W[(i-15)&amp;15]))<br clear=3D"none"><=
/div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 407 &nbsp;&nbsp; &nbsp;<br clear=3D=
"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 408 &nbsp;&nbsp; &nbsp;#def=
ine Ch(x,y,z) (z^(x&amp;(y^z)))<br clear=3D"none"></div><div dir=3D"ltr">&g=
t; &nbsp;&nbsp; 409 &nbsp;&nbsp; &nbsp;#define Maj(x,y,z) (y^((x^y)&amp;(y^=
z)))<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 410 &nbsp;&=
nbsp; &nbsp;<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 411=
 &nbsp;&nbsp; &nbsp;#define R(i)<br clear=3D"none"></div><div dir=3D"ltr">&=
gt; h(i)+=3DS1(e(i))+Ch(e(i),f(i),g(i))+SHA256_K[i+j]+(j?blk2(i):blk0(i));\=
<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 412 &nbsp;&nbsp=
; &nbsp;&nbsp;&nbsp;&nbsp; d(i)+=3Dh(i);h(i)+=3DS0(a(i))+Maj(a(i),b(i),c(i)=
)<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 413 &nbsp;&nbs=
p; &nbsp;<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 414 &n=
bsp;&nbsp; &nbsp;// for SHA256<br clear=3D"none"></div><div dir=3D"ltr">&gt=
; &nbsp;&nbsp; 415 &nbsp;&nbsp; &nbsp;#define s0(x) (rotrConstant&lt;7&gt;(=
x)^rotrConstant&lt;18&gt;(x)^(x&gt;&gt;3))<br clear=3D"none"></div><div dir=
=3D"ltr">&gt; &nbsp;&nbsp; 416 &nbsp;&nbsp; &nbsp;#define s1(x) (rotrConsta=
nt&lt;17&gt;(x)^rotrConstant&lt;19&gt;(x)^(x&gt;&gt;10))<br clear=3D"none">=
</div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 417 &nbsp;&nbsp; &nbsp;#define S0(=
x)<br clear=3D"none"></div><div dir=3D"ltr">&gt; (rotrConstant&lt;2&gt;(x)^=
rotrConstant&lt;13&gt;(x)^rotrConstant&lt;22&gt;(x))<br clear=3D"none"></di=
v><div dir=3D"ltr">&gt; &nbsp;&nbsp; 418 &nbsp;&nbsp; &nbsp;#define S1(x)<b=
r clear=3D"none"></div><div dir=3D"ltr">&gt; (rotrConstant&lt;6&gt;(x)^rotr=
Constant&lt;11&gt;(x)^rotrConstant&lt;25&gt;(x))<br clear=3D"none"></div><d=
iv dir=3D"ltr">&gt; &nbsp;&nbsp; 419 &nbsp;&nbsp; &nbsp;<br clear=3D"none">=
</div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 420 &nbsp;&nbsp; &nbsp;void SHA256=
_HashBlock_CXX(word32 *state, const word32 *data)<br clear=3D"none"></div><=
div dir=3D"ltr">&gt; &nbsp;&nbsp; 421 &nbsp;&nbsp; &nbsp;{<br clear=3D"none=
"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 422 &nbsp;&nbsp; &nbsp;&nbsp;&nb=
sp;&nbsp; word32 W[16]=3D{0}, T[8];<br clear=3D"none"></div><div dir=3D"ltr=
">&gt; &nbsp;&nbsp; 423 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; /* Copy conte=
xt-&gt;state[] to working vars */<br clear=3D"none"></div><div dir=3D"ltr">=
&gt; -&gt; 424 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; memcpy(T, state, sizeo=
f(T));<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 425 &nbsp=
;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; /* 64 operations, partially loop unrolled =
*/<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 426 &nbsp;&nb=
sp; &nbsp;&nbsp;&nbsp;&nbsp; for (unsigned int j=3D0; j&lt;64; j+=3D16)<br =
clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 427 &nbsp;&nbsp; &n=
bsp;&nbsp;&nbsp;&nbsp; {<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbs=
p;&nbsp; 428 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
R( 0); R( 1); R( 2); R( 3);<br clear=3D"none"></div><div dir=3D"ltr">&gt; &=
nbsp;&nbsp; 429 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; R( 4); R( 5); R( 6); R( 7);<br clear=3D"none"></div><div dir=3D"ltr">&gt=
; &nbsp;&nbsp; 430 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp; R( 8); R( 9); R(10); R(11);<br clear=3D"none"></div><div dir=3D"ltr">=
&gt; &nbsp;&nbsp; 431 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp; R(12); R(13); R(14); R(15);<br clear=3D"none"></div><div dir=3D"lt=
r">&gt; &nbsp;&nbsp; 432 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; }<br clear=
=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 433 &nbsp;&nbsp; &nbsp;&=
nbsp;&nbsp;&nbsp; /* Add the working vars back into context.state[] */<br c=
lear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 434 &nbsp;&nbsp; &nb=
sp;&nbsp;&nbsp;&nbsp; state[0] +=3D a(0);<br clear=3D"none"></div><div dir=
=3D"ltr">&gt; &nbsp;&nbsp; 435 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; state[=
1] +=3D b(0);<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 43=
6 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; state[2] +=3D c(0);<br clear=3D"non=
e"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 437 &nbsp;&nbsp; &nbsp;&nbsp;&n=
bsp;&nbsp; state[3] +=3D d(0);<br clear=3D"none"></div><div dir=3D"ltr">&gt=
; &nbsp;&nbsp; 438 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; state[4] +=3D e(0)=
;<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 439 &nbsp;&nbs=
p; &nbsp;&nbsp;&nbsp;&nbsp; state[5] +=3D f(0);<br clear=3D"none"></div><di=
v dir=3D"ltr">&gt; &nbsp;&nbsp; 440 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; s=
tate[6] +=3D g(0);<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbs=
p; 441 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; state[7] +=3D h(0);<br clear=
=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 442 &nbsp;&nbsp; &nbsp;}=
<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 443 &nbsp;&nbsp=
; &nbsp;<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp; 444 &nb=
sp;&nbsp; &nbsp;#undef Ch<br clear=3D"none"></div><div dir=3D"ltr">&gt; (ll=
db) bt<br clear=3D"none"></div><div dir=3D"ltr">&gt; * thread #1, name =3D =
'amule', stop reason =3D signal SIGSEGV: invalid<br clear=3D"none"></div><d=
iv dir=3D"ltr">&gt; address (fault address: 0x10)<br clear=3D"none"></div><=
div dir=3D"ltr">&gt; &nbsp; * frame #0: 0x0000000801699e85 libcryptopp.so.8=
`CryptoPP::(anonymous<br clear=3D"none"></div><div dir=3D"ltr">&gt; namespa=
ce)::SHA256_HashBlock_CXX(state=3D0x0000000000000010,<br clear=3D"none"></d=
iv><div dir=3D"ltr">&gt; data=3D0x00007fffffffd440) at sha.cpp:424:5<br cle=
ar=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp;&nbsp; frame #1: 0x0000=
00080169ad1d<br clear=3D"none"></div><div dir=3D"ltr">&gt; libcryptopp.so.8=
`CryptoPP::SHA256::HashMultipleBlocks(this=3D0x00007fffffffd430, input=3D0x=
00007fffffffd480, length=3D64) at sha.cpp:977:13<br clear=3D"none"></div><d=
iv dir=3D"ltr">&gt; &nbsp;&nbsp;&nbsp; frame #2: 0x000000080161bcbf<br clea=
r=3D"none"></div><div dir=3D"ltr">&gt; libcryptopp.so.8`CryptoPP::IteratedH=
ashBase&lt;unsigned int,<br clear=3D"none"></div><div dir=3D"ltr">&gt; Cryp=
toPP::HashTransformation&gt;::Update(unsigned char const*, unsigned<br clea=
r=3D"none"></div><div dir=3D"ltr">&gt; long) [inlined] CryptoPP::IteratedHa=
shBase&lt;unsigned int,<br clear=3D"none"></div><div dir=3D"ltr">&gt; Crypt=
oPP::HashTransformation&gt;::HashBlock(this=3D0x00007fffffffd430,<br clear=
=3D"none"></div><div dir=3D"ltr">&gt; input=3D0x00007fffffffd440) at iterha=
sh.h:109:4<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp;&nbsp;=
 frame #3: 0x000000080161bca5<br clear=3D"none"></div><div dir=3D"ltr">&gt;=
 libcryptopp.so.8`CryptoPP::IteratedHashBase&lt;unsigned int,<br clear=3D"n=
one"></div><div dir=3D"ltr">&gt; CryptoPP::HashTransformation&gt;::Update(t=
his=3D0x00007fffffffd430,<br clear=3D"none"></div><div dir=3D"ltr">&gt; inp=
ut=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 iter=
hash.cpp:38:4<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp;&nb=
sp; frame #4: 0x00000008016711e0<br clear=3D"none"></div><div dir=3D"ltr">&=
gt; libcryptopp.so.8`CryptoPP::RandomPool::IncorporateEntropy(this=3D0x0000=
000000877938, input=3D"^\xd1\U00000013$\U0000001c\xb63\a\U00000019}\x85|\xd=
e=C8=85\x84\xdbA\xc6\xdfw\xa0\xa0\xff\xe7N\xc0t\xa0\x83\U0000001d\xdd", len=
gth=3D32) at randpool.cpp:36:7<br clear=3D"none"></div><div dir=3D"ltr">&gt=
; &nbsp;&nbsp;&nbsp; frame #5: 0x000000080165b27d<br clear=3D"none"></div><=
div dir=3D"ltr">&gt; libcryptopp.so.8`CryptoPP::AutoSeededRandomPool::Resee=
d(this=3D0x0000000000877938, blocking=3Dfalse, seedSize=3D32) at osrng.cpp:=
330:2<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp;&nbsp; fram=
e #6: 0x0000000000793fbe<br clear=3D"none"></div><div dir=3D"ltr">&gt; amul=
e`CryptoPP::AutoSeededRandomPool::AutoSeededRandomPool(this=3D0x00000000008=
77938, blocking=3Dfalse, seedSize=3D32) at osrng.h:171:4<br clear=3D"none">=
</div><div dir=3D"ltr">&gt; &nbsp;&nbsp;&nbsp; frame #7: 0x0000000000793e3a=
 amule`::__cxx_global_var_init.1() at<br clear=3D"none"></div><div dir=3D"l=
tr">&gt; RandomFunctions.cpp:31:39<br clear=3D"none"></div><div dir=3D"ltr"=
>&gt; &nbsp;&nbsp;&nbsp; frame #8: 0x0000000000793f7e<br clear=3D"none"></d=
iv><div dir=3D"ltr">&gt; amule`_GLOBAL__sub_I_RandomFunctions.cpp at Random=
Functions.cpp:0<br clear=3D"none"></div><div dir=3D"ltr">&gt; &nbsp;&nbsp;&=
nbsp; frame #9: 0x000000080086e0fd ld-elf.so.1<br clear=3D"none"></div><div=
 dir=3D"ltr">&gt; &nbsp;&nbsp;&nbsp; frame #10: 0x000000080086c38b ld-elf.s=
o.1<br clear=3D"none"></div><div dir=3D"ltr">&gt; <br clear=3D"none"></div>=
<div dir=3D"ltr">&gt; <br clear=3D"none"></div><div dir=3D"ltr">&gt; <br cl=
ear=3D"none"></div><div dir=3D"ltr">&gt; <br clear=3D"none"></div><div dir=
=3D"ltr"><br clear=3D"none"></div><div dir=3D"ltr"><br clear=3D"none"></div=
></div>
            </div>
        </div></div></blockquote></div></div><br clear=3D"all"><br clear=3D=
"none"><span class=3D"ydp281e8201yiv4454835041gmail_signature_prefix">-- </=
span><br clear=3D"none"><div dir=3D"ltr" class=3D"ydp281e8201yiv4454835041g=
mail_signature">Mario.<br clear=3D"none"></div>
</div></div></div>
            </div>
        </div></body></html>
------=_Part_2085416_1594464310.1680039387467--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?204523998.2085417.1680039387471>