gmp_printf bug?
Torbjorn Granlund
tg at gmplib.org
Wed Jul 20 11:02:11 CEST 2011
Zimmermann Paul <Paul.Zimmermann at loria.fr> writes:
on gcc20.fsffrance.org, which you have access to, I can reproduce the problem
with the program below:
zimmerma at gcc20:~$ gcc -Iinclude g.c lib/libgmp.a;./a.out
libc version: 2.11.2
GMP 5.0.1 library 5.0.1
0.111349511949672485115e405025890106316193
*** glibc detected *** ./a.out: realloc(): invalid pointer: 0x0000000000623008 ***
I didn't realise that you're on a slightly obsolete GMP version. Did you
try the current one, 5.0.2?
I recall we addressed some overflow issues for really large numbers a
some time ago.
--
Torbjörn
More information about the gmp-bugs
mailing list