[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#221565: g++-3.3: bad code generation



Package: g++-3.3
Version: 1:3.3.2-4
Severity: normal


Hi there!  Thank you so much for the Debian toolchain!

I use Crypto++ v5.0 [1], and I've noticed that the "generate a random
RSA key pair" function either seg faults or goes into an infinite loop.
I've learned that turning optimization off with -O0 or else downgrading
to g++ 3.2.3 solves this problem.

Talking to Graydon Hoare, he says that RedHat's version of g++ 3.3.2, 
"g++ (GCC) 3.3.2 20031022 (Red Hat Linux 3.3.2-1)", doesn't exhibit this bug.

I'd be happy to provide a test case if you want.  You just call the
following method from Crypto++ 5.0:

void Initialize(RandomNumberGenerator &rng, unsigned int modulusBits, const Integer &e = 17);

Regards,

Zooko

[1] http://cryptopp.com/


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux pion 2.4.22 #1 Wed Oct 22 11:56:42 EDT 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages g++-3.3 depends on:
ii  gcc-3.3                     1:3.3.2-4    The GNU C compiler
ii  gcc-3.3-base                1:3.3.2-4    The GNU Compiler Collection (base 
hi  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an
ii  libstdc++5-3.3-dev          1:3.3.2-4    The GNU Standard C++ Library v3 (d

-- no debconf information




Reply to: