jump-dev / ECOS.jl

A Julia interface to the ECOS conic optimization solver
https://github.com/embotech/ecos
Other
41 stars 17 forks source link

Incorrect checksum for freed object #144

Open ericphanson opened 1 year ago

ericphanson commented 1 year ago

On Julia 1.9.2 on apple silicon, I got this error

julia(65496,0x16b3f3000) malloc: Incorrect checksum for freed object 0x2c2baa688: probably modified after being freed.
Corrupt value: 0x14293a
julia(65496,0x16b3f3000) malloc: *** set a breakpoint in malloc_error_break to debug

[65496] signal (6): Abort trap: 6
in expression starting at REPL[16]:1
Allocations: 256785273 (Pool: 256509945; Big: 275328); GC: 452
zsh: abort      julia --project

when running Convex tests with ECOS (specifically this code on the linked commit). The same tests with Clarabel are OK.

I don't know how to

set a breakpoint in malloc_error_break to debug

but if someone wants to walk me it through I'm game.

odow commented 1 year ago

Oh yeah this is not easy to debug. You'll need the exact model that's failing, an M1 machine and a locally compiled version of ECOS...