[Ipopt] Arithmetic exception in IpOpt

Miguel Angel Salazar de Troya salazardetroya at gmail.com
Sun Jan 11 14:17:32 EST 2015


Hi

My code implements a simulation using PETSc. I get some floating-point
exception so I decided to debug with gdb passing the PETSc flag -fp_trap to
catch the floating-point exception. However, my code runs into this
Arithmetic exception instead:

Program received signal SIGFPE, Arithmetic exception.
0x00007ffff6d0ec00 in __exp1 (x=1165.0685902653142,
xx=-1.7928465380042183e-14, error=4.3699999999999992e-05) at
../sysdeps/ieee754/dbl-64/e_exp.c:286
286 ../sysdeps/ieee754/dbl-64/e_exp.c: No such file or directory.
(gdb) backtrace
#0  0x00007ffff6d0ec00 in __exp1 (x=1165.0685902653142,
xx=-1.7928465380042183e-14, error=4.3699999999999992e-05) at
../sysdeps/ieee754/dbl-64/e_exp.c:286
#1  0x00007ffff6d13099 in __ieee754_pow_sse2 (x=9.8298691150523227e+219,
y=2.2999999999999998) at ../sysdeps/ieee754/dbl-64/e_pow.c:112
#2  0x00007ffff6d249ac in __pow (x=9.8298691150523227e+219,
y=2.2999999999999998) at w_pow.c:27
#3  0x00007ffff786c3b2 in Ipopt::FilterLSAcceptor::CalculateAlphaMin() ()
from /home/miguel/Ipopt-3.11.9/build/lib/libipopt.so.1
#4  0x00007ffff785f2cd in
Ipopt::BacktrackingLineSearch::DoBacktrackingLineSearch(bool, double&,
bool&, bool&, int&, bool&, Ipopt::SmartPtr<Ipopt::IteratesVector>&) ()
   from /home/miguel/Ipopt-3.11.9/build/lib/libipopt.so.1
#5  0x00007ffff786115c in
Ipopt::BacktrackingLineSearch::FindAcceptableTrialPoint() () from
/home/miguel/Ipopt-3.11.9/build/lib/libipopt.so.1
#6  0x00007ffff78793b9 in Ipopt::IpoptAlgorithm::Optimize(bool) () from
/home/miguel/Ipopt-3.11.9/build/lib/libipopt.so.1
#7  0x00007ffff7808c5b in Ipopt::IpoptApplication::call_optimize() () from
/home/miguel/Ipopt-3.11.9/build/lib/libipopt.so.1
#8  0x00007ffff781202f in
Ipopt::IpoptApplication::OptimizeNLP(Ipopt::SmartPtr<Ipopt::NLP> const&,
Ipopt::SmartPtr<Ipopt::AlgorithmBuilder>&) () from
/home/miguel/Ipopt-3.11.9/build/lib/libipopt.so.1
#9  0x00007ffff7811e6d in
Ipopt::IpoptApplication::OptimizeNLP(Ipopt::SmartPtr<Ipopt::NLP> const&) ()
from /home/miguel/Ipopt-3.11.9/build/lib/libipopt.so.1
#10 0x00007ffff7808421 in
Ipopt::IpoptApplication::OptimizeTNLP(Ipopt::SmartPtr<Ipopt::TNLP> const&)
() from /home/miguel/Ipopt-3.11.9/build/lib/libipopt.so.1
#11 0x0000000000406156 in main (argc=2, argv=0x7fffffffde88) at
/home/miguel/Dropbox/AdaptiveTopOpt/QuadBeads/mainbeads.C:110


I had a similar issue within my code and it turned out to be an underflow
problem. I would like to know if it is something similar in Ipopt.

On a related note, I'm not able to step into the Ipopt source files while
debugging. I'm using eclipse and I can't find the way to include the source
files so eclipse can display them. Does anybody know how?

Thanks in advance
Miguel

-- 
*Miguel Angel Salazar de Troya*
Graduate Research Assistant
Department of Mechanical Science and Engineering
University of Illinois at Urbana-Champaign
(217) 550-2360
salaza11 at illinois.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20150111/6ed57efd/attachment.html>


More information about the Ipopt mailing list