[Ipopt-tickets] [Ipopt] #118: IPOPT segfaults from 3.6 onwards: cause of Termination code 11 error in AMPL

Ipopt coin-trac at coin-or.org
Thu Apr 15 19:27:19 EDT 2010


#118: IPOPT segfaults from 3.6 onwards: cause of Termination code 11 error in
AMPL
------------------------------+---------------------------------------------
Reporter:  paulelastic        |       Owner:  ipopt-team
    Type:  defect             |      Status:  new       
Priority:  high               |   Component:  Ipopt     
 Version:  3.8 (C++ Version)  |    Severity:  blocker   
Keywords:                     |  
------------------------------+---------------------------------------------
 I'm using IPOPT 3.8.1 with AMPL, and it's failing on some models but not
 others. My configuration is Ubuntu 9.04 32-bit, kernel 2.6.31-17. The
 error is segmentation fault with return code 11 (which AMPL reports as
 Termination Code 11).

 At first, I suspected problems with the ASL, but IPOPT 2.2.1 solved it
 fine. I've never had problems with IPOPT failing like this until version
 3.6 or so. Valgrind on IPOPT 3.8.1 shows that there are memory leaks.

 I'm attaching the stub.nl generated from a model that fails. I'm also
 attaching the summarized valgrind output. The output for 'valgrid --leak-
 check=full' was too long, so I'm attaching the IPOPT binary so that you
 can reproduce the results.

 ================================================================

 Some extra information

 1) My configure string


 {{{
 ./configure --with-blas="/usr/lib/atlas/sse2/libblas.so.3.0" \
                         --with-
 lapack="/usr/lib/atlas/sse2/liblapack.so.3.0" \
                         --enable-static=yes --enable-shared=no \
                         --with-pardiso="-fopenmp
 /ampl/lib/libpardiso400_GNU432_IA32.so" \
                         ADD_CXXFLAGS="-fPIC -fexceptions" \
                         ADD_FFLAGS="-fPIC -fexceptions" \
                         ADD_LIBS="/usr/lib/libgomp.so.1" \
                         CC=gcc-4.3 F77=gfortran-4.3 CXX=g++-4.3

 }}}

 2) Output from valgrind


 {{{
 ==10370== Memcheck, a memory error detector
 ==10370== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
 ==10370== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for
 copyright info
 ==10370== Command: ipopt3 stub.nl
 ==10370==

 ==10370== Invalid write of size 8
 ==10370==    at 0x81EECEE: la_replace (in /ampl/bin/ipopt3)
 ==10370==  Address 0xd2f1aa00 is not stack'd, malloc'd or (recently)
 free'd
 ==10370==
 ==10370==
 ==10370== Process terminating with default action of signal 11 (SIGSEGV)
 ==10370==  Access not within mapped region at address 0xD2F1AA00
 ==10370==    at 0x81EECEE: la_replace (in /ampl/bin/ipopt3)
 ==10370==  If you believe this happened as a result of a stack
 ==10370==  overflow in your program's main thread (unlikely but
 ==10370==  possible), you can try to increase the size of the
 ==10370==  main thread stack using the --main-stacksize= flag.
 ==10370==  The main thread stack size used in this run was 8388608.
 ==10370==
 ==10370== HEAP SUMMARY:
 ==10370==     in use at exit: 3,124,740 bytes in 2,292 blocks
 ==10370==   total heap usage: 2,481 allocs, 189 frees, 3,130,641 bytes
 allocated
 ==10370==
 ==10370== LEAK SUMMARY:
 ==10370==    definitely lost: 0 bytes in 0 blocks
 ==10370==    indirectly lost: 0 bytes in 0 blocks
 ==10370==      possibly lost: 83,165 bytes in 1,272 blocks
 ==10370==    still reachable: 3,041,575 bytes in 1,020 blocks
 ==10370==         suppressed: 0 bytes in 0 blocks
 ==10370== Rerun with --leak-check=full to see details of leaked memory
 ==10370==
 ==10370== For counts of detected and suppressed errors, rerun with: -v
 ==10370== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 36 from 7)
 Segmentation fault

 }}}

-- 
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/118>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list