segfault in mpz_divexact()

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


Antony Dovgal <antony at zend.com> 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/libgmp.so.3
  (gdb) bt
  #0  0x40087f91 in __gmpn_submul_1 () from /usr/lib/libgmp.so.3
  #1  0x4009b2e8 in __gmpz_cdiv_r_ui () from /usr/lib/libgmp.so.3
  #2  0x4022c544 in ?? ()
  #3  0x4022c71c in ?? ()
  #4  0x400912ae in __gmpn_bdivmod () from /usr/lib/libgmp.so.3
  #5  0x400792ca in __gmpz_divexact () from /usr/lib/libgmp.so.3
  
Alright, now I too see a SIGSEGV.

Unfortunately, my attempts at reproducing failed.

Please write a bug report along the lines of
http://gmplib.org/manual/Reporting-Bugs.html.

-- 
Torbjörn


More information about the gmp-bugs mailing list