[Ipopt-tickets] [Ipopt] #26: Segmentation fault with double free or corruption in DenseVector

Ipopt coin-trac at coin-or.org
Wed Jan 3 15:25:49 EST 2007


#26: Segmentation fault with double free or corruption in DenseVector
------------------------------+---------------------------------------------
Reporter:  yong               |       Owner:  ipopt-team
    Type:  defect             |      Status:  new       
Priority:  highest            |   Component:  Ipopt     
 Version:  3.2 (C++ Version)  |    Severity:  major     
Keywords:                     |  
------------------------------+---------------------------------------------
 Hi,

 It is great that I can run IPOPT to solve optimization problems. Recently
 I work on a large-scale nonlinear network optimization problem. However, I
 always get a segmentation fault due to double free or corruption. I tried
 to compile IPOPT with debug enabled, and found that the fault was caused
 by SmartPtr deleting some variables in DenseVector. Can you help me look
 into this problem? A sample output is like this:

 List of options:

                                     Name   Value                # times
 used
                              mu_strategy = adaptive                  2
                              output_file = ipopt.out                 1
                              print_level = 11                        2
                                      tol = 1e-07                     1

 ******************************************************************************
 This program contains Ipopt, a library for large-scale nonlinear
 optimization.
  Ipopt is released as open source code under the Common Public License
 (CPL).
          For more information visit http://projects.coin-or.org/Ipopt
 ******************************************************************************

 Number of nonzeros in equality constraint Jacobian...:        0

 Number of nonzeros in inequality constraint Jacobian.:        6

 Number of nonzeros in Lagrangian Hessian.............:        2

 Scaling parameter for objective function = 1.000000e+00

 Equality constraints are not scaled.

 Inequality constraints are not scaled.

 objective scaling factor = 1

 No x scaling provided

 No c scaling provided

 No d scaling provided

 DenseVector "original x_L unscaled" with 2 elements:

 original x_L unscaled[    1]= 0.0000000000000000e+00

 original x_L unscaled[    2]= 0.0000000000000000e+00

 DenseVector "original x_U unscaled" with 2 elements:

 original x_U unscaled[    1]= 1.2207000000000000e+04

 original x_U unscaled[    2]= 1.2207000000000000e+04

 DenseVector "original d_L unscaled" with 3 elements:

 original d_L unscaled[    1]= 0.0000000000000000e+00

 original d_L unscaled[    2]= 0.0000000000000000e+00

 original d_L unscaled[    3]= 0.0000000000000000e+00

 DenseVector "original d_U unscaled" with 3 elements:

 original d_U unscaled[    1]= 1.2109373437500000e+06

 original d_U unscaled[    2]= 1.2109373437500000e+06

 original d_U unscaled[    3]= 1.2207000000000000e+05

 DenseVector "modified x_L scaled" with 2 elements:

 modified x_L scaled[    1]=-1.0000000000000000e-08

 modified x_L scaled[    2]=-1.0000000000000000e-08

 DenseVector "modified x_U scaled" with 2 elements:

 modified x_U scaled[    1]= 1.2207000122070000e+04

 modified x_U scaled[    2]= 1.2207000122070000e+04

 DenseVector "modified d_L scaled" with 3 elements:

 modified d_L scaled[    1]=-1.0000000000000000e-08

 modified d_L scaled[    2]=-1.0000000000000000e-08

 modified d_L scaled[    3]=-1.0000000000000000e-08

 DenseVector "modified d_U scaled" with 3 elements:

 modified d_U scaled[    1]= 1.2109373558593735e+06

 modified d_U scaled[    2]= 1.2109373558593735e+06

 modified d_U scaled[    3]= 1.2207000122070000e+05

 get_starting_point: 12207, 12207,

 DenseVector "initial x unscaled" with 2 elements:

 initial x unscaled[    1]= 1.2207000000000000e+04

 initial x unscaled[    2]= 1.2207000000000000e+04

 *** glibc detected *** ./psim: double free or corruption (!prev):
 0x08129268 ***

 ======= Backtrace: =========

 /lib/libc.so.6[0xb7625e32]

 /lib/libc.so.6(__libc_free+0x84)[0xb76274c4]

 /usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7794e51]

 /usr/lib/libstdc++.so.6(_ZdaPv+0x1d)[0xb7794ead]

 /home/lib/libipopt.so.0(_ZN5Ipopt11DenseVector7SetImplEd+0x44)[0xb7f18524]

-- 
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/26>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list