[Ipopt-tickets] Re: [Ipopt] #25: Segmentation fault
Ipopt
coin-trac at coin-or.org
Sat Dec 23 02:41:10 EST 2006
#25: Segmentation fault
--------------------------------+-------------------------------------------
Reporter: Armand | Owner: andreasw
Type: defect | Status: assigned
Priority: normal | Component: Ipopt
Version: 3.2 (C++ Version) | Severity: major
Resolution: | Keywords:
--------------------------------+-------------------------------------------
Comment (by Armand):
Replying to [comment:1 andreasw]:
> Hi Paul,
>
> In the config.log file I noticed that the gcc and g++ compilers are from
GCC 4.0.1, but that f77 is from GCC 3.3.6. This might give problems with
the runtime libraries.
>
> I suggest to try what happens if you use compilers that are from the
same GCC version; maybe your 'g77' executable is already like that, so
that just setting 'F77=g77' as configure argument would already fix the
problem.
>
The problem still occurs.
> If the problem still occurs with consistent compilers, I would ask you
to do a 'make install', so that there will be an 'ipopt' executable in the
bin subdirectory. Please see if the segmentation fault also happens if
you ran this ipopt executable with some .nl file (like the one in
CoinIpopt/Ipopt/test/mytoy.nl). If it also crashes, please open this
'ipopt' with the debugger (gdb), and run it with the .nl file as argument
('run mytoy.nl'). Once it crashes there, please type 'where' and copy the
output into a this ticket (into the description box).
>
Program received signal SIGSEGV, Segmentation fault.[[BR]]
0xb7af3d7c in memcpy () from /lib/tls/libc.so.6[[BR]]
(gdb) where[[BR]]
#0 0xb7af3d7c in memcpy () from /lib/tls/libc.so.6[[BR]]
#1 0xb7c66356 in
std::string::_M_replace_safe<__gnu_cxx::__normal_iterator<char*,
std::string> > () from /usr/lib/libstdc++.so.5[[BR]]
#2 0xb7c63740 in std::string::append () from
/usr/lib/libstdc++.so.5[[BR]]
#3 0x08053caf in std::operator+<char, std::char_traits<char>,
std::allocator<char> > ()[[BR]]
#4 0xb7d614dd in Ipopt::AlgorithmBuilder::BuildBasicAlgorithm () from
/home/armand/num/ipopt/CoinIpopt/lib/libipopt.so.0[[BR]]
#5 0xb7d17304 in Ipopt::IpoptApplication::OptimizeNLP () from
/home/armand/num/ipopt/CoinIpopt/lib/libipopt.so.0[[BR]]
#6 0xb7d17ac8 in Ipopt::IpoptApplication::OptimizeTNLP () from
/home/armand/num/ipopt/CoinIpopt/lib/libipopt.so.0[[BR]]
#7 0x0804bb07 in main ()[[BR]]
Many thanks for your help.
Paul
--
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/25#comment:2>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.
More information about the Ipopt-tickets
mailing list