crash on __gmpz_init

Torbjörn Granlund tg at gmplib.org
Mon Jan 22 18:14:28 CET 2024


"igor pesando - Dept of Physics, University of Torino"
<ipesando at to.infn.it> writes:

  thanks for the quick answer on the first case.
  But the issue is also present if I use malloc in C.

People have explained what you did wrong, which was several things.

Something you might consider: It would have been pretty surprising if
mpz_init was fundamentally broken, a function essentially every GMP
application program have beeing using for 30 years, don't you think?
Looking closer in such situations, considering the possibility of ones
own mistakes, might be a better approach.

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list