Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault in sage/rings/polynomial/multi_polynomial_libsingular.so #19245

Closed
cnassau opened this issue Sep 19, 2015 · 5 comments
Closed

segfault in sage/rings/polynomial/multi_polynomial_libsingular.so #19245

cnassau opened this issue Sep 19, 2015 · 5 comments

Comments

@cnassau
Copy link

cnassau commented Sep 19, 2015

This code crashes Sage (version 6.9.beta5, detected on the branch for #6101):

br = PolynomialRing(ZZ,"a,b,c,d,x1,x2,y1,y2")
br.inject_variables()
dct = {b:a,d:c,x1:0,x2:0,y1:0,y2:0}
L1 = matrix(br,[[x1,x2],[-x1,-x2],[y1,y2],[-y1,-y2]]).transpose().subs(dct)

Backtrace:

------------------------------------------------------------------------
/waste/cn/sage-git/local/lib/python2.7/site-packages/sage/ext/interrupt/interrupt.so(+0x4125)[0x7ff648c6a125]
/waste/cn/sage-git/local/lib/python2.7/site-packages/sage/ext/interrupt/interrupt.so(+0x4177)[0x7ff648c6a177]
/waste/cn/sage-git/local/lib/python2.7/site-packages/sage/ext/interrupt/interrupt.so(+0x6029)[0x7ff648c6c029]
/lib64/libpthread.so.0(+0xf890)[0x7ff64b9ec890]
/waste/cn/sage-git/local/lib/python2.7/site-packages/sage/rings/polynomial/multi_polynomial_libsingular.so(+0x3f1cd)[0x7ff628bd81cd]
/waste/cn/sage-git/local/lib/python2.7/site-packages/sage/matrix/matrix2.so(+0x13c2f6)[0x7ff62f9192f6]
/waste/cn/sage-git/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x48a9)[0x7ff64bd041f9]
/waste/cn/sage-git/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7ff64bd05a1d]
/waste/cn/sage-git/local/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7ff64bd05b52]
/waste/cn/sage-git/local/lib/libpython2.7.so.1.0(PyRun_FileExFlags+0x92)[0x7ff64bd30722]
/waste/cn/sage-git/local/lib/libpython2.7.so.1.0(PyRun_SimpleFileExFlags+0xd9)[0x7ff64bd31c59]
/waste/cn/sage-git/local/lib/libpython2.7.so.1.0(Py_Main+0xc4d)[0x7ff64bd479ed]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7ff64af4fb05]
python[0x4007be]

Component: commutative algebra

Keywords: libsingular, matrix, substitution

Reviewer: Vincent Delecroix

Issue created by migration from https://trac.sagemath.org/ticket/19245

@cnassau cnassau added this to the sage-6.9 milestone Sep 19, 2015
@fchapoton
Copy link
Contributor

comment:1

Attachment: sage_crash_PziaWp.log

Smaller case, still crashing in 6.9.beta7:

sage: br = PolynomialRing(ZZ,"a,x1,x2")
sage: br.inject_variables()
sage: dct = {x1:a, x2:0}
sage: matrix(br,[[x2]]).subs(dct)

@fchapoton
Copy link
Contributor

comment:3

Interestingly, this seem to appear more generally when the result of substitution is zero:

sage: br = PolynomialRing(ZZ,"a,x1,x2")
sage: br.inject_variables()
sage: dct = {x1:a, x2:-1}
sage: matrix(br,[[1+x2]]).subs(dct)

BOOM!

@videlec
Copy link
Contributor

videlec commented Jul 27, 2016

comment:4

duplicate of the already fixed #17785.

@videlec videlec removed this from the sage-6.9 milestone Jul 27, 2016
@jdemeyer
Copy link

Reviewer: Vincent Delecroix

@embray
Copy link
Contributor

embray commented Aug 30, 2016

comment:6

Determined to be invalid/duplicate/wontfix (closing as "wontfix" as a catch-all resolution).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants