<div dir="ltr">Adding <span style="font-family:arial,sans-serif;font-size:13px">FC=ifort and ADD_FCFLAGS=&quot;-openmp&quot; to configure doesn&#39;t seem to change the behavior -- the hs071 example still segfaults with MA86 and MA97. That is:</span><div>

<font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif"># The following configure leads to segfaults in hs071 with MA86 and MA97</font></div><div><font face="arial, sans-serif">../configure CXX=icpc CC=icc F77=ifort FC=ifort ADD_CFLAGS=&quot;-openmp&quot; ADD_FFLAGS=&quot;-openmp&quot; ADD_CXXFLAGS=&quot;-openmp&quot; ADD_FCFLAGS=&quot;-openmp&quot;<br>

</font><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">I&#39;ve attached a patch for </span><font face="arial, sans-serif">hs071_main.cpp that simply adds a line to change the linear solver. To produce the segfault:</font></div>

</div><div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif"># Apply the patch to a clean version of Ipopt-3.11.0</font></div><div style><font face="arial, sans-serif">patch Ipopt/examples/hs071_cpp/hs071_main.cpp &lt; hs071_main.patch</font></div>

<div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif"># Create and configure a build with the Intel suite</font></div><div style><font face="arial, sans-serif">mkdir build</font></div>

<div style><font face="arial, sans-serif">cd build</font></div><div style><span style="font-family:arial,sans-serif">../configure CXX=icpc CC=icc F77=ifort FC=ifort ADD_CFLAGS=&quot;-openmp&quot; ADD_FFLAGS=&quot;-openmp&quot; ADD_CXXFLAGS=&quot;-openmp&quot; ADD_FCFLAGS=&quot;-openmp&quot;</span><font face="arial, sans-serif"><br>

</font></div><div style><span style="font-family:arial,sans-serif"><br></span></div><div style><span style="font-family:arial,sans-serif"># Make and make test</span></div><div style><span style="font-family:arial,sans-serif">make</span></div>

<div style><span style="font-family:arial,sans-serif">make test</span></div><div style><span style="font-family:arial,sans-serif"><br></span></div><div style><span style="font-family:arial,sans-serif"># To obtain a backtrace, from the build directory</span></div>

<div style><font face="arial, sans-serif">idbc ./Ipopt/test/.libs/lt-hs071_cpp</font><br></div><div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">I&#39;m happy to answer any questions!</font></div>

<div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">Best regards,</font></div><div style><font face="arial, sans-serif">Breannan Smith</font></div><div style><font face="arial, sans-serif"><a href="mailto:smith@cs.columbia.edu">smith@cs.columbia.edu</a></font></div>

<div style><font face="arial, sans-serif"><br></font></div><div style><span style="font-family:arial,sans-serif"><br></span></div><div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif"><br>

