segfault in mpz_divexact()

Antony Dovgal antony at zend.com
Wed Apr 18 15:23:22 CEST 2007


>   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

-- 
Wbr, 
Antony Dovgal


More information about the gmp-bugs mailing list