Skip to content

copying a linear program crashes Sage #11588

@johnperry-math

Description

@johnperry-math

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.

Component: linear programming

Keywords: copy

Author: Nathann Cohen

Reviewer: John Perry

Merged: sage-4.7.2.alpha3

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions