# Segmentation fault after update in Juno

**URL:** <https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072>\
**Category:** General Usage\
**Tags:** juno, plotting\
**Created:** [February 24, 2020, 1:20pm UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072 "2020-02-24T13:20:40Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjgorski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pjgorski/32/4802_2.png) [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Post date:** [February 24, 2020, 1:20pm UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/1 "2020-02-24T13:20:40Z")

</div>

I have upgraded julia-client package in Atom. There was a prompt to upgrade Atom package in Juno (using Pkg.update). And afterwards Atom Repl gives segmentation fault when doing `using Plots` and pressing any button. The similar errors appear after writing `using` with some other modules (e.g. user-defined module that needed pre-compilation).

On the other hand plotting in terminal works fine.

I wouldn’t like to delete my .julia file (I had to do it a month ago). Does anybody know how to proceed?

My Julia is 1.0.5

The error is as follows:

```julia
signal (11): Segmentation fault
in expression starting at no file:0
jl_compile_linfo at /buildworker/worker/package_linux64/build/src/codegen.cpp:1191
emit_invoke at /buildworker/worker/package_linux64/build/src/codegen.cpp:3094
emit_expr at /buildworker/worker/package_linux64/build/src/codegen.cpp:3893
emit_ssaval_assign at /buildworker/worker/package_linux64/build/src/codegen.cpp:3615
emit_stmtpos at /buildworker/worker/package_linux64/build/src/codegen.cpp:3801 [inlined]
emit_function at /buildworker/worker/package_linux64/build/src/codegen.cpp:6262
jl_compile_linfo at /buildworker/worker/package_linux64/build/src/codegen.cpp:1159
emit_invoke at /buildworker/worker/package_linux64/build/src/codegen.cpp:3094
emit_expr at /buildworker/worker/package_linux64/build/src/codegen.cpp:3893
emit_ssaval_assign at /buildworker/worker/package_linux64/build/src/codegen.cpp:3615
emit_stmtpos at /buildworker/worker/package_linux64/build/src/codegen.cpp:3801 [inlined]
emit_function at /buildworker/worker/package_linux64/build/src/codegen.cpp:6262
jl_compile_linfo at /buildworker/worker/package_linux64/build/src/codegen.cpp:1159
emit_invoke at /buildworker/worker/package_linux64/build/src/codegen.cpp:3094
emit_expr at /buildworker/worker/package_linux64/build/src/codegen.cpp:3893
emit_ssaval_assign at /buildworker/worker/package_linux64/build/src/codegen.cpp:3615
emit_stmtpos at /buildworker/worker/package_linux64/build/src/codegen.cpp:3801 [inlined]
emit_function at /buildworker/worker/package_linux64/build/src/codegen.cpp:6262
jl_compile_linfo at /buildworker/worker/package_linux64/build/src/codegen.cpp:1159
emit_invoke at /buildworker/worker/package_linux64/build/src/codegen.cpp:3094
emit_expr at /buildworker/worker/package_linux64/build/src/codegen.cpp:3893
emit_ssaval_assign at /buildworker/worker/package_linux64/build/src/codegen.cpp:3615
emit_stmtpos at /buildworker/worker/package_linux64/build/src/codegen.cpp:3801 [inlined]
emit_function at /buildworker/worker/package_linux64/build/src/codegen.cpp:6262
jl_compile_linfo at /buildworker/worker/package_linux64/build/src/codegen.cpp:1159
emit_invoke at /buildworker/worker/package_linux64/build/src/codegen.cpp:3094
emit_expr at /buildworker/worker/package_linux64/build/src/codegen.cpp:3893
emit_ssaval_assign at /buildworker/worker/package_linux64/build/src/codegen.cpp:3615
emit_stmtpos at /buildworker/worker/package_linux64/build/src/codegen.cpp:3801 [inlined]
emit_function at /buildworker/worker/package_linux64/build/src/codegen.cpp:6262
jl_compile_linfo at /buildworker/worker/package_linux64/build/src/codegen.cpp:1159
jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1774
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2162
wsitem at /home/pgorski/.julia/packages/Atom/XKD0f/src/workspace.jl:22
wsitem at /home/pgorski/.julia/packages/Atom/XKD0f/src/workspace.jl:19
jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1809
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2162
#235 at /home/pgorski/.julia/packages/Atom/XKD0f/src/workspace.jl:12
_collect at ./generator.jl:47
map at ./array.jl:561 [inlined]
workspace at /home/pgorski/.julia/packages/Atom/XKD0f/src/workspace.jl:12
#232 at /home/pgorski/.julia/packages/Atom/XKD0f/src/workspace.jl:2
jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1809
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2162
handlemsg at /home/pgorski/.julia/packages/Atom/XKD0f/src/comm.jl:166
unknown function (ip: 0x7f11b0e6b7bc)
jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1809
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2162
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1537 [inlined]
jl_f__apply at /buildworker/worker/package_linux64/build/src/builtins.c:556
#19 at ./task.jl:259
unknown function (ip: 0x7f11b0e696f4)
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2162
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1537 [inlined]
start_task at /buildworker/worker/package_linux64/build/src/task.c:268
unknown function (ip: 0xffffffffffffffff)
Allocations: 58951844 (Pool: 58938262; Big: 13582); GC: 126

```

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 24, 2020, 1:40pm UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/2 "2020-02-24T13:40:52Z")

