<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Kish,<br>
      <br>
      The code throws an error complaining about column 0 because the
      problem is an empty problem.  The lp->mipmodel creation at line
      20 of sos.cpp clones the lp at the time - which is empty.<br>
      <br>
      The coin_loadprob at line 96 adds columns to the lp - not the
      cloned lp.<br>
      <br>
      Try using<br>
      <br>
          lp->Solver = new OsiXxxSolverInterface();<br>
          lp->mipmodel = new CbcModel();<br>
          OsiSolverInterface * solver = lp->Solver;<br>
          lp->mipmodel->assignSolver(solver);<br>
      <br>
      Not sure what has changed from 2.8<br>
      <br>
      John<br>
      <br>
      On 20/02/18 15:10, Kish Shen wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHM-QAuNWfTFZQbRFF_6vivaRE+Ky+uycwYHsKOP7iyg197RsA@mail.gmail.com">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hi,<br>
                <br>
              </div>
              I mentioned that I have been getting seg fault from Cbc
              2.9 (downloaded about a week ago) when I tried to add SOS
              to the problem. I have now managed to produce a program
              that reproduce the crash. It happen when a CbcSOS object
              is created, and not in addObjects(). <br>
              <br>
            </div>
            <div>As the problem needed to produce this was quite small,
              I was able to simplify the program to be in a single file,
              which I attach to this post. If I made any mistake in
              simplifying the program, I can send the original version,
              which requires extra support files from our system to
              compile.<br>
              <br>
            </div>
            <div>The program is extracted from calls to Cbc from our
              interface. The same calls worked with Cbc 2.8 (downloaded
              nearly 2 years ago). <br>
              <br>
            </div>
            Thanks in advance for any information or help in resolving
            this problem.<br>
            <br>
          </div>
          Cheers,<br>
          <br>
        </div>
        KIsh<br>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="https://list.coin-or.org/mailman/listinfo/cbc">https://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>