gmp_printf bug?

Torbjorn Granlund tg at
Wed Jul 20 11:02:11 CEST 2011

Zimmermann Paul <Paul.Zimmermann at> writes:

  on, 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
  *** 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.


More information about the gmp-bugs mailing list