[Coin-discuss] Trouble with C interface: glibc memory corruption error
John Pye
john.pye at anu.edu.au
Wed May 28 09:54:19 EDT 2008
Hi all
I'm working on a interface to IPOPT from the C language, but I'm running
into a problem that I'm having trouble debugging.
What happens is that I'm getting a 'glibc detected' 'memory corruption
(fast)' error :-)
> *** glibc detected *** /home/john/ascend/test.py: malloc(): memory
> corruption (fast): 0x082b21c0 ***
> Terminated
I added some commenting output to CreateIpoptProblem, and I found that
the error occurs somewhere inside the Ipopt::IpoptApplication
constructor called from within that function (IpStdCInterface.cpp line
~100).
I wonder if anyone might be able to suggest what possibly things I might
have done wrong in my call to CreateIpoptProblem that could lead to this
sort of extreme error? I'm rather puzzled.
Also, I tried to turn on the IPOPT debug output, but didn't seem to
succeed. What is the correct way of getting deboug output from IPOPT?
Would appreciate any suggestions.
Cheers
JP
More information about the Coin-discuss
mailing list