M2 icon indicating copy to clipboard operation
M2 copied to clipboard

gcd(0,0,...) leads M2 1.17 to crash

Open giovannistagliano opened this issue 4 years ago • 4 comments

This is a simple example where i get a crash of M2: O = 0_(ZZ/41[x]); gcd {O,O}

This is another example: O = 0_(ZZ/41[x]); gcd {O,O,x}

But strangely the following work: O = 0_(ZZ/41[x]); gcd {O,x,O}; gcd {O,x}; gcd {O};

Before my terminal closes I get this error:

Flint exception (Impossible inverse): Cannot invert modulo 41*1 Aborted (core dumped)

giovannistagliano avatar Jan 21 '21 13:01 giovannistagliano

I missed this one, apparently. I'll work on fixing it. Sorry for the late response on it!

mikestillman avatar May 11 '22 01:05 mikestillman

@DanGrayson This one is easy to fix, I think. Should I fix it for 1.20? Or have you already started release builds...?

mikestillman avatar May 11 '22 01:05 mikestillman

Sure, I can wait a little while.

DanGrayson avatar May 11 '22 01:05 DanGrayson

@DanGrayson Just submittted a one line pull request fixing this (I hope).

mikestillman avatar May 11 '22 01:05 mikestillman