<br><font size=2 face="sans-serif">Kim,</font>
<br>
<br><font size=2 face="sans-serif">Unable to build from file. &nbsp;configure
wants main.cc</font>
<br>
<br><font size=2 face="sans-serif">However you should be able to get rid
of error by changing preprocess option. &nbsp;slacks are being replaced
by integer variables and in this case preprocessing is doing very little
so you end up with one more variable after preprocessing than before. &nbsp;This
is probably what is causing problem. &nbsp;I may try and look at it.</font>
<br>
<br><font size=2 face="sans-serif">So change your preprocessing default/option
so translate[preProcess] in CoinSolveCbc5.cc is 0 e.g. preProcess=1 - that
should fix problem.</font>
<br>
<br><font size=2 face="sans-serif">John Forrest</font>
<br>
<br>
<br>
<table width=100%>
<tr>
<td><img src=cid:_1_07B09A4407B0965C00544A1D852573E8>
<td width=100%>
<table width=100%>
<tr valign=top>
<td width=100%><font size=2 face="sans-serif"><b>[Coin-discuss] Segfault
when using CbcModel</b></font></table>
<br>
<table width=100%>
<tr>
<td><font size=2 color=#e26200 face="sans-serif"><b>Kim Hansen </b></font>
<td><font size=2 color=#8f8f8f face="sans-serif">to:</font>
<td><font size=2 face="sans-serif">COIN discussion (and bugs)</font>
<td>
<div align=right><font size=1 face="sans-serif">02/07/2008 09:39 AM</font></div></table>
<br>
<table width=100%>
<tr>
<td>
<table width=100%>
<tr>
<td><font size=2 color=#8f8f8f face="sans-serif">Sent by:</font>
<td width=100%><font size=2 color=#e26200 face="sans-serif"><b>coin-discuss-bounces@list.coin-or.org</b></font></table>
<br>
<td>
<div align=right></div></table>
<br></table>
<br>
<br>
<hr>
<br>
<br>
<br><tt><font size=2>I get a segfault in my program on a few lp problems.
I don't know if<br>
it is a bug in our way of using coin or it is a problem in coin.<br>
<br>
The code that can reproduce the problem can be found at<br>
http://ange.dk/~kim/segfault-11990.tar.gz<br>
<br>
I have run our test program through valgrind and gets a lot of invalid<br>
write, the first one is this, the entire valgrind output is in the<br>
tar.gz as valgrind.log.<br>
It looks like an array is allocated 8 bytes too short, but I have no<br>
idea where too look for the reason for this problem.<br>
<br>
==32256== Invalid write of size 1<br>
==32256== &nbsp; &nbsp;at 0x4026BA8: memcpy (mc_replace_strmem.c:402)<br>
==32256== &nbsp; &nbsp;by 0x40B7C05: CbcModel::branchAndBound(int) (CbcModel.cpp:1510)<br>
==32256== &nbsp; &nbsp;by 0x8051B22: CoinSolveCbc5::run() (CoinSolveCbc5.cc:461)<br>
==32256== &nbsp; &nbsp;by 0x804D01F: main (main.cc:256)<br>
==32256== &nbsp;Address 0x6598a80 is 0 bytes after a block of size 976
alloc'd<br>
==32256== &nbsp; &nbsp;at 0x4024F14: operator new[](unsigned) (vg_replace_malloc.c:268)<br>
==32256== &nbsp; &nbsp;by 0x40A86BC: CbcModel::CbcModel(CbcModel const&amp;,
bool)<br>
(CoinHelperFunctions.hpp:156)<br>
==32256== &nbsp; &nbsp;by 0x8050ED7: CoinSolveCbc5::run() (CoinSolveCbc5.cc:222)<br>
==32256== &nbsp; &nbsp;by 0x804D01F: main (main.cc:256)<br>
<br>
Regards,<br>
-- <br>
Kim Hansen<br>
Vadgårdsvej 3, 2.tv<br>
2860 Søborg<br>
Fastnet: 3956 2437 &nbsp;-- &nbsp;Mobil: 3091 2437<br>
<br>
_______________________________________________<br>
Coin-discuss mailing list<br>
Coin-discuss@list.coin-or.org<br>
http://list.coin-or.org/mailman/listinfo/coin-discuss<br>
</font></tt>
<br>