# Signal (11): Segmentation fault when launching MATLAB process

**URL:** <https://discourse.julialang.org/t/signal-11-segmentation-fault-when-launching-matlab-process/89250>\
**Category:** General Usage\
**Created:** [October 25, 2022, 2:44pm UTC](https://discourse.julialang.org/t/signal-11-segmentation-fault-when-launching-matlab-process/89250 "2022-10-25T14:44:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [October 25, 2022, 2:44pm UTC](https://discourse.julialang.org/t/signal-11-segmentation-fault-when-launching-matlab-process/89250/1 "2022-10-25T14:44:14Z")

</div>

I am trying to call MATLAB from julia, but I get a segmentation fault:

```julia
julia> using MATLAB
 │ Package MATLAB not found, but a package named MATLAB is available from a
 │ registry. 
 │ Install package?
 │ (@v1.8) pkg> add MATLAB 
 └ (y/n/o) [y]: 
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
    Updating `~/.julia/environments/v1.8/Project.toml`
  [10e44e05] + MATLAB v0.8.3
    Updating `~/.julia/environments/v1.8/Manifest.toml`
  [10e44e05] + MATLAB v0.8.3

julia> mat"1+1"

signal (11): Segmentation fault
in expression starting at REPL[2]:1
Allocations: 79472235 (Pool: 79433134; Big: 39101); GC: 43
dennishb@dennishb-ThinkPad-L390:~$ 

```

This never happen on the same computer when I was running windows. I am now running Linux Mint. Any idea what could be the cause?

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [October 25, 2022, 3:04pm UTC](https://discourse.julialang.org/t/signal-11-segmentation-fault-when-launching-matlab-process/89250/2 "2022-10-25T15:04:28Z")

</div>

Have you seen the warning about Matlab 2022a/b on [github](https://github.com/JuliaInterop/MATLAB.jl#matlab)?

---

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [October 25, 2022, 3:08pm UTC](https://discourse.julialang.org/t/signal-11-segmentation-fault-when-launching-matlab-process/89250/3 "2022-10-25T15:08:14Z")

</div>

No, I have not. Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [October 25, 2022, 4:54pm UTC](https://discourse.julialang.org/t/signal-11-segmentation-fault-when-launching-matlab-process/89250/4 "2022-10-25T16:54:08Z")

</div>

If you don’t have older MATLAB that works, then you can call Octave instead. At least indirectly by calling through Python to a package for that as I did… it’s a hassle but worked (and I had to disable threading OpenBLAS threading in Octave with an ENV var to get around a bug). There is OctCall.jl but it seems unchanged, and was immature when I tried to use it.
