[Cbc] cbc failure

Matthew Galati Matthew.Galati at sas.com
Wed Aug 12 19:26:15 EDT 2009


Here is the traceback.

Cbc1Main1 is called with the following arguments:
         const char * argv[] = {"cbc","-log","0","-solve","-quit"};
         CbcMain1(5, argv, cbc);

Program received signal SIGFPE, Arithmetic exception.
0x081b46ae in CbcHeuristicFPump::solution (this=0x94a2390,
    solutionValue=@0xbff56fc8, betterSolution=0x9484e70)
    at ../../../Cbc/src/CbcHeuristicFPump.cpp:611
611             double perPass = totalNumberIterations/(totalNumberPasses+numberPasses);
(gdb) where
#0  0x081b46ae in CbcHeuristicFPump::solution (this=0x94a2390,
    solutionValue=@0xbff56fc8, betterSolution=0x9484e70)
    at ../../../Cbc/src/CbcHeuristicFPump.cpp:611
#1  0x081f5d64 in CbcModel::doHeuristicsAtRoot (this=0x944ed68,
    deleteHeuristicsAfterwards=0) at ../../../Cbc/src/CbcModel.cpp:12221
#2  0x081d09ae in CbcModel::branchAndBound (this=0x944ed68, doStatistics=0)
    at ../../../Cbc/src/CbcModel.cpp:1765
#3  0x081068f9 in CbcMain1 (argc=5, argv=0xbff5ce60, model=@0xbff5caf0,
    callBack=0x80ec230 <dummyCallBack>) at ../../../Cbc/src/CbcSolver.cpp:8135
#4  0x080ec253 in CbcMain1 (argc=5, argv=0xbff5ce60, model=@0xbff5caf0)
    at ../../../Cbc/src/CbcSolver.cpp:3106
<snip>



From: cbc-bounces at list.coin-or.org [mailto:cbc-bounces at list.coin-or.org] On Behalf Of Matthew Galati
Sent: Wednesday, August 12, 2009 7:19 PM
To: cbc at list.coin-or.org
Subject: [Cbc] cbc failure

Calling CbcMain1 it fails at L611 of CbcHeuristicFPump.cpp here:
 double perPass = totalNumberIterations/(totalNumberPasses+numberPasses);

because division by 0.

It would take some work to repeat in an independent test - since it happens deep in my code. But, you might want to check for division by 0 here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/cbc/attachments/20090812/d63be2ae/attachment.html 


More information about the Cbc mailing list