[Osi-tickets] [COIN-OR Open Solver Interface] #51: OsiVolSolverInterface::addCol SIGSEGV

COIN-OR Open Solver Interface coin-trac at coin-or.org
Thu Mar 20 11:34:17 EDT 2008


#51: OsiVolSolverInterface::addCol SIGSEGV
----------------------+-----------------------------------------------------
  Reporter:  nowozin  |       Owner:  mjs
      Type:  defect   |      Status:  new
  Priority:  major    |   Milestone:     
 Component:  OsiVol   |     Version:     
Resolution:           |    Keywords:     
----------------------+-----------------------------------------------------
Comment (by nowozin):

 I added a patch that should fix this problem.

 The bug surfaces when OsiVolSolverInterface::colRimResize_ correctly
 allocates a larger bool array for the continuous/integer flag array and
 then subsequently tries to copy the old elements over to the new array.
 Because assignProblem does not initialize continuous_, hence the old
 continous_ in the call to CoinDisjointCopyN is a NULL pointer at the time
 of copying.

 The patch allocates a properly sized bool array in continous_ when
 assignProblem is called.

 I verified the crash goes away and the solver seems to work, but then
 figured COIN Vol is not applicable to my problem as it cannot handle
 ranged rows, so I can not test this patch thoroughly.

-- 
Ticket URL: <https://projects.coin-or.org/Osi/ticket/51#comment:2>
COIN-OR Open Solver Interface <http://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