On Wed, 28 Apr 2004, Steffen Röcker wrote: > libcln segfaulted in cln::I_to_digits when I tried to convert numbers to > binary, all other conversions worked.
Thanks for your bugreport. This turns out to be a tricky one: libcln segfaults in src/integer/conv/cl_I_to_digits.cc:409, right after the label "fertig:" where it tries to set erg->MSBptr to erg_ptr. However, there is nothing wrong with that statement. It appears to be a compiler error introduced in GCC-3.0.0 and finally fixed in GCC-3.4.0. It is only triggered when the option -fno-exceptions is turned on when CLN is compiled. Without that option, everything works fine. I've just reproduced this bug with GCC releases 3.1.1, 3.2.3, 3.3.2 and 3.3.3, and also with 3.3.4-prerelease from CVS, all vanilla and bootstrapped locally