# Precompiling JuMP and GLPK cause segfaults

**URL:** <https://discourse.julialang.org/t/precompiling-jump-and-glpk-cause-segfaults/31905>\
**Category:** Optimization (Mathematical)\
**Created:** [December 5, 2019, 1:24pm UTC](https://discourse.julialang.org/t/precompiling-jump-and-glpk-cause-segfaults/31905 "2019-12-05T13:24:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amca01](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amca01/32/5853_2.png) [@amca01](https://discourse.julialang.org/u/amca01)\
**Post date:** [December 5, 2019, 1:24pm UTC](https://discourse.julialang.org/t/precompiling-jump-and-glpk-cause-segfaults/31905/1 "2019-12-05T13:24:40Z")

</div>

I’m using Julia 1.2.0. Just now, I tried to install JuMP and GLPK (using `Pkg.add`), and then tried to use them with `using ...`. The attempt to precompile led to a slew of errors, and a segmentation fault (this is in Linux). When I installed them on a work computer, running Windows 10 and an older version of Julia, both installed and ran fine.

In fact, something even worse has happened, as I’ve just discovered: I seem to have broken something, as Julia just crashed and now can’t start (in a terminal); attempts lead to a segfault.

What has happened? Why is Julia crashing on starting, and why couldn’t I install either JuMP or GLPK? Thanks!

---

<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:** [December 5, 2019, 1:38pm UTC](https://discourse.julialang.org/t/precompiling-jump-and-glpk-cause-segfaults/31905/2 "2019-12-05T13:38:38Z")

</div>

I suggest you try uninstalling everything and then reinstalling.

Also, which Linux? And please post the errors from `using JuMP`. We’re not aware of any reasons why JuMP wouldn’t work on Linux systems.

---

<div class="post-metadata">

**Author:** ![amca01](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amca01/32/5853_2.png) [@amca01](https://discourse.julialang.org/u/amca01)\
**Post date:** [December 6, 2019, 1:48am UTC](https://discourse.julialang.org/t/precompiling-jump-and-glpk-cause-segfaults/31905/3 "2019-12-06T01:48:01Z")

</div>

Thank you! I will do that; also I’ll install the binaries from the Julia pages, rather than from my distribution’s repositories (Arch linux). I can’t post the errors from `using JuMP` as currently I can’t start Julia at all.

---

<div class="post-metadata">

**Author:** ![amca01](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amca01/32/5853_2.png) [@amca01](https://discourse.julialang.org/u/amca01)\
**Post date:** [December 7, 2019, 3:54am UTC](https://discourse.julialang.org/t/precompiling-jump-and-glpk-cause-segfaults/31905/4 "2019-12-07T03:54:55Z")

</div>

I ended up uninstalling the lot (using the distro package manager) and then reinstalling Julia 1.3.0 from its own repositories. It now runs fine, and I also added GLPK and JuMP. I have no idea what caused the original issues.

FWIW, I’m using Arch linux.

---

<div class="post-metadata">

**Author:** ![Libbum](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/libbum/32/3935_2.png) [@Libbum](https://discourse.julialang.org/u/Libbum)\
**Post date:** [December 11, 2019, 4:10pm UTC](https://discourse.julialang.org/t/precompiling-jump-and-glpk-cause-segfaults/31905/5 "2019-12-11T16:10:34Z")

</div>

My expectation here is that you’re having Arpack compile problems. It’s been a point of contention from us Arch user for a while, but ultimately requires us to do some manual messing about with a `libopenblas` soft link.

Generally speaking, this isn’t a problem for many Arch Julia users, so it’s not a widespread issue. However, those of us who want to use JuMP are stuck with it.

- [Some manual changes to fix the issue](https://github.com/JuliaLinearAlgebra/Arpack.jl/issues/75#issuecomment-539650193)
- [Long chain of reasons for the issue](https://github.com/JuliaLinearAlgebra/Arpack.jl/issues/5)