</font></div><div style><font face="arial, sans-serif"><br></font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 23, 2013 at 4:05 AM, Jonathan Hogg <span dir="ltr">&lt;<a href="mailto:jonathan.hogg@stfc.ac.uk" target="_blank">jonathan.hogg@stfc.ac.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>First question, does adding FC=ifort
      ADD_FCFLAGS=&quot;-openmp&quot; to configure and recompiling from scratch
      fix things?<br>
      <br>
      If not, is it possible to supply me with a copy of your code so I
      can attempt to reproduce the problem? I can&#39;t recall whether the
      Ipopt driver shipped with the option to dump matrices, but if it
      did a matrix dump of iteration zero might be easier?<br>
      <br>
      Thanks,<br>
      <br>
      Jonathan.<div><div class="h5"><br>
      <br>
      On 23/05/13 04:32, Breannan Smith wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      
      <div dir="ltr">Further investigation reveals that this problem
        arises with the Intel compiler suite but not with the GCC suite.
        More concretely:
        <div><br>
        </div>
        <div># Configuring/building with the Intel compiler
          suite leads to a segfault with MA86 and MA97 for <span style="font-family:arial,sans-serif;font-size:13px">hs071_main</span></div>
        <div>../configure CXX=icpc CC=icc F77=ifort ADD_CFLAGS=&quot;-openmp&quot;
          ADD_FFLAGS=&quot;-openmp&quot; ADD_CXXFLAGS=&quot;-openmp&quot;<br>
        </div>
        <div><br>
        </div>
        <div># Configuring/building with the GCC suite works
          with MA86 and MA97 for <span style="font-family:arial,sans-serif;font-size:13px">hs071_main</span></div>
        <div>../configure CXX=g++ CC=gcc F77=gfortran
          ADD_CFLAGS=&quot;-fopenmp&quot; ADD_FFLAGS=&quot;-fopenmp&quot;
          ADD_CXXFLAGS=&quot;-fopenmp&quot;<br>
        </div>
        <div><br>
        </div>
        <div>For reference, I have run these tests with
          GCC 4.6.3 and ICC 13.1.1 20130313. </div>
        <div><br>
        </div>
        <div>
          <div style="font-family:arial,sans-serif;font-size:13px">Best
            regards,</div>
          <div style="font-family:arial,sans-serif;font-size:13px">Breannan
            Smith</div>
          <div style="font-family:arial,sans-serif;font-size:13px">
            <a href="mailto:smith@cs.columbia.edu" target="_blank">smith@cs.columbia.edu</a></div>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, May 22, 2013 at 12:59 PM,
          Breannan Smith <span dir="ltr">&lt;<a href="mailto:smith@cs.columbia.edu" target="_blank">smith@cs.columbia.edu</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Dear Ipopt Community,
              <div><br>
              </div>
              <div>I&#39;m attempting to run Ipopt-3.11.0 with the parallel
                HSL solvers (<a href="http://www.hsl.rl.ac.uk/ipopt/" target="_blank">http://www.hsl.rl.ac.uk/ipopt/</a>)
                on 64-bit Linux with Intel&#39;s compilers (version 13.1.1
                20130313), but I encounter a segfault if I execute Ipopt
                with MA86 or MA97 with OpenMP enabled. I am configuring
                Ipopt with:</div>
              <div><br>
              </div>
              <div>../configure CXX=icpc CC=icc F77=ifort
                ADD_CFLAGS=-openmp ADD_FFLAGS=-openmp
                ADD_CXXFLAGS=-openmp --with-blas=&quot;-L$MKLROOT/lib
                -lmkl_intel_lp64 -lmkl_sequential -lmkl_core&quot;</div>
              <div>
                <br>
              </div>
              <div>I am building the HSL libraries with Ipopt as
                described in the documentation (that is copying coinhsl
                into ThirdParty/HSL). </div>
              <div><br>
              </div>
              <div>If I then modify the C++ test example hs071_main.cpp
                to use ma97 (e.g. app-&gt;Options()-&gt;SetStringValue(
                <span>&quot;linear_solver&quot;</span>, <span>&quot;ma97&quot;</span> )),
                build, and execute, the code segfaults in
                hsl_mc78_integer_mp_mc78_col_counts_integer_ (backtrace
                included below). This same example runs fine with ma27,
                ma57, and mumps. </div>
              <div><br>
              </div>
              <div>Any thoughts, tips, tricks, or suggestions as to the
                cause of this segfault? </div>
              <div><br>
              </div>
              <div>Thanks, I&#39;m happy to run more tests or provide more
                details!</div>
              <div>
                <br>
              </div>
              <div>Best regards,</div>
              <div>Breannan Smith</div>
              <div><a href="mailto:smith@cs.columbia.edu" target="_blank">smith@cs.columbia.edu</a></div>
              <div><br>
              </div>
              <div>The backtrace:</div>
              <div><br>
              </div>
              <div>
                <div>
                  <div>Program received signal SIGSEGV, Segmentation
                    fault.</div>
                  <div>0x00007ffff71b9701 in
                    hsl_mc78_integer_mp_mc78_col_counts_integer_ ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/ThirdParty/HSL/.libs/libcoinhsl.so.1</div>
                  <div>(gdb) bt</div>
                  <div>#0  0x00007ffff71b9701 in
                    hsl_mc78_integer_mp_mc78_col_counts_integer_ ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/ThirdParty/HSL/.libs/libcoinhsl.so.1</div>
                  <div>#1  0x00007ffff729b031 in
                    hsl_ma97_double_mp_get_nzl_ ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/ThirdParty/HSL/.libs/libcoinhsl.so.1</div>
                  <div>#2  0x00007ffff7298d9e in
                    hsl_ma97_double_mp_compute_order_ ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/ThirdParty/HSL/.libs/libcoinhsl.so.1</div>
                  <div>#3  0x00007ffff72962ea in
                    hsl_ma97_double_mp_analyse_double_ ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/ThirdParty/HSL/.libs/libcoinhsl.so.1</div>
                  <div>#4  0x00007ffff72cd1c1 in ma97_analyse_d ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/ThirdParty/HSL/.libs/libcoinhsl.so.1</div>
                  <div>#5  0x00007ffff7adf37e in
                    Ipopt::Ma97SolverInterface::InitializeStructure(int,
                    int, int const*, int const*) ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#6  0x00007ffff7ad2e19 in
                    Ipopt::TSymLinearSolver::InitializeStructure(Ipopt::SymMatrix
                    const&amp;) ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#7  0x00007ffff7ad1a35 in
                    Ipopt::TSymLinearSolver::MultiSolve(Ipopt::SymMatrix
                    const&amp;,
                    std::vector&lt;Ipopt::SmartPtr&lt;Ipopt::Vector
                    const&gt;,
                    std::allocator&lt;Ipopt::SmartPtr&lt;Ipopt::Vector
                    const&gt; &gt; &gt;&amp;,
                    std::vector&lt;Ipopt::SmartPtr&lt;Ipopt::Vector&gt;,
                    std::allocator&lt;Ipopt::SmartPtr&lt;Ipopt::Vector&gt;
                    &gt; &gt;&amp;, bool, int) () from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#8  0x00007ffff7ac2d1f in
                    Ipopt::StdAugSystemSolver::MultiSolve(Ipopt::SymMatrix
                    const*, double, Ipopt::Vector const*, double,
                    Ipopt::Vector const*, double, Ipopt::Matrix const*,
                    Ipopt::Vector const*, double, Ipopt::Matrix const*,
                    Ipopt::Vector const*, double,
                    std::vector&lt;Ipopt::SmartPtr&lt;Ipopt::Vector
                    const&gt;,
                    std::allocator&lt;Ipopt::SmartPtr&lt;Ipopt::Vector
                    const&gt; &gt; &gt;&amp;,
                    std::vector&lt;Ipopt::SmartPtr&lt;Ipopt::Vector
                    const&gt;,
                    std::allocator&lt;Ipopt::SmartPtr&lt;Ipopt::Vector
                    const&gt; &gt; &gt;&amp;,
                    std::vector&lt;Ipopt::SmartPtr&lt;Ipopt::Vector
                    const&gt;,
                    std::allocator&lt;Ipopt::SmartPtr&lt;Ipopt::Vector
                    const&gt; &gt; &gt;&amp;,
                    std::vector&lt;Ipopt::SmartPtr&lt;Ipopt::Vector
                    const&gt;,
                    std::allocator&lt;Ipopt::SmartPtr&lt;Ipopt::Vector
                    const&gt; &gt; &gt;&amp;,
                    std::vector&lt;Ipopt::SmartPtr&lt;Ipopt::Vector&gt;,
                    std::allocator&lt;Ipopt::SmartPtr&lt;Ipopt::Vector&gt;
                    &gt; &gt;&amp;,
                    std::vector&lt;Ipopt::SmartPtr&lt;Ipopt::Vector&gt;,
                    std::allocator&lt;Ipopt::SmartPtr&lt;Ipopt::Vector&gt;
                    &gt; &gt;&amp;,
                    std::vector&lt;Ipopt::SmartPtr&lt;Ipopt::Vector&gt;,
                    std::allocator&lt;Ipopt::SmartPtr&lt;Ipopt::Vector&gt;
                    &gt; &gt;&amp;,
                    std::vector&lt;Ipopt::SmartPtr&lt;Ipopt::Vector&gt;,
                    std::allocator&lt;Ipopt::SmartPtr&lt;Ipopt::Vector&gt;
                    &gt; &gt;&amp;, bool, int) ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#9  0x00007ffff79e81c2 in
                    Ipopt::AugSystemSolver::Solve(Ipopt::SymMatrix
                    const*, double, Ipopt::Vector const*, double,
                    Ipopt::Vector const*, double, Ipopt::Matrix const*,
                    Ipopt::Vector const*, double, Ipopt::Matrix const*,
                    Ipopt::Vector const*, double, Ipopt::Vector
                    const&amp;, Ipopt::Vector const&amp;, Ipopt::Vector
                    const&amp;, Ipopt::Vector const&amp;,
                    Ipopt::Vector&amp;, Ipopt::Vector&amp;,
                    Ipopt::Vector&amp;, Ipopt::Vector&amp;, bool, int)
                    ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#10 0x00007ffff7a558d6 in
                    Ipopt::LeastSquareMultipliers::CalculateMultipliers(Ipopt::Vector&amp;,
                    Ipopt::Vector&amp;) ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#11 0x00007ffff79fea70 in
                    Ipopt::DefaultIterateInitializer::least_square_mults(Ipopt::Journalist
                    const&amp;, Ipopt::IpoptNLP&amp;,
                    Ipopt::IpoptData&amp;,
                    Ipopt::IpoptCalculatedQuantities&amp;,
                    Ipopt::SmartPtr&lt;Ipopt::EqMultiplierCalculator&gt;
                    const&amp;, double) ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#12 0x00007ffff7a02862 in
                    Ipopt::DefaultIterateInitializer::SetInitialIterates()
                    ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#13 0x00007ffff7a195c2 in
                    Ipopt::IpoptAlgorithm::InitializeIterates() ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#14 0x00007ffff7a127e1 in
                    Ipopt::IpoptAlgorithm::Optimize(bool) ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#15 0x00007ffff798a542 in
                    Ipopt::IpoptApplication::call_optimize() ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#16 0x00007ffff7989ca0 in
                    Ipopt::IpoptApplication::OptimizeNLP(Ipopt::SmartPtr&lt;Ipopt::NLP&gt;
                    const&amp;,
                    Ipopt::SmartPtr&lt;Ipopt::AlgorithmBuilder&gt;&amp;)
                    ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#17 0x00007ffff7989978 in
                    Ipopt::IpoptApplication::OptimizeNLP(Ipopt::SmartPtr&lt;Ipopt::NLP&gt;
                    const&amp;) ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#18 0x00007ffff79898fa in
                    Ipopt::IpoptApplication::OptimizeTNLP(Ipopt::SmartPtr&lt;Ipopt::TNLP&gt;
                    const&amp;) ()</div>
                  <div>   from
/proj/cg/users/smith/research_current/gr/code/libs/Ipopt-3.11.0/build/Ipopt/src/Interfaces/.libs/libipopt.so.1</div>
                  <div>#19 0x0000000000402047 in main ()</div>
                </div>
                <div><br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Ipopt mailing list
<a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
  
<br>
<p>-- 
<br>Scanned by iCritical.
</p><br>
</font></span></div>

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