[Osi-tickets] [COIN-OR Open Solver Interface] #113: SegFault in OsiSpxSolverInterface::clone()

COIN-OR Open Solver Interface coin-trac at coin-or.org
Mon Feb 9 17:08:24 EST 2015


#113: SegFault in OsiSpxSolverInterface::clone()
-----------------------+-------------------
 Reporter:  kibaekkim  |      Owner:  mjs
     Type:  defect     |     Status:  new
 Priority:  major      |  Milestone:
Component:  OsiSpx     |    Version:  trunk
 Keywords:             |
-----------------------+-------------------
 The following simple snippet gives a segfault:

 {{{
 int main()
 {
         OsiSpxSolverInterface * si = new OsiSpxSolverInterface;

         si->readMps("../p0201.mps");
         si->messageHandler()->setLogLevel(1);
         si->initialSolve();

         printf("-> objective value: %f\n", si->getObjValue());

         OsiSolverInterface * si2 = si->clone();
         si2->initialSolve();

         printf("-> objective value: %f\n", si2->getObjValue());

         delete si;
         si = NULL;
         delete si2;
         si2 = NULL;

         return 0;
 }
 }}}

--
Ticket URL: <https://projects.coin-or.org/Osi/ticket/113>
COIN-OR Open Solver Interface <https://projects.coin-or.org/Osi>
An API for a variety of LP and MIP solvers (and more).



More information about the Osi-tickets mailing list