[botan-devel] version 1.10 and Valgrind
yuri at nlnetlabs.nl
Thu Jan 28 09:00:06 EST 2016
-----BEGIN PGP SIGNED MESSAGE-----
> My best guess, given that this is occuring during the reseed step,
> is that RDRAND is not being handled by valgrind. From these bug
That guess was spot on it seems!
Thanks for the reference, that was truly helpful. I've now built the
latest Valgrind from svn trunk and its working as expected again.
(for reference: revision 15777)
> this seems to be the case; valgrind 3.11's emulated CPU advertises
> RDRAND support but does not implement it, causing a crash when the
> application tries to execute it. The KDE bug contains a patch to
> valgrind which clears the RDRAND bit, which was reported as fixing
> the problem for others and is already committed to valgrind trunk.
> Apparently Valgrind 3.10 also works without issue.
> If you're not running on a CPU which supports RDRAND then my guess
> goes completely out the window.
> You can also work around this by building a new libbotan adding
> the configure.py flag `--disable-modules=rdrand`. There is not
> currently any way of disabling an entropy source at the application
> level without a rebuild (this is probably a bug...)
> Best, Jack
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-----END PGP SIGNATURE-----
More information about the botan-devel