[Ipopt] Debug printing in Ipopt
Stefan Vigerske
svigerske at gams.com
Thu Aug 20 10:54:55 EDT 2020
Hi,
it seems to work for me.
I enabled the verbosity and ran test hs071_cpp and got a file debug.out,
no segfault.
Maybe you can have a look why there is a segfault.
Stefan
On 8/20/20 4:06 PM, Brad Bell wrote:
> I am using Ipopt-3.13.2 and having trouble understanding how the debug
> printing works.
>
> I configure Ipopt with the following:
> ../../../Ipopt/configure \
> --disable-dependency-tracking \
> --prefix=/home/bradbell/prefix/dismod_at \
> ADD_FCFLAGS=-fallow-argument-mismatch \
> --enable-debug \
> --libdir=/home/bradbell/prefix/dismod_at/lib64 \
> --disable-shared \
> --with-coin-instdir=/home/bradbell/prefix/dismod_at \
> --with-ipopt-verbosity
>
> If I run the program with no changes to the Ipopt source, it works (not
> fine because I am trying to understand why ipopt is failing to optimize
> my simple problem).
>
> If in the file
> src/Algorithm/IpIpoptCalculatedQuantities.cpp
> I change
> static const Index dbg_verbosity = 0;
> to
> static const Index dbg_verbosity = 1;
>
> I then build my application using Ipopt and run it in the gdb debugger
> and get the following message:
> ... snip ...
> Using host libthread_db library "/lib64/libthread_db.so.1".
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x000000000086c83c in Ipopt::DebugJournalistWrapper::DebugPrintf
> (this=0x7fffffff6b10, verbosity=1, pformat=0xbc70b8 "-> Calling to: %s
> in obj: 0x%x\n")
> at ../../../../../Ipopt/src/Common/IpDebug.cpp:113
> 113 jrnl_->PrintfIndented(J_ERROR, J_DBG, indentation_level_,
> "# ");
> ... snip ...
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> https://list.coin-or.org/mailman/listinfo/ipopt
More information about the Ipopt
mailing list