Opened 2 years ago

Last modified 2 years ago

#21825 new defect

memory leak in MixedIntegerLinearProgram coin backend

Reported by: dimpase Owned by:
Priority: major Milestone: sage-7.5
Component: linear programming Keywords:
Cc: mkoeppe Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by slabbe)

As reported here; running the following in a loop leads to memory growth.

def get_polytope():
    q = MixedIntegerLinearProgram(maximization=False, solver='Coin')
    w = q.new_variable(real=True, nonnegative=True) 

def fill_memory(n):
    for i in xrange(n):
        P = get_polytope()

sage: get_memory_usage()
sage: fill_memory(2000); get_memory_usage()
sage: fill_memory(2000); get_memory_usage()
sage: fill_memory(2000); get_memory_usage()
sage: fill_memory(2000); get_memory_usage()

This appears to be coin-specific.

Change History (2)

comment:1 Changed 2 years ago by dimpase

  • Cc mkoeppe added

comment:2 Changed 2 years ago by slabbe

  • Description modified (diff)

Importing the description from #21826. A little bit simplified version of code causing the leak.

Note: See TracTickets for help on using tickets.