[botan-devel] SEGV in RNG after updating to 1.10.7

William K. Foster wkf at alum.mit.edu
Mon Feb 3 18:57:29 EST 2014


I recently updated from Botan v1.10.5 to v1.10.7 and I've seen a SEGV that
is not easily reproducible in the RNG constructor:

#1  0x00000000005c794e in GlobalSignalTermHandler (sig=11) at Param.cpp:1422
#2  <signal handler called>
#3  0x00000000006e4bdc in Botan::(anonymous
namespace)::SHA2_64::compress(Botan::MemoryRegion<unsigned long long>&,
unsigned char const*, unsigned long) ()
#4  0x00000000006dfd3f in Botan::MDx_HashFunction::add_data(unsigned char
const*, unsigned long) ()
#5  0x000000000080da34 in
Botan::Device_EntropySource::poll(Botan::Entropy_Accumulator&) ()
#6  0x00000000007d168e in Botan::HMAC_RNG::reseed(unsigned long) ()
#7  0x00000000007d4c9e in Botan::ANSI_X931_RNG::reseed(unsigned long) ()
#8  0x000000000077ade4 in
Botan::Mutex*) ()
#9  0x00000000006eac6b in Botan::Library_State::global_rng() ()
#10 0x00000000005cd2fb in Botan::AutoSeeded_RNG::AutoSeeded_RNG
(this=0x7fff204511d0) at ../../src/Botan/build/include/botan/auto_rng.h:40

The calling code is doing a default constructor of an RNG:

    Botan::AutoSeeded_RNG rng;

This usually works, but on occasion I get a SEGV.

Could this be related to changes between v1.10.5 and v1.10.7?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20140203/51652a6b/attachment.html>

More information about the botan-devel mailing list