The run with cbc executable that does not fail was using a May 2009 version of code. <br><br>Using
the current trunk it fails (same as when using CbcMain1):<br><br><div class="gmail_quote"><p>[magala@orclus71 src]$ ./cbc ~/subProb.n0.c0.p1.b0.lp</p>

<p>Coin Cbc and Clp Solver version 1.2trunk, build Sep 10 2009</p>

<p>command line - ./cbc /users/magala/subProb.n0.c0.p1.b0.lp
(default strategy 1)</p>

<p>Continuous objective value is 46.6667 - 0.00 seconds</p>

<p>Cgl0003I 20 fixed, 0 tightened bounds, 0 strengthened rows,
0 substitutions</p>

<p>Cgl0003I 5 fixed, 0 tightened bounds, 0 strengthened rows, 8
substitutions</p>

<p>Cgl0003I 0 fixed, 0 tightened bounds, 0 strengthened rows, 8
substitutions</p>

<p>Cgl0004I processed model has 0 rows, 0 columns (0 integer)
and 0 elements</p>

<p>Segmentation fault</p><br><br><br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p>The following small IP fails using the CbcMain1 interface. It
is a unique case, because all rows and cols are removed by presolver.</p>

<p> </p>

<p><a href="http://coral.ie.lehigh.edu/%7Emagh/tmp/subProb.n0.c0.p1.b0.lp" target="_blank">http://coral.ie.lehigh.edu/~magh/tmp/subProb.n0.c0.p1.b0.lp</a></p>

<p> </p>

<p><a href="https://projects.coin-or.org/Cbc/ticket/79" target="_blank">https://projects.coin-or.org/Cbc/ticket/79</a></p>

<p> </p>

<p>          CbcModel
cbc(*subprobSI);</p>

<p>          CbcMain0(cbc);</p>

<p>          const
char * argv[] = {&quot;cbc&quot;,&quot;-solve&quot;,&quot;-quit&quot;};</p>

<p>          CbcMain1(3,
argv, cbc);</p>

<p>         </p>

<p>Coin Cbc and Clp Solver version 1.2trunk, build Sep  9
2009</p>

<p>command line - cbc -solve -quit (default strategy 1)</p>

<p>Continuous objective value is 46.6667 - 0.00 seconds</p>

<p>Cgl0003I 20 fixed, 0 tightened bounds, 0 strengthened rows,
0 substitutions</p>

<p>Cgl0003I 5 fixed, 0 tightened bounds, 0 strengthened rows, 8
substitutions</p>

<p>Cgl0003I 0 fixed, 0 tightened bounds, 0 strengthened rows, 8
substitutions</p>

<p>Cgl0004I processed model has 0 rows, 0 columns (0 integer)
and 0 elements</p>

<p> </p>

<p>gdb gives:</p>

<p> </p>

<p>Program received signal SIGSEGV, Segmentation fault.</p>

<p>0x0000003ffa871f6b in free () from /lib64/libc.so.6</p>

<p>(gdb) where</p>

<p>#0  0x0000003ffa871f6b in free () from /lib64/libc.so.6</p>

<p>#1  0x000000000057bc41 in ~CbcRounding
(this=0x7fffec90c080)</p>

<p>    at ../../../Cbc/src/CbcHeuristic.cpp:1552</p>

<p>#2  0x00000000004ae837 in doHeuristics
(model=0x1d1f3e00, type=1)</p>

<p>    at ../../../Cbc/src/CbcSolver.cpp:3479</p>

<p>#3  0x00000000004c7776 in CbcMain1 (argc=3,
argv=0x7fffec9150c0,</p>

<p>    model=@0x7fffec914bb0, callBack=0x4a734c
&lt;dummyCallBack&gt;)</p>

<p>    at ../../../Cbc/src/CbcSolver.cpp:6680</p>

<p>#4  0x00000000004db968 in CbcMain1 (argc=3,
argv=0x7fffec9150c0,</p>

<p>    model=@0x7fffec914bb0) at
../../../Cbc/src/CbcSolver.cpp:3099</p>

<p> </p>

<p> </p>

<p> </p>

<p>Note, if I run it from the command line using cbc executable,
the error does not occur.</p>

<p> </p>

<p>[magala@orclus71 MMKP]$ ~/COIN/coin-Cbc/build-g/bin/cbc
subProb.n0.c0.p1.b0.lp</p>

<p>Coin Cbc and Clp Solver version 1.2trunk, build May 27 2009</p>

<p>command line - /users/magala/COIN/coin-Cbc/build-g/bin/cbc
subProb.n0.c0.p1.b0.lp (default strategy 1)</p>

<p>Continuous objective value is 46.6667 - 0.00 seconds</p>

<p>Cgl0003I 20 fixed, 0 tightened bounds, 0 strengthened rows,
0 substitutions</p>

<p>Cgl0003I 5 fixed, 0 tightened bounds, 0 strengthened rows, 8
substitutions</p>

<p>Cgl0003I 0 fixed, 0 tightened bounds, 0 strengthened rows, 8
substitutions</p>

<p>Cgl0004I processed model has 0 rows, 0 columns (0 integer)
and 0 elements</p>

<p>Cbc3007W No integer variables - nothing to do</p>

<p>Cuts at root node changed objective from 46.6667 to -1.79769e+308</p>

<p>Probing was tried 0 times and created 0 cuts of which 0 were
active after adding rounds of cuts (0.000 seconds)</p>

<p>Gomory was tried 0 times and created 0 cuts of which 0 were
active after adding rounds of cuts (0.000 seconds)</p>

<p>Knapsack was tried 0 times and created 0 cuts of which 0
were active after adding rounds of cuts (0.000 seconds)</p>

<p>Clique was tried 0 times and created 0 cuts of which 0 were
active after adding rounds of cuts (0.000 seconds)</p>

<p>MixedIntegerRounding2 was tried 0 times and created 0 cuts
of which 0 were active after adding rounds of cuts (0.000 seconds)</p>

<p>FlowCover was tried 0 times and created 0 cuts of which 0
were active after adding rounds of cuts (0.000 seconds)</p>

<p>TwoMirCuts was tried 0 times and created 0 cuts of which 0
were active after adding rounds of cuts (0.000 seconds)</p>

<p>Result - Finished objective 46.66667 after 0 nodes and 0
iterations - took 0.00 seconds (total time 0.01)</p>

<p>Total time 0.01</p>

</div>

</div>


<br>_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
<br></blockquote></div><br>