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

**URL:** <https://discourse.julialang.org/t/malloc-error-with-model-cbc-optimizer-on-v1-8-0-beta3-and-m1/78876>\
**Category:** Optimization (Mathematical)\
**Created:** [April 1, 2022, 11:32am UTC](https://discourse.julialang.org/t/malloc-error-with-model-cbc-optimizer-on-v1-8-0-beta3-and-m1/78876 "2022-04-01T11:32:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![evad](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evad/32/15756_2.png) [@evad](https://discourse.julialang.org/u/evad)\
**Post date:** [April 1, 2022, 11:32am UTC](https://discourse.julialang.org/t/malloc-error-with-model-cbc-optimizer-on-v1-8-0-beta3-and-m1/78876/1 "2022-04-01T11:32:31Z")

</div>

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

```julia
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?

---

<div class="post-metadata">

**Author:** ![Wikunia](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wikunia/32/2180_2.png) [@Wikunia](https://discourse.julialang.org/u/Wikunia)\
**Post date:** [April 1, 2022, 11:34am UTC](https://discourse.julialang.org/t/malloc-error-with-model-cbc-optimizer-on-v1-8-0-beta3-and-m1/78876/2 "2022-04-01T11:34:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [April 1, 2022, 7:48pm UTC](https://discourse.julialang.org/t/malloc-error-with-model-cbc-optimizer-on-v1-8-0-beta3-and-m1/78876/3 "2022-04-01T19:48:25Z")

</div>

Clp has a similar problem which is likely the cause: [https://github.com/jump-dev/Clp.jl/issues/131](https://github.com/jump-dev/Clp.jl/issues/131)

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