[Ipopt] Memory Error

Victor Evangelista jvce92 at hotmail.com
Mon Feb 19 18:57:51 EST 2018


Hi,

I'm trying to use Ipopt to solve a nonlinear optimization problem using the "limited-memory" option for the "hessian_approximation" parameter and I'm getting a "double free or corruption (!prev)" error. I'm not sure if there is something wrong on the implementation of my model, so I'm coming here for help, thanks in advance. Below is the backtrace of gdb:

Thread 1 "main" received signal SIGABRT, Aborted.
0x00007ffff6d1e428 in __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) backtrace
#0  0x00007ffff6d1e428 in __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff6d2002a in __GI_abort () at abort.c:89
#2  0x00007ffff6d607ea in __libc_message (do_abort=do_abort at entry=2, fmt=fmt at entry=0x7ffff6e79ed8 "*** Error in `%s': %s: 0x%s ***\n")
    at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff6d6937a in malloc_printerr (ar_ptr=<optimized out>, ptr=<optimized out>,
    str=0x7ffff6e7a008 "double free or corruption (!prev)", action=3) at malloc.c:5006
#4  _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3867
#5  0x00007ffff6d6d53c in __GI___libc_free (mem=<optimized out>) at malloc.c:2968
#6  0x00007ffff79d9968 in Ipopt::TNLPAdapter::GetSpaces(Ipopt::SmartPtr<Ipopt::VectorSpace const>&, Ipopt::SmartPtr<Ipopt::VectorSpace const>&, Ipopt::SmartPtr<Ipopt::VectorSpace const>&, Ipopt::SmartPtr<Ipopt::VectorSpace const>&, Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, Ipopt::SmartPtr<Ipopt::VectorSpace const>&, Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, Ipopt::SmartPtr<Ipopt::VectorSpace const>&, Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, Ipopt::SmartPtr<Ipopt::VectorSpace const>&, Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, Ipopt::SmartPtr<Ipopt::MatrixSpace const>&, Ipopt::SmartPtr<Ipopt::SymMatrixSpace const>&) ()
   from /home/student/ipopt/lib/libipopt.so.1
#7  0x00007ffff7a987eb in Ipopt::OrigIpoptNLP::InitializeStructures(Ipopt::SmartPtr<Ipopt::Vector>&, bool, Ipopt::SmartPtr<Ipopt::Vector>&, bool, Ipopt::SmartPtr<Ipopt::Vector>&, bool, Ipopt::SmartPtr<Ipopt::Vector>&, bool, Ipopt::SmartPtr<Ipopt::Vector>&, bool, Ipopt::SmartPtr<Ipopt::Vector>&, Ipopt::SmartPtr<Ipopt::Vector>&) () from /home/student/ipopt/lib/libipopt.so.1
#8  0x00007ffff7a6bbe4 in Ipopt::IpoptData::InitializeDataStructures(Ipopt::IpoptNLP&, bool, bool, bool, bool, bool) ()
   from /home/student/ipopt/lib/libipopt.so.1
#9  0x00007ffff7a2a470 in Ipopt::DefaultIterateInitializer::SetInitialIterates() () from /home/student/ipopt/lib/libipopt.so.1
#10 0x00007ffff7a3dde6 in Ipopt::IpoptAlgorithm::InitializeIterates() () from /home/student/ipopt/lib/libipopt.so.1
#11 0x00007ffff7a42b25 in Ipopt::IpoptAlgorithm::Optimize(bool) () from /home/student/ipopt/lib/libipopt.so.1
#12 0x00007ffff79b9332 in Ipopt::IpoptApplication::call_optimize() () from /home/student/ipopt/lib/libipopt.so.1
#13 0x00007ffff79bc7fd in Ipopt::IpoptApplication::OptimizeNLP(Ipopt::SmartPtr<Ipopt::NLP> const&, Ipopt::SmartPtr<Ipopt::AlgorithmBuilder>&)
    () from /home/student/ipopt/lib/libipopt.so.1
#14 0x00007ffff79b6f69 in Ipopt::IpoptApplication::OptimizeNLP(Ipopt::SmartPtr<Ipopt::NLP> const&) ()
   from /home/student/ipopt/lib/libipopt.so.1
#15 0x00007ffff79b70dc in Ipopt::IpoptApplication::OptimizeTNLP(Ipopt::SmartPtr<Ipopt::TNLP> const&) ()
   from /home/student/ipopt/lib/libipopt.so.1
#16 0x000000000040256a in main ()



Victor Evangelista

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20180219/7fb226dc/attachment-0001.html>


More information about the Ipopt mailing list