On Monday, 12 September 2016 10:32:59 UTC+1, Jeffrey Walton wrote:
>
> On Mon, Sep 12, 2016 at 5:02 AM, Andrew Marlow <[email protected] 
> <javascript:>> wrote: 
> > Many thanks for releasing version 564. I see there are lots of 
> improvements 
> > :-) 
> > 
>
> Yeah, the Solaris folks got a lot of improvements. You guys deserve it 
> for enduring SunCC. 
>

Gee, thanks! It's not my choice of compiler. The compiler is forced on us. 
We are using another third party library where the vendor does not support 
GCC, only the Sun compiler. 

[snip]
>
 

> > 3) The test program core dumps when run with the v option. 
> > Testing MessageDigest algorithm SHA-384. 
> > ..signal BUS (invalid address alignment) in CryptoPP::SHA512::Transform 
> at 
> > line 27 in file "sha.cpp" 
>
 [stack trace snipped] 

> OK, this is good stuff here. I can't duplicate in my modest test 
> environment, but its obvious 'data = 0xffffffff7fffc1ec' is only 
> aligned to 2-bytes, while you likely need 8-byte or 16-byte alignment 
> due to SSE2. 
>
> Here's the first - and only - thing you should do at the moment: 
>
>     gmake distclean 
>     cp config.recommend config.h 
>   
>
    gmake -j 4 ... 
>
>     ./cryptest.exe v 
>

I just tried that. It broke in the same place in the same way.
 

>     ./cryptest.exe tv all 
>
> That should isolate it to the known undefined behavior we are 
> [currently] carrying around. If it fixes the issue, then problem 
> solved until we can make config.recommend the default (Crypto++ 5.7 
> when it arrives). 
>
> The hairier result is, it does not fix the problem. In this case, we 
> will need to investigate why the caller is not using 
> OptimalDataAlignment(). Also see 
> https://www.cryptopp.com/docs/ref/class_s_h_a3.html. 
>
> I am out of my depth here. I see that for the failing test SHA3 is being 
used and that OptimalDataAlignment returns GetAlignmentOf<word64>();. It 
looks like this returns sizeof(word64). I can't see what's wrong....
 

> Jeff 
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to