Malloc error with Model(Cbc.Optimizer) on v1.8.0-beta3 and M1

I have the following error crashing julia 1.8.0-beta3 on M1 MacOS when using m=Model(Cbc.Optimizer):

julia(17828,0x100220580) malloc: *** error for object 0xe00000000000000: pointer being freed was not allocated
julia(17828,0x100220580) malloc: *** set a breakpoint in malloc_error_break to debug

It works on Julia 1.7.2 though.

How can I resolve this?

I suppose for these things it’s best to create an issue on GitHub.


Clp has a similar problem which is likely the cause: Apple M1: SIGABRT after free · Issue #131 · jump-dev/Clp.jl · GitHub

Use HiGHS.jl instead. It’s also open source and faster than Cbc.