[Ipopt] Ipopt seems to use an invalid iterator in IpObserver.hpp

Andreas Waechter andreasw at watson.ibm.com
Thu Apr 16 10:32:48 EDT 2009

Hi Thomas,

Thanks for your note.

I don't see anything wrong with the code, but it is possible that I'm 
missing something.  This code has been in Ipopt for a number of years now 
and used on several platforms with many different compilers, and never 
lead to a problem.  If you find out why an error is reported and how that 
can be fixed, please let us know (preferrably as a ticket on the Ipopt 
Trac page).



PS: If you want to respond to the mailing list, please subscribe first 
since only subscribers can post messages...

On Wed, 15 Apr 2009, Thomas Moulard wrote:

> Hello,
> I am resolving the hs071 problem with Ipopt in my package.
> My test seems to run fine as a normal compilation gives a result and
> Valgrind tells me there is no memory errors.
> However, if I compile my project with -D_GLIBCXX_DEBUG which
> enforces STL usage, it fails.
> The problem is that it seems to be a call deep inside Ipopt's mechanisms.
> Especially, this part of the code seems to use an invalid iterator:
> Ipopt::Subject::~Subject() (IpObserver.hpp:295)
> Is it possible? Did you already try to compile/test Ipopt with -D_GLIBCXX_DEBUG?
> Thanks.
> PS: I've attached the full Valgrind log to my mail.
> -- 
> Thomas Moulard

More information about the Ipopt mailing list