<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
Hi, </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
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 <span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400;">"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:</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div>Thread 1 "main" received signal SIGABRT, Aborted.</div>
<div>0x00007ffff6d1e428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54</div>
<div>54<span style="white-space:pre"> </span>../sysdeps/unix/sysv/linux/raise.c: No such file or directory.</div>
<div>(gdb) backtrace</div>
<div>#0  0x00007ffff6d1e428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54</div>
<div>#1  0x00007ffff6d2002a in __GI_abort () at abort.c:89</div>
<div>#2  0x00007ffff6d607ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7ffff6e79ed8 "*** Error in `%s': %s: 0x%s ***\n")</div>
<div>    at ../sysdeps/posix/libc_fatal.c:175</div>
<div>#3  0x00007ffff6d6937a in malloc_printerr (ar_ptr=<optimized out>, ptr=<optimized out>, </div>
<div>    str=0x7ffff6e7a008 "double free or corruption (!prev)", action=3) at malloc.c:5006</div>
<div>#4  _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3867</div>
<div>#5  0x00007ffff6d6d53c in __GI___libc_free (mem=<optimized out>) at malloc.c:2968</div>
<div>#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>&) ()</div>
<div>   from /home/student/ipopt/lib/libipopt.so.1</div>
<div>#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</div>
<div>#8  0x00007ffff7a6bbe4 in Ipopt::IpoptData::InitializeDataStructures(Ipopt::IpoptNLP&, bool, bool, bool, bool, bool) ()</div>
<div>   from /home/student/ipopt/lib/libipopt.so.1</div>
<div>#9  0x00007ffff7a2a470 in Ipopt::DefaultIterateInitializer::SetInitialIterates() () from /home/student/ipopt/lib/libipopt.so.1</div>
<div>#10 0x00007ffff7a3dde6 in Ipopt::IpoptAlgorithm::InitializeIterates() () from /home/student/ipopt/lib/libipopt.so.1</div>
<div>#11 0x00007ffff7a42b25 in Ipopt::IpoptAlgorithm::Optimize(bool) () from /home/student/ipopt/lib/libipopt.so.1</div>
<div>#12 0x00007ffff79b9332 in Ipopt::IpoptApplication::call_optimize() () from /home/student/ipopt/lib/libipopt.so.1</div>
<div>#13 0x00007ffff79bc7fd in Ipopt::IpoptApplication::OptimizeNLP(Ipopt::SmartPtr<Ipopt::NLP> const&, Ipopt::SmartPtr<Ipopt::AlgorithmBuilder>&)</div>
<div>    () from /home/student/ipopt/lib/libipopt.so.1</div>
<div>#14 0x00007ffff79b6f69 in Ipopt::IpoptApplication::OptimizeNLP(Ipopt::SmartPtr<Ipopt::NLP> const&) ()</div>
<div>   from /home/student/ipopt/lib/libipopt.so.1</div>
<div>#15 0x00007ffff79b70dc in Ipopt::IpoptApplication::OptimizeTNLP(Ipopt::SmartPtr<Ipopt::TNLP> const&) ()</div>
<div>   from /home/student/ipopt/lib/libipopt.so.1</div>
<div>#16 0x000000000040256a in main ()</div>
<div><br>
</div>
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<div><b>Victor Evangelista</b></div>
<div><br>
</div>
</div>
</div>
</body>
</html>