#11588: copying a linear program crashes Sage
----------------------------------+-----------------------------------------
Reporter: john_perry | Owner: ncohen
Type: defect | Status: positive_review
Priority: major | Milestone: sage-4.7.2
Component: linear programming | Keywords: MixedIntegerLinearProgram,
copy
Work_issues: | Upstream: N/A
Reviewer: John Perry | Author: Nathann Cohen
Merged: | Dependencies:
----------------------------------+-----------------------------------------
Description changed by leif:
Old description:
> It would be useful to copy a linear program, so that one doesn't have to
> recopy the constraints. Unfortunately, this crashes Sage, and pretty
> hard.
>
> {{{
> sage: eqs = MixedIntegerLinearProgram()
> sage: eqs2 = copy(eqs)
> sage: eqs2
>
> ------------------------------------------------------------
> 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).
> ------------------------------------------------------------
> }}}
New description:
It would be useful to copy a linear program, so that one doesn't have to
recopy the constraints. Unfortunately, this crashes Sage, and pretty hard.
{{{
sage: eqs = MixedIntegerLinearProgram()
sage: eqs2 = copy(eqs)
sage: eqs2
------------------------------------------------------------
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).
------------------------------------------------------------
}}}
----
Apply [attachment:trac_11588.patch] to the Sage library.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11588#comment:19>
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.