[Ipopt-tickets] [Ipopt] #119: crash problem before resolution
    Ipopt 
    coin-trac at coin-or.org
       
    Wed Apr 28 11:33:47 EDT 2010
    
    
  
#119: crash problem before resolution
------------------------------+---------------------------------------------
Reporter:  ycollet            |       Owner:  andreasw
    Type:  defect             |      Status:  new     
Priority:  normal             |   Component:  Ipopt   
 Version:  3.8 (C++ Version)  |    Severity:  normal  
Keywords:                     |  
------------------------------+---------------------------------------------
Changes (by andreasw):
  * owner:  ipopt-team => andreasw
Comment:
 I'm not sure what to suggest except to point out that you need to be a
 little careful when you use Ipopt objects - you must store them always in
 a SmartPtr, see also http://www.coin-
 or.org/Ipopt/documentation/node58.html
 A problem might occur if you store a pointer to an Ipopt object in a
 regular pointer and when the reference counter is going to zero because
 all other SmartPtr are going away, and you are left with a pointer to an
 object that has been deleted.
 Also, I would try to find out with a memory checker like valgrind where
 exactly the first time something goes wrong with the memory.
 Finally, you can compiler Ipopt with a bunch of debug checks, by
 configuring it with
 --enable-debug --with-ipopt-checklevel=1
 I should also enable a check for the SmartPtr
-- 
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/119#comment:2>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.
    
    
More information about the Ipopt-tickets
mailing list