Re: Re: cryptest fails, but only when redirecting output to a file

Bart Vandewoestyne <[email protected]>
Newsgroups gmane.comp.encryption.cryptopp
Message-ID <[email protected]>
Hello Jeffrey,

While you were writing your reply, I also found:

https://github.com/weidai11/cryptopp/issues/872
https://github.com/weidai11/cryptopp/commit/b1c691b53a4c

:-)

so it sure looks like I am indeed experiencing this bug with my 8.2.0 
version using VS2019 on a Windows 10 machine.

I will try 8.3.0 or later and see if that fixes the problem.  I'll report 
back here.

Kind regards,
Bart

On Thursday, March 18, 2021 at 8:29:08 PM UTC+1 Jeffrey Walton wrote:

> On Thu, Mar 18, 2021 at 3:24 PM Bart Vandewoestyne
> <[email protected]> wrote:
> >
> > OK. I have done some more research and testing. Here's what I found out 
> so far:
> >
> > On our build server (where the tests do not crash), the test logs tell 
> me:
> >
> > hasRDRAND == 0, hasRDSEED == 0
> >
> > and because of that, apparently the tests are skipped, because in the 
> logs I
> > have:
> >
> > Testing RDSEED generator...
> >
> > RDSEED generator not available, skipping test.
> >
> > On my laptop, it seems like I have RDRAND and RDSEED available, because 
> in the
> > logs I see:
> >
> > hasRDRAND == 1, hasRDSEED == 1
> >
> > and so the test is started:
> >
> > Testing RDSEED generator...
> >
> > but that is the last line in the output, the test crashes somewhere.
> >
> > Using the VS2015 debugger, i found that the call stack at the moment of 
> the crash is:
> >
> > cryptest.exe!017e9c80() Unknown
> > cryptest.exe!CryptoPP::RDSEED::GenerateBlock(unsigned char * output, 
> unsigned int size) Line 249 C++
> > ...
>
> I've seen that hang before, but it was present all the time. It did
> not happen in isolation, like during redirection.
>
> I wrote it off to a MS toolchain bug and worked around it. Also see
> https://github.com/weidai11/cryptopp/commit/b1c691b53a4c.
>
> You should upgrade to Crypto++ 8.3 or above for the fix.
>
> Jeff
>

-- 
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].
To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/be030db5-cdf7-46e1-9c75-e3e90c967da8n%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.