chriscoey / MOIPajarito.jl

temporary development repo for Pajarito with MathOptInterface
Mozilla Public License 2.0
7 stars 1 forks source link

DNM: trigger GLPK segfault #34

Closed chriscoey closed 2 years ago

chriscoey commented 2 years ago

runtests triggers a segfault from GLPK. I did not see this error from any other instances and I did not get it when using Gurobi.

starting CBF tests
exp_gatesizing
glp_get_col_prim: j = 60; column number out of range
Error detected in file draft/glpapi06.c at line 774

signal (6): Abort trap: 6
in expression starting at /Users/coey/.julia/dev/MOIPajarito/test/myruntests.jl:47
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
pthread_kill at /usr/lib/system/libsystem_pthread.dylib (unknown line)
abort at /usr/lib/system/libsystem_c.dylib (unknown line)
errfunc at /Users/coey/.julia/artifacts/a8f69d41bc1a2b8d010db7eba6e1e89c06f026b9/lib/libglpk.40.dylib (unknown line)
glp_get_col_prim at /Users/coey/.julia/artifacts/a8f69d41bc1a2b8d010db7eba6e1e89c06f026b9/lib/libglpk.40.dylib (unknown line)
glp_get_col_prim at /Users/coey/.julia/packages/GLPK/mQmKc/src/gen/libglpk_api.jl:262 [inlined]
get at /Users/coey/.julia/packages/GLPK/mQmKc/src/MOI_wrapper/MOI_callbacks.jl:51 [inlined]
get at /Users/coey/.julia/packages/MathOptInterface/Li8RC/src/Bridges/bridge_optimizer.jl:1068 [inlined]
get at /Users/coey/.julia/packages/MathOptInterface/Li8RC/src/Bridges/bridge_optimizer.jl:1068
get at /Users/coey/.julia/packages/MathOptInterface/Li8RC/src/Utilities/cachingoptimizer.jl:845
unknown function (ip: 0x105235b5c)
_jl_invoke at /Users/coey/julia/src/gf.c:0 [inlined]
ijl_apply_generic at /Users/coey/julia/src/gf.c:2451
callback_value at /Users/coey/.julia/packages/JuMP/2IF9U/src/callbacks.jl:48
#169 at /Users/coey/.julia/packages/JuMP/2IF9U/src/callbacks.jl:66 [inlined]
value at /Users/coey/.julia/packages/JuMP/2IF9U/src/aff_expr.jl:292
callback_value at /Users/coey/.julia/packages/JuMP/2IF9U/src/callbacks.jl:65 [inlined]
_add_cut at /Users/coey/.julia/dev/MOIPajarito/src/JuMP_tools.jl:21
unknown function (ip: 0x105241335)
_jl_invoke at /Users/coey/julia/src/gf.c:0 [inlined]
ijl_apply_generic at /Users/coey/julia/src/gf.c:2451
add_cut at /Users/coey/.julia/dev/MOIPajarito/src/JuMP_tools.jl:11
add_cuts at /Users/coey/.julia/dev/MOIPajarito/src/JuMP_tools.jl:5 [inlined]
add_subp_cuts at /Users/coey/.julia/dev/MOIPajarito/src/cuts.jl:58
lazy_cb at /Users/coey/.julia/dev/MOIPajarito/src/algorithms.jl:177

error is from here: https://github.com/jump-dev/GLPK.jl/blob/485c89e10888de9fedf804cbaed7ad4f7fa648f1/src/MOI_wrapper/MOI_callbacks.jl#L51

odow commented 2 years ago

Are you creating or deleting the number variables during a solve?