[Coin-symphony] OsiSym crashing when deleting a solver

Kish Shen kish.shen at crosscoreop.com
Fri Sep 1 00:07:30 EDT 2006


Hi,

I have been using SYMPHONY through OsiSymSolverInterface, with CLP as the linear solver.
I am using Osi because the code can be used with other solvers (I have tested the code with
Cbc/Clp).

I get a SIGABRT when I free the OsiSymSolverInterface after trying to solve a problem
that changes the objective coeffs and resolving the problem. I get the following warnings 
first:

sym_warm_solve(): SYMPHONY can not resolve for the
obj coeff change when reduced cost fixing is on,for now!
sym_get_obj_val(): There is no solution!
sym_get_col_solution(): There is no solution!

and then later on, when the OsiSumSolverInterface is being deleted, the crash happens 
when OsiSymSolverInterface::~OsiSymSolverInterface() calls sym_close_environment(),
with the message:

*** glibc detected *** double free or corruption (fasttop): 0x08061ff0 ***

apparently in

   FREE(env->best_sol.xind);

in free_master_u() [in master_wrapper.c]

where *env->best_sol.xind is pointing to the location:

(gdb) p *env->best_sol.xind
$1 = (int *) 0x8061ff0

Does this have any to do with there not being a solution? Is there anyway around this problem?

The SYMPHONY I am using is a tarball from 15 July 2006.

Thanks for any help in advance!

Cheers,

Kish






More information about the Symphony mailing list