Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault #55

Open
mertturanli opened this issue Dec 9, 2024 · 1 comment
Open

Segmentation fault #55

mertturanli opened this issue Dec 9, 2024 · 1 comment

Comments

@mertturanli
Copy link

Hello,

I am using IpOpt 3.14.17 and Bonmin stable/1.8.

It can solve the problem but in the end I get seg. fault.

This is Ipopt version 3.14.17, running with linear solver MUMPS 5.6.2.

Number of nonzeros in equality constraint Jacobian...:        5
Number of nonzeros in inequality constraint Jacobian.:        0
Number of nonzeros in Lagrangian Hessian.............:        0

Total number of variables............................:        5
                     variables with only lower bounds:        0
                variables with lower and upper bounds:        5
                     variables with only upper bounds:        0
Total number of equality constraints.................:        3
Total number of inequality constraints...............:        0
        inequality constraints with only lower bounds:        0
   inequality constraints with lower and upper bounds:        0
        inequality constraints with only upper bounds:        0

Number of Iterations....: 4

                                   (scaled)                 (unscaled)
Objective...............:   6.0000000000000000e+00    6.0000000000000000e+00
Dual infeasibility......:   0.0000000000000000e+00    0.0000000000000000e+00
Constraint violation....:   0.0000000000000000e+00    0.0000000000000000e+00
Variable bound violation:   2.8557715816678736e-17    2.8557715816678736e-17
Complementarity.........:   0.0000000000000000e+00    0.0000000000000000e+00
Overall NLP error.......:   0.0000000000000000e+00    0.0000000000000000e+00


Number of objective function evaluations             = 5
Number of objective gradient evaluations             = 5
Number of equality constraint evaluations            = 5
Number of inequality constraint evaluations          = 0
Number of equality constraint Jacobian evaluations   = 5
Number of inequality constraint Jacobian evaluations = 0
Number of Lagrangian Hessian evaluations             = 4
Total seconds in IPOPT                               = 0.002

EXIT: Optimal Solution Found.
NLP0014I           111         OPT 6        4 0.001578

Thread 1 "mybonmin" received signal SIGSEGV, Segmentation fault.
0x00007ffff7e1c6a4 in CoinPackedMatrix::times(double const*, double*) const ()
   from /lib/x86_64-linux-gnu/libCoinUtils.so.3

GDB trace shows seg. fault in CoinUtils library matrix times operation.

Thread 1 "mybonmin" received signal SIGSEGV, Segmentation fault.
0x00007ffff7e1c6a4 in CoinPackedMatrix::times(double const*, double*) const ()
   from /lib/x86_64-linux-gnu/libCoinUtils.so.3
(gdb) bt
#0  0x00007ffff7e1c6a4 in CoinPackedMatrix::times(double const*, double*) const ()
   from /lib/x86_64-linux-gnu/libCoinUtils.so.3
#1  0x00007ffff786261a in CbcNode::chooseDynamicBranch(CbcModel*, CbcNode*, OsiSolverBranch*&, int) ()
   from /lib/x86_64-linux-gnu/libCbc.so.3.1
#2  0x00007ffff784f722 in CbcModel::chooseBranch(CbcNode*&, int, CbcNode*, OsiCuts&, bool&, CoinWarmStartBasis*, double const*, double const*, OsiSolverBranch*&) () from /lib/x86_64-linux-gnu/libCbc.so.3.1
#3  0x00007ffff7858422 in CbcModel::doOneNode(CbcModel*, CbcNode*&, CbcNode*&) ()
   from /lib/x86_64-linux-gnu/libCbc.so.3.1
#4  0x00007ffff782e771 in CbcModel::branchAndBound(int) () from /lib/x86_64-linux-gnu/libCbc.so.3.1
#5  0x00007ffff7ed6f52 in Bonmin::Bab::branchAndBound(Bonmin::BabSetupBase&) ()
   from /usr/local/lib/libbonmin.so.0
#6  0x0000555555557a5e in main ()
(gdb) 
#0  0x00007ffff7e1c6a4 in CoinPackedMatrix::times(double const*, double*) const ()
   from /lib/x86_64-linux-gnu/libCoinUtils.so.3
#1  0x00007ffff786261a in CbcNode::chooseDynamicBranch(CbcModel*, CbcNode*, OsiSolverBranch*&, int) ()
   from /lib/x86_64-linux-gnu/libCbc.so.3.1
#2  0x00007ffff784f722 in CbcModel::chooseBranch(CbcNode*&, int, CbcNode*, OsiCuts&, bool&, CoinWarmStartBasis*, double const*, double const*, OsiSolverBranch*&) () from /lib/x86_64-linux-gnu/libCbc.so.3.1
#3  0x00007ffff7858422 in CbcModel::doOneNode(CbcModel*, CbcNode*&, CbcNode*&) ()
   from /lib/x86_64-linux-gnu/libCbc.so.3.1
#4  0x00007ffff782e771 in CbcModel::branchAndBound(int) () from /lib/x86_64-linux-gnu/libCbc.so.3.1
#5  0x00007ffff7ed6f52 in Bonmin::Bab::branchAndBound(Bonmin::BabSetupBase&) ()
   from /usr/local/lib/libbonmin.so.0
#6  0x0000555555557a5e in main ()

Any ideas?

Thanks.

Regards.

@mertturanli
Copy link
Author

I tried the optimization suite in Docker with Ubuntu focal: https://github.com/coin-or/COIN-OR-OptimizationSuite?tab=readme-ov-file

I got the same result:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7e2a5e4 in CoinPackedMatrix::times(double const*, double*) const ()
   from /lib/libCoinUtils.so.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant