adipopescu / To-Do-List

My Singular Project
0 stars 0 forks source link

intersect causes segfault over ZZ in qring #58

Closed jakobkroeker closed 9 years ago

jakobkroeker commented 9 years ago
option (redSB);
ring rng = (integer),(x),dp;
ideal  QQQ = 15*x;
qring QR = QQQ;
ideal I = 12;
ideal J = -14*x;
intersect(I,J); // boom
adipopescu commented 9 years ago

?. Result:

_[1]=-42x

jakobkroeker commented 9 years ago

interesting, for me it crashes on a 32 bit system, commit 888e91ae19847d8d6aa58ce78bce75a68becfb8e

jakobkroeker commented 9 years ago

another example

ring rng = (integer),(x(1)),(lp(1),C);
short = 0 ;
ideal  QQQ = 4*x(1);
qring QR = QQQ;
ideal I = 13;
ideal J = -7;
ideal gI = std(I);
ideal gJ = std(J);
ideal I_J =  intersect(I,J);
 intersect(I_J,  I+gJ);
adipopescu commented 9 years ago

also the second one seems to be fixed. add the second one to the tests