</div>

What version of Atom.jl do you have installed?

---

<div class="post-metadata">

**Author:** ![pjgorski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pjgorski/32/4802_2.png) [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Post date:** [February 24, 2020, 1:43pm UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/3 "2020-02-24T13:43:49Z")

</div>

0.12.6

---

<div class="post-metadata">

**Author:** ![pjgorski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pjgorski/32/4802_2.png) [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Post date:** [February 24, 2020, 1:45pm UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/4 "2020-02-24T13:45:55Z")

</div>

I have also noticed (while running `using`) in terminal following message:

> Expr(:block, #= Symbol(“/home/pgorski/.julia/packages/Plots/12uaJ/src/backends.jl”):360 =#, Expr(:import, Expr(:., :ORCA)))  
> \*\* incremental compilation may be broken for this module \*\*

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 24, 2020, 2:07pm UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/5 "2020-02-24T14:07:46Z")

</div>

I can repro the issue on Julia 1.0.x, but not on Julia 1.3. Can you upgrade the version of Julia you use?

---

<div class="post-metadata">

**Author:** ![pjgorski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pjgorski/32/4802_2.png) [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Post date:** [February 24, 2020, 2:33pm UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/6 "2020-02-24T14:33:54Z")

</div>

Well, in general yes.  
But  
I had 1.0.3 and I had many problems with `Plots`, so I upgraded to 1.0.5 (which is LTS) so as I will not have to upgrade for a long time. And after my upgrade to 1.0.5 I still had to remove folder .julia and reinstall everything. So I would like to try other solution if it exists.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 24, 2020, 2:36pm UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/7 "2020-02-24T14:36:23Z")

</div>

Fair enough. Do you remember which version of Atom.jl you had before you had those segfaults?

---

<div class="post-metadata">

**Author:** ![pjgorski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pjgorski/32/4802_2.png) [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Post date:** [February 24, 2020, 9:40pm UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/8 "2020-02-24T21:40:39Z")

</div>

I don’t know whether I can find it anywhere. I checked I upgraded Julia to 1.0.5 on Feb 3. Looking at the releases dates of Atom.jl it should be 0.11.3 by then.

---

<div class="post-metadata">

**Author:** ![pjgorski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pjgorski/32/4802_2.png) [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Post date:** [February 28, 2020, 10:29am UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/9 "2020-02-28T10:29:48Z")

</div>

I upgraded Atom to 0.12.7, but still the same error.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 28, 2020, 11:12am UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/10 "2020-02-28T11:12:30Z")

</div>

Yeah, I can see the segfaults on Julia 1.0.x, but not with newer Julia versions. I’d recommend upgrading until we can figure out what’s going wrong.

---

<div class="post-metadata">

**Author:** ![pjgorski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pjgorski/32/4802_2.png) [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Post date:** [February 28, 2020, 11:30am UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/11 "2020-02-28T11:30:36Z")

</div>

OK, thank you.

---

<div class="post-metadata">

**Author:** ![mike\_k](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mike_k/32/211864_2.png) [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Post date:** [February 28, 2020, 11:48am UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/12 "2020-02-28T11:48:06Z")

</div>

If it helps: I observe the same error with Julia 1.1.0 and Atom 0.12.7

---

<div class="post-metadata">

**Author:** ![Marc.Cox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marc.cox/32/7514_2.png) [@Marc.Cox](https://discourse.julialang.org/u/Marc.Cox)\
**Post date:** [May 11, 2020, 7:47pm UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/13 "2020-05-11T19:47:47Z")

</div>

Hi @pfitzseb@pjgorski and maybe @mike_k 🙂

Ok so specifically re: Issue: **signal (11): Segmentation fault** in expression starting at **no file:0 at** /buildworker/worker/package\_linux64/build/src/ **codegen.cpp** :1191  
when using julia\> **versioninfo()**  **\>\>** When using Atom IDE w Juno w **Julia Version 1.0.5 \*\* w OS: Linux (x86\_64-pc-linux-gnu)**

It was my goof because I moved my Julia code and Atom IDE to my new AMD Threadripper Machine and I needed to install various additional Ubuntu libraries ;

IOW **Summarizing below**

**signal (11): Segmentation fault -** _yada yada_ **-**  **codegen.cpp**  **means that one’s** `cmake` `is` `missing `

`ergo Solution ` `was` `:`

`sudo apt-get install cmake `

`-` `or-`

`use Synaptic to search for and install` ` cmake` ` `

`More generally (Julia developers) you may want to read over this`

[https://github.com/JuliaLang/julia/blob/master/doc/build/](https://github.com/JuliaLang/julia/blob/master/doc/build/build.md#required-build-tools-and-external-libraries)[**build.md#required-build-tools-and-external-libraries**](https://github.com/JuliaLang/julia/blob/master/doc/build/build.md#required-build-tools-and-external-libraries)

**`-AND This-`**

From (OLD) file: _JuliaProQuickStartGuideLinux.pdf_

_ **Required Julia libraries** _

**Section : 2.1.3 Prerequisites for Installation on Ubuntu 16.04**

When installing JuliaPro on Ubuntu 16.04, a particular set of system libraries

`need to be installed by a user with appropriate Administrator or sudo privileges.`

On Debian-based distributions (e.g. Ubuntu ), you can easily install them with `apt-get` :

```julia
sudo apt-get install build-essential libatomic1 python gfortran perl wget m4 cmake pkg-config 

```

**-OR THIS-**

Likely the fastest easier way to go is here \>\> [https://juliacomputing.com/products/juliapro.html](https://juliacomputing.com/products/juliapro.html) and download and Install per \>\>

**Quick-start Guide**

Current stable release ( **v1.4.1-1** )

Operating system

windows

mac\*\*

linux

linux (GPG)

AND Release with long-term support ( **v1.0.5-2** )

As usual “Your mileage may differ” 🙂 , but  
I HTH  
-Marc

---

<div class="post-metadata">

**Author:** ![pjgorski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pjgorski/32/4802_2.png) [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Post date:** [January 20, 2021, 12:27am UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/14 "2021-01-20T00:27:32Z")

</div>

Unfortunately this didn’t work for me (same versioninfo output). And it would be strange if it worked in my case, because I obtain those errors only in Juno, not in Julia in terminal.

In the new installation of Julia in the new device (apart from the case described here) I sometimes also get Seg fault, when doing some operations, e.g. ctrl+c, ctrl+v, ctrl+z with mixing the place I am currently in (editor or repl)

Personally, I find this strange that after almost a year the most recommended Julia IDE in Julia LTS version is still producing such an error. Is nobody using Juno in Julia LTS? Or are everybody so accustomed to such errors in Julia?

---

<div class="post-metadata">

**Author:** ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Post date:** [August 11, 2021, 3:09pm UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072/15 "2021-08-11T15:09:29Z")

</div>

most have switched to microsoft visual studio code and [https://www.julia-vscode.org/](https://www.julia-vscode.org/)  
it is the recommended IDE for Julia by now
