PythonOptimizers / SuiteSparse.py

Cython/Python interface to SuiteSparse
GNU General Public License v3.0
6 stars 4 forks source link

Factor object messed up in CHOLMOD #16

Open ghost opened 8 years ago

ghost commented 8 years ago

segfault when deallocating a cholmod_factor CHOLMOD struct in CholmodSolverBase_@index@_@type@. Seemed to work before, not anymore. Why?

Is this related to messing around with a cholmod_sparse object directly? Because I only use CHOLMOD's own methods to create, manipulate and delete the cholmod_factor object.

ghost commented 8 years ago

What is also strange is that CHOLMOD recognized the cholmod_factor object to be in good state:

True
CHOLMOD factor:  Internal CHOLMOD factor struct:  5-by-5  simplicial, LDL'.  nz 0  OK
True
CHOLMOD factor:  Internal CHOLMOD factor struct:  5-by-5  simplicial, LDL'. nzmax 15.  nz 15  OK
ghost commented 8 years ago

If I only do a analyze(), then no problem to delete the cholmod_factor object. It is only after a factorize() operation that the segfault happens.

ghost commented 8 years ago

solve() works like a charm... so I guess that the cholmod_sparse is not that messed up after all...