Opened 8 years ago

Closed 8 years ago

#732 closed bug (fixed)

chinrem() crashes for arguments of different size

Reported by: steenpass Owned by: somebody
Priority: minor Milestone: 4-1-0 and higher
Component: dontKnow Version: 4-0-2
Keywords: Cc:


I get the following error:

> ring r = 0, x, dp;
> ideal i1 = x;
> ideal i2 = x, x2;
> chinrem(list(i2, i1), list(2, 3));
Singular : signal 11 (v: 4020):
current line:>>chinrem(list(i2, i1), list(2, 3));<<
Segment fault/Bus error occurred at 7fff7fe4b0d0 because of 10206 (r:1438010457)
please inform the authors
trying to restart...

Of course, applying chinrem() to this kind of arguments is not quite correct. But Singular should either pad the second ideal with zeros of give a proper error message.

Strangely enough, it works the other way around:

> ring r = 0, x, dp;
> ideal i1 = x;
> ideal i2 = x, x2;
> chinrem(list(i1, i2), list(2, 3));

And, continuing this example, it then also works for i2, i1:

> chinrem(list(i2, i1), list(2, 3));

Change History (1)

comment:1 Changed 8 years ago by hannes

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.