Skip to content

crash with MIP_Problem #19903

@videlec

Description

@videlec

The following crashes Sage

sage: from sage.libs.ppl import Variable, Constraint_System, MIP_Problem
sage: x = Variable(0)
sage: y = Variable(1)
sage: cs = Constraint_System()
sage: cs.insert(x + y <= 2)
sage: MIP_Problem(2, cs, 0)
...
Unhandled SIGSEGV: A segmentation fault occurred in Sage.

If we replace 0 by x or y it also crashes... but with x-x or x+y or x+0it is fine!

This is just a problem of types.

CC: @vbraun

Component: linear programming

Author: Vincent Delecroix

Branch/Commit: f0c0346

Reviewer: Volker Braun, Matthias Koeppe

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions