Opened 6 years ago

Closed 20 months ago

#113 closed defect (migrated)

SegFault in OsiSpxSolverInterface::clone()

Reported by: kibaekkim Owned by: mjs
Priority: major Milestone:
Component: OsiSpx Version: trunk
Keywords: Cc:

Description

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;
}

Change History (1)

comment:1 Changed 20 months ago by stefan

  • Resolution set to migrated
  • Status changed from new to closed

This ticket has been migrated to GitHub and will be resolved there: https://github.com/coin-or/Osi/issues/113

Note: See TracTickets for help on using tickets.