Crash when attempting to call mpz_invert in a program that uses mpq_class and mpz_class
marc.glisse at inria.fr
Fri Mar 24 23:27:16 UTC 2017
On Fri, 24 Mar 2017, Álvaro Begué wrote:
> I tried some simplifications of the program and the problem went away.
> Anyway, I got it down to around 10 lines, so it should be easy to see
> what's going on.
Missing mpz_init on inverse?
(the code is doing a lot of useless copies, but I guess that's because
it is a reduced testcase)
More information about the gmp-bugs