#10319: segmentation fault in sparse rational matrix manipulations
------------------------------+---------------------------------------------
Reporter: monniaux | Owner: jason, was
Type: defect | Status: new
Priority: critical | Milestone:
Component: linear algebra | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Comment(by dsm):
Running the code under 4.6.2 on OS X doesn't segfault but generates a
TypeError for me:
{{{
Traceback (most recent call last):
File "essai1.py", line 21, in <module>
solution = solve_sos_equation(polynomial_ring, positive_polynomials,
positive_monomial_lists, equality_polynomials, equality_monomial_lists,
rhs_polynomial)
File "<string>", line 181, in solve_sos_equation
File "<string>", line 28, in left_near_kernel
File "/Applications/sage_devel/local/lib/python2.6/site-
packages/sage/matrix/constructor.py", line 2079, in block_matrix
raise TypeError("invalid block_matrix invocation")
TypeError: invalid block_matrix invocation
}}}
However, if you load the code *again*, it crashes: the second time's the
strange.
This is the smallest test case I can come up with:
{{{
sage: m = Matrix(QQ, [1], sparse=True)
sage: m.echelonize()
sage: m
[1]
sage: m = Matrix(QQ, [1], sparse=True)
sage: m.echelonize()
sage: m
------------------------------------------------------------
Unhandled SIGSEGV: A segmentation fault occurred in Sage.
This probably occurred because a *compiled* component
of Sage has a bug in it (typically accessing invalid memory)
and is not properly wrapped with sig_on(), sig_off().
You might want to run Sage under gdb with 'sage -gdb' to debug this.
Sage will now terminate (sorry).
------------------------------------------------------------
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10319#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.