segfault in mpz_divexact()

Torbjorn Granlund tg-this-will-bounce-but-I-am-subscribed-to-the-list-honest at
Wed Apr 18 15:28:01 CEST 2007

Antony Dovgal <antony at> writes:

  >   GDB backtrace is not very informative.
  > Yes, it is.  :-) The __gmp_divide_by_zero function is there,
  > suggesting that GMP detects an operand error.
  Uhm, sorry about that, pasted wrong bt.
  This is the correct one:
  Program received signal SIGSEGV, Segmentation fault.
  0x40087f91 in __gmpn_submul_1 () from /usr/lib/
  (gdb) bt
  #0  0x40087f91 in __gmpn_submul_1 () from /usr/lib/
  #1  0x4009b2e8 in __gmpz_cdiv_r_ui () from /usr/lib/
  #2  0x4022c544 in ?? ()
  #3  0x4022c71c in ?? ()
  #4  0x400912ae in __gmpn_bdivmod () from /usr/lib/
  #5  0x400792ca in __gmpz_divexact () from /usr/lib/
Alright, now I too see a SIGSEGV.

Unfortunately, my attempts at reproducing failed.

Please write a bug report along the lines of


More information about the gmp-bugs mailing list