Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault 11 with Julia 1.5.3 #969

Closed
mistermichaelll opened this issue Dec 16, 2020 · 2 comments
Closed

Segmentation Fault 11 with Julia 1.5.3 #969

mistermichaelll opened this issue Dec 16, 2020 · 2 comments

Comments

@mistermichaelll
Copy link

Session Info

Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)

Issue

I was attempting to get Julia 1.5.3 to work in a Jupyter notebook, but Jupyter said that it couldn't start the kernel. So I attempted to open a notebook this way:

using IJulia
notebook()

However, when I ran the using IJulia piece, I got a segmentation error that crashes the REPL entirely. IJulia appears to be the only package where this is an issue, and other packages precompile fine. Here's a snippet from the beginning and end of this error.

signal (11): Segmentation fault: 11
in expression starting at REPL[2]:1
jl_array_ptr_ref at /Users/julia/buildbot/worker/package_macos64/build/src/./julia.h:873 [inlined]
jl_deserialize_value_module at /Users/julia/buildbot/worker/package_macos64/build/src/dump.c:1881 [inlined]
jl_deserialize_value at /Users/julia/buildbot/worker/package_macos64/build/src/dump.c:2192
jl_deserialize_value_array at /Users/julia/buildbot/worker/package_macos64/build/src/dump.c:1617

...... 

#invokelatest#1 at ./essentials.jl:710 [inlined]
invokelatest at ./essentials.jl:709 [inlined]
run_main_repl at ./client.jl:383
exec_options at ./client.jl:313
_start at ./client.jl:506
jfptr__start_57081.clone_1 at /Applications/Julia-1.5.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
true_main at /Applications/Julia-1.5.app/Contents/Resources/julia/bin/julia (unknown line)
main at /Applications/Julia-1.5.app/Contents/Resources/julia/bin/julia (unknown line)
Allocations: 9074989 (Pool: 9071853; Big: 3136); GC: 12

[Process completed]

Possible resolution...?

I solved this issue by going into the Julia folder, deleting the IJulia folder, reinstalling, and rebuilding the package. Running the command using IJulia works now, and the kernel loads in the Jupyter notebook. I figured I would submit this issue anyway, as I didn't see anything related to this bug for this package.

@drpetersen
Copy link

The same(?) happens when trying to start the julia executable on my Debian 11 system:

~ $ LC_ALL=C julia --version
julia version 1.5.3
~ $ LC_ALL=C julia
Segmentation fault
~ $ apt show julia
Package: julia
Version: 1.5.3+dfsg-3
Priority: optional
Section: science
Maintainer: Debian Julia Team <[email protected]>
Installed-Size: 6296 kB
Depends: julia-common (= 1.5.3+dfsg-3), libjulia1 (= 1.5.3+dfsg-3), libc6 (>= 2.4), libcurl3-gnutls (>= 7.16.2), libdsfmt-19937-1 (>= 2.2.3), libgcc-s1 (>= 3.0), libgfortran5 (>= 8), libgit2-1.1 (>= 1.1.0), libgmp10, libllvm9 (>= 1:9~svn298832-1~), libmbedcrypto3 (>= 2.13), libmbedtls12 (>= 2.13), libmbedx509-0 (>= 2.0), libmpfr6 (>= 3.1.3), libopenlibm3 (>= 0.4.1+dfsg-4~), libpcre2-8-0 (>= 10.22), libquadmath0 (>= 4.6), libssh2-1 (>= 1.0), libunwind8, libutf8proc2 (>= 2.1.1)
Recommends: git, openssl
Suggests: ess (>= 12.09-1~), julia-doc, vim-julia
Breaks: julia-common (<< 0.5.0~)
Replaces: julia-common (<< 0.5.0~)
Homepage: https://julialang.org
Download-Size: 1277 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.de.debian.org/debian stable/main amd64 Packages
Description: high-performance programming language for technical computing
(…)
~ $ cat /etc/julia/startup.jl
# This file should contain site-specific commands to be executed on Julia startup;
# Users may store their own personal commands in `~/.julia/config/startup.jl`.
~ $ cat ~/.julia/config/startup.jl
cat: /home/lars/.julia/config/startup.jl: No such file or directory

Except, I don't know how I might apply the OP's fix in my case.

@nilshg
Copy link

nilshg commented Sep 26, 2024

This can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants