<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi John.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Yes, I am deleting columns &#8211; so I assume that was the issue. If
I switch off enableSimplexInterface things work fine. The only reason I had put
it on was to use getBasics &#8211; but I realized that I could just getWarmStart, since
all I need is the status info. So, I don&#8217;t need simplex interface after all.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Maybe you can add an error (or assertion/exception) to a user if
they try to delete a column/row with simplex interface on?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks!<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Matt<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> John J Forrest
[mailto:jjforre@us.ibm.com] <br>
<b>Sent:</b> Friday, September 11, 2009 5:33 AM<br>
<b>To:</b> Matthew Galati<br>
<b>Subject:</b> Re: [Clp] ABR in ClpSimplex:deleteRim using simplexInterface<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Matt,<br>
<br>
If you can switch off enableSimplexInterface then it probably won't happen.<br>
<br>
You can't add/delete rows or columns while enableSimplexInterface is on. Are
you?<br>
<br>
John<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> John J Forrest
[mailto:jjforre@us.ibm.com] <br>
<b>Sent:</b> Thursday, September 10, 2009 12:50 PM<br>
<b>To:</b> Matthew Galati<br>
<b>Cc:</b> clp@list.coin-or.org; clp-bounces@list.coin-or.org;
osi@list.coin-or.org<br>
<b>Subject:</b> Re: [Clp] ABR in ClpSimplex:deleteRim using simplexInterface<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p style='margin-bottom:12.0pt'>But how can I reproduce bug?<br>
<br>
<img width=16 height=16 id="_x0000_i1025"
src="cid:image001.gif@01CA32C2.1673C310"
alt="Inactive hide details for Matthew Galati ---09/10/2009 12:45:05 PM---https://projects.coin-or.org/Clp/ticket/33 [E] ABR: Array "><span
style='color:#424282'>Matthew Galati ---09/10/2009 12:45:05 PM---https://projects.coin-or.org/Clp/ticket/33
[E] ABR: Array bounds read in ClpSimplex::deleteRim(int)</span><o:p></o:p></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%"
 style='width:100.0%'>
 <tr>
  <td width="1%" valign=top style='width:1.0%;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><img width=96 height=1 id="_x0000_i1026"
  src="cid:image002.png@01CA32C2.1673C310"><br>
  <span style='font-size:10.0pt;color:#5F5F5F'>From:</span><o:p></o:p></p>
  </td>
  <td width="100%" valign=top style='width:100.0%;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><img width=1 height=1 id="_x0000_i1027"
  src="cid:image003.png@01CA32C2.1673C310"><br>
  <span style='font-size:10.0pt'>Matthew Galati &lt;Matthew.Galati@sas.com&gt;</span><o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td width="1%" valign=top style='width:1.0%;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><img width=96 height=1 id="_x0000_i1028"
  src="cid:image002.png@01CA32C2.1673C310"><br>
  <span style='font-size:10.0pt;color:#5F5F5F'>To:</span><o:p></o:p></p>
  </td>
  <td width="100%" valign=top style='width:100.0%;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><img width=1 height=1 id="_x0000_i1029"
  src="cid:image003.png@01CA32C2.1673C310"><br>
  <span style='font-size:10.0pt'>&quot;clp@list.coin-or.org&quot; &lt;clp@list.coin-or.org&gt;,
  &quot;osi@list.coin-or.org&quot; &lt;osi@list.coin-or.org&gt;</span><o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td width="1%" valign=top style='width:1.0%;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><img width=96 height=1 id="_x0000_i1030"
  src="cid:image002.png@01CA32C2.1673C310"><br>
  <span style='font-size:10.0pt;color:#5F5F5F'>Date:</span><o:p></o:p></p>
  </td>
  <td width="100%" valign=top style='width:100.0%;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><img width=1 height=1 id="_x0000_i1031"
  src="cid:image003.png@01CA32C2.1673C310"><br>
  <span style='font-size:10.0pt'>09/10/2009 12:45 PM</span><o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td width="1%" valign=top style='width:1.0%;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><img width=96 height=1 id="_x0000_i1032"
  src="cid:image002.png@01CA32C2.1673C310"><br>
  <span style='font-size:10.0pt;color:#5F5F5F'>Subject:</span><o:p></o:p></p>
  </td>
  <td width="100%" valign=top style='width:100.0%;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><img width=1 height=1 id="_x0000_i1033"
  src="cid:image003.png@01CA32C2.1673C310"><br>
  <span style='font-size:10.0pt'>[Clp] ABR in ClpSimplex:deleteRim using
  simplexInterface</span><o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td width="1%" valign=top style='width:1.0%;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><img width=96 height=1 id="_x0000_i1034"
  src="cid:image002.png@01CA32C2.1673C310"><br>
  <span style='font-size:10.0pt;color:#5F5F5F'>Sent by:</span><o:p></o:p></p>
  </td>
  <td width="100%" valign=top style='width:100.0%;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><img width=1 height=1 id="_x0000_i1035"
  src="cid:image003.png@01CA32C2.1673C310"><br>
  <span style='font-size:10.0pt'>clp-bounces@list.coin-or.org</span><o:p></o:p></p>
  </td>
 </tr>
</table>

<div class=MsoNormal>

<hr size=2 width="100%" noshade style='color:#8091A5' align=left>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br>
<br>
<a href="https://projects.coin-or.org/Clp/ticket/33">https://projects.coin-or.org/Clp/ticket/33</a><br>
<br>
[E] ABR: Array bounds read in ClpSimplex::deleteRim(int) {6 occurrences}<br>
Reading 8 bytes from 0x03fb0cd0 (8 bytes at 0x03fb0cd0 illegal)<br>
Address 0x03fb0cd0 is 1 byte past the end of a 520 byte block at 0x03fb0ac8<br>
Address 0x03fb0cd0 points to a C++ new block in heap 0x03f70000<br>
Thread ID: 0x1ae0<br>
Error location<br>
ClpSimplex::deleteRim(int)
[c:\cygwin\home\magala\coin\coin-decomp\clp\src\clpsimplex.cpp:4322]<br>
reducedCost_[i] = reducedCostWork_[i];<br>
}<br>
for (i=0;i&lt;numberRows;i++) {<br>
=&gt; double value = rowActivityWork_[i];<br>
double lower = rowLowerWork_[i];<br>
double upper = rowUpperWork_[i];<br>
if (lower&gt;-1.0e20||upper&lt;1.0e20) {<br>
ClpSimplex::finish(int)
[c:\cygwin\home\magala\coin\coin-decomp\clp\src\clpsimplex.cpp:8125]<br>
} else {<br>
whatsChanged_ &amp;= ~0xffff;<br>
}<br>
=&gt; deleteRim(getRidOfData);<br>
// Skip message if changing algorithms<br>
if (problemStatus_!=10) {<br>
if (problemStatus_==-1)<br>
OsiClpSolverInterface::disableSimplexInterface(void)
[c:\cygwin\home\magala\coin\coin-decomp\osi\src\osiclp\osiclpsolverinterface.cpp:5331]<br>
// message will not appear anyway<br>
int saveMessageLevel=modelPtr_-&gt;messageHandler()-&gt;logLevel();<br>
modelPtr_-&gt;messageHandler()-&gt;setLogLevel(0);<br>
=&gt; modelPtr_-&gt;finish();<br>
modelPtr_-&gt;messageHandler()-&gt;setLogLevel(saveMessageLevel);<br>
modelPtr_-&gt;restoreData(saveData_);<br>
modelPtr_-&gt;scaling(saveData_.scalingFlag_);<br>
OsiClpSolverInterface::resolve(void)
[c:\cygwin\home\magala\coin\coin-decomp\osi\src\osiclp\osiclpsolverinterface.cpp:851]<br>
int saveSolveType=modelPtr_-&gt;solveType();<br>
bool doingPrimal = modelPtr_-&gt;algorithm()&gt;0;<br>
if (saveSolveType==2) {<br>
=&gt; disableSimplexInterface();<br>
}<br>
int saveOptions = modelPtr_-&gt;specialOptions();<br>
int startFinishOptions=0;<br>
DecompAlgo::solutionUpdate(DecompPhase,int,int)
[c:\cygwin\home\magala\coin\coin-decomp\decomp\src\decompalgo.cpp:1846]<br>
DecompAlgo::processNode(int,double,double) [c:\cygwin\home\magala\coin\coin-decomp\decomp\src\decompalgo.cpp:1452]<br>
AlpsDecompTreeNode::process(bool,bool)
[c:\cygwin\home\magala\coin\coin-decomp\decomp\src\alpsdecomptreenode.cpp:220]<br>
AlpsSubTree::exploreUnitWork(bool,int,double,AlpsExitStatus&amp;,int&amp;,int&amp;,int&amp;,int&amp;,bool&amp;)
[c:\cygwin\home\magala\coin\coin-decomp\alps\src\alpssubtree.cpp:1288]<br>
AlpsSubTree::exploreSubTree(AlpsTreeNode
*,int,double,int&amp;,int&amp;,int&amp;,int&amp;)
[c:\cygwin\home\magala\coin\coin-decomp\alps\src\alpssubtree.cpp:495]<br>
AlpsKnowledgeBrokerSerial::rootSearch(AlpsTreeNode *)
[c:\cygwin\home\magala\coin\coin-decomp\alps\src\alpsknowledgebrokerserial.cpp:226]<br>
Allocation location<br>
new(UINT) [f:\dd\vctools\crt_bld\self_x86\crt\src\new.cpp:57]<br>
&lt;&gt;=(UINT) [f:\dd\vctools\crt_bld\self_x86\crt\src\newaop.cpp:7]<br>
ClpSimplex::createRim(int,bool,int)
[c:\cygwin\home\magala\coin\coin-decomp\clp\src\clpsimplex.cpp:3257]<br>
delete [] dj_;<br>
dj_ = new double[numberTotal];<br>
delete [] solution_;<br>
=&gt; solution_ = new double[numberTotal];<br>
}<br>
reducedCostWork_ = dj_;<br>
rowReducedCost_ = dj_+numberColumns_;<br>
ClpSimplex::startup(int,int)
[c:\cygwin\home\magala\coin\coin-decomp\clp\src\clpsimplex.cpp:7962]<br>
<br>
// put in standard form (and make row copy)<br>
// create modifiable copies of model rim and do optional scaling<br>
=&gt; bool goodMatrix=createRim(7+8+16+32,true,startFinishOptions);<br>
<br>
if (goodMatrix) {<br>
// switch off factorization if bad<br>
OsiClpSolverInterface::enableSimplexInterface(bool)
[c:\cygwin\home\magala\coin\coin-decomp\osi\src\osiclp\osiclpsolverinterface.cpp:5312]<br>
#ifdef NDEBUG<br>
modelPtr_-&gt;startup(0);<br>
#else<br>
=&gt; int returnCode=modelPtr_-&gt;startup(0);<br>
assert (!returnCode||returnCode==2);<br>
#endif<br>
modelPtr_-&gt;specialOptions_=saveOptions;<br>
OsiClpSolverInterface::resolve(void)
[c:\cygwin\home\magala\coin\coin-decomp\osi\src\osiclp\osiclpsolverinterface.cpp:1219]<br>
DecompAlgo::solutionUpdate(DecompPhase,int,int)
[c:\cygwin\home\magala\coin\coin-decomp\decomp\src\decompalgo.cpp:1846]<br>
DecompAlgo::processNode(int,double,double)
[c:\cygwin\home\magala\coin\coin-decomp\decomp\src\decompalgo.cpp:1191]<br>
AlpsDecompTreeNode::process(bool,bool)
[c:\cygwin\home\magala\coin\coin-decomp\decomp\src\alpsdecomptreenode.cpp:220]<br>
AlpsSubTree::exploreUnitWork(bool,int,double,AlpsExitStatus&amp;,int&amp;,int&amp;,int&amp;,int&amp;,bool&amp;)
[c:\cygwin\home\magala\coin\coin-decomp\alps\src\alpssubtree.cpp:1288]<tt><span
style='font-size:10.0pt'>_______________________________________________</span></tt><span
style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt>Clp mailing list</tt><br>
<tt>Clp@list.coin-or.org</tt><br>
<tt><a href="http://list.coin-or.org/mailman/listinfo/clp">http://list.coin-or.org/mailman/listinfo/clp</a></tt><br>
<br>
</span><o:p></o:p></p>

</div>

</body>

</html>