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

Pkg.test() segfault #35447

Closed
emsal0 opened this issue Apr 12, 2020 · 4 comments
Closed

Pkg.test() segfault #35447

emsal0 opened this issue Apr 12, 2020 · 4 comments

Comments

@emsal0
Copy link

emsal0 commented Apr 12, 2020

output of versioninfo():

julia> versioninfo()
Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

I recently tried to write a unit test for a small package I'm writing. When I try to go ]test in the interpreter I get a segfault. Here's the full log:

~/projects/circuits_are_graphs master* 4h 18m 38s
❯ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.3.1 (2019-12-30)
 _/ |\__'_|_|_|\__'_|  |  
|__/                   |

(v1.3) pkg> activate .
Activating environment at `~/projects/circuits_are_graphs/Project.toml`

(Circuits) pkg> test
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`

signal (11): Segmentation fault
in expression starting at none:0
unknown function (ip: 0x7fc53b3cae73)
http_parser_execute at /usr/bin/../lib/libhttp_parser.so.2.9 (unknown line)
unknown function (ip: 0x7fc53b3cc390)
unknown function (ip: 0x7fc53b3ce770)
unknown function (ip: 0x7fc53b3d0b58)
unknown function (ip: 0x7fc53b3cef91)
git_remote_fetch at /usr/bin/../lib/libgit2.so (unknown line)
unknown function (ip: 0x7fc54dcdfcb2)
unknown function (ip: 0x7fc54dce10d8)
unknown function (ip: 0x7fc54dcea000)
unknown function (ip: 0x7fc54dd094de)
unknown function (ip: 0x7fc54dd0b101)
#update_registries at ./none:0 [inlined]
#update_registries at ./none:0 [inlined]
#up#43 at /build/julia/src/julia-1.3.1/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:153
#up at ./none:0 [inlined]
#up#38 at /build/julia/src/julia-1.3.1/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:137 [inlined]
#up at ./none:0 [inlined]
#instantiate#114 at /build/julia/src/julia-1.3.1/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:722
unknown function (ip: 0x7fc53bfcde12)
instantiate at /build/julia/src/julia-1.3.1/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:720
#test#131 at /build/julia/src/julia-1.3.1/usr/share/julia/stdlib/v1.3/Pkg/src/Operations.jl:1316
#test at ./none:0 [inlined]
#test#62 at /build/julia/src/julia-1.3.1/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:253
test at /build/julia/src/julia-1.3.1/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:239
do_test! at /build/julia/src/julia-1.3.1/usr/share/julia/stdlib/v1.3/Pkg/src/REPLMode.jl:465
jl_f__apply at /usr/bin/../lib/libjulia.so.1 (unknown line)
jl_f__apply_latest at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7fc54dc9d82b)
jl_f__apply at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7fc54de15522)
unknown function (ip: 0x7fc54ddbb104)
unknown function (ip: 0x7fc54ddbb52d)
unknown function (ip: 0x7fc54ddbf2e8)
unknown function (ip: 0x7fc54ddbf416)
jl_f__apply at /usr/bin/../lib/libjulia.so.1 (unknown line)
jl_f__apply_latest at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7fc54de9dce1)
unknown function (ip: 0x7fc54deb0d9e)
unknown function (ip: 0x7fc54deb1cd1)
unknown function (ip: 0x7fc54dcc3d9c)
unknown function (ip: 0x7fc54dcc4358)
jl_f__apply at /usr/bin/../lib/libjulia.so.1 (unknown line)
jl_f__apply_latest at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7fc54dbd7717)
unknown function (ip: 0x7fc54dbddff2)
unknown function (ip: 0x7fc54dbde512)
unknown function (ip: 0x7fc54dbde655)
unknown function (ip: 0x557458d474fe)
unknown function (ip: 0x557458d470a7)
__libc_start_main at /usr/bin/../lib/libc.so.6 (unknown line)
unknown function (ip: 0x557458d4715d)
Allocations: 2742622 (Pool: 2741542; Big: 1080); GC: 3
zsh: segmentation fault (core dumped)  julia
@fredrikekre
Copy link
Member

Can you test with Julia 1.4.0?

@KristofferC
Copy link
Sponsor Member

Are you using the official binaries or distro provided ones?

@fredrikekre
Copy link
Member

Looks like you are using a system install of Julia that is broken, see e.g. #35043 (comment)

@KristofferC
Copy link
Sponsor Member

Dup of #35043

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