coin-or/Ipopt

Segmentation fault from from /lib/libipopt.so.1

cch-cs opened this issue · 3 comments

I have configured the Ipopt package (version 3.14) without-hsl.
My module builds successfully, but when I call the solver to solve,
I get segmentation fault for the function call Ipopt::IpoptApplication::OptimizeTNLP(Ipopt::SmartPtr<Ipopt::TNLP> const&) () in the library /lib/libipopt.so.1

I am not sure why this issue happens

I do install the following modules for compiling my module

git clone -b master https://github.com/coin-or/CppAD.git
cd CppAD
mkdir build
cd build
cmake ..
make install

git clone https://github.com/coin-or-tools/ThirdParty-ASL.git
cd ThirdParty-ASL
./get.ASL
./configure
make
make install

git clone https://github.com/coin-or-tools/ThirdParty-Mumps.git
cd ThirdParty-Mumps
./get.Mumps
./configure
make
make install

git clone -b stable/3.14 https://github.com/coin-or/Ipopt.git
cd Ipopt
mkdir build
cd build
../configure --without-hsl
make
make test
make install

It would be great if you guys help me resolve this issue.
Thanks in advance.

Maybe build Ipopt with --enable-debug (https://coin-or.github.io/Ipopt/INSTALL.html#CONFIGURE_FLAGS) and then run your code in a debugger or under valgrind.