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

Segfault on download using Pkg #230

Open
jonniediegelman opened this issue Jul 28, 2023 · 1 comment
Open

Segfault on download using Pkg #230

jonniediegelman opened this issue Jul 28, 2023 · 1 comment

Comments

@jonniediegelman
Copy link

I'm getting segfaults most of the times I try to use Pkg and it always seems to be hitting something to do with logins in Downloads. One example is trying to add Plots:

(@v1.9) pkg> add Plots
   Resolving package versions...

[332] signal (11.2): Segmentation fault: 11
in expression starting at none:0
set_login at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libcurl.4.dylib (unknown line)
Curl_connect at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libcurl.4.dylib (unknown line)
multi_runsingle at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libcurl.4.dylib (unknown line)
multi_socket at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libcurl.4.dylib (unknown line)
curl_multi_socket_action at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libcurl.4.dylib (unknown line)
curl_multi_socket_action at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/Curl.jl:50 [inlined]
curl_multi_socket_action at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/Curl.jl:58 [inlined]
macro expansion at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/utils.jl:56 [inlined]
#55 at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/Multi.jl:186
lock at ./lock.jl:229
macro expansion at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/Multi.jl:184 [inlined]
#54 at ./task.jl:514
jfptr_YY.54_62065 at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/sys.dylib (unknown line)
ijl_apply_generic at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libjulia-internal.1.9.dylib (unknown line)
start_task at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libjulia-internal.1.9.dylib (unknown line)
Allocations: 6521757 (Pool: 6509397; Big: 12360); GC: 14
[1]    331 segmentation fault  julia

It's pretty nondeterministic. Sometimes just trying again works fine. Sometimes I get a different error. For example, here's another one that I ran right after:

(@v1.9) pkg> add Plots
   Resolving package versions...

[680] signal (11.2): Segmentation fault: 11
in expression starting at none:0
add_next_timeout at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libcurl.4.dylib (unknown line)
override_login at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libcurl.4.dylib (unknown line)
Curl_connect at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libcurl.4.dylib (unknown line)
multi_runsingle at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libcurl.4.dylib (unknown line)
multi_socket at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libcurl.4.dylib (unknown line)
curl_multi_socket_action at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libcurl.4.dylib (unknown line)
curl_multi_socket_action at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/Curl.jl:50 [inlined]
curl_multi_socket_action at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/Curl.jl:58 [inlined]
macro expansion at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/utils.jl:56 [inlined]
#55 at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/Multi.jl:186
lock at ./lock.jl:229
macro expansion at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/Multi.jl:184 [inlined]
#54 at ./task.jl:514
jfptr_YY.54_62065 at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/sys.dylib (unknown line)
ijl_apply_generic at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libjulia-internal.1.9.dylib (unknown line)
start_task at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libjulia-internal.1.9.dylib (unknown line)
Allocations: 4201702 (Pool: 4195588; Big: 6114); GC: 9
[1]    679 segmentation fault  julia

It doesn't matter which environment I'm in or what other packages are installed. I could hit this with a activate --temp environment.

julia> versioninfo()
Julia Version 1.9.2
Commit e4ee485e909 (2023-07-05 09:39 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
  Threads: 1 on 4 virtual cores

I'm using juliaup, but I've tried installing directly as well. I've also tried wiping all of my .julia directory and starting completely fresh.

@jonniediegelman
Copy link
Author

If it helps any, here are some new error messages I'm getting after reinstalling Julia from scratch and deleting my .julia directory:

(@v1.9) pkg> activate @juliacon
  Activating new project at `~/.julia/environments/juliacon`

(@juliacon) pkg> add JuliaCon
   Resolving package versions...

[3816] signal (11.2): Segmentation fault: 11
in expression starting at none:0
IntrusiveLinkedList at ./linked_list.jl:7 [inlined]
GenericCondition at ./condition.jl:67 [inlined]
Task at ./task.jl:5 [inlined]
Task at ./task.jl:5 [inlined]
macro expansion at ./task.jl:518 [inlined]
macro expansion at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/utils.jl:57 [inlined]
do_multi at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/Multi.jl:116
#44 at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/Multi.jl:134 [inlined]
lock at ./lock.jl:229
#43 at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-R17H3W25T9.0/build/default-honeycrisp-R17H3W25T9-0/julialang/julia-release-1-dot-9/usr/share/julia/stdlib/v1.9/Downloads/src/Curl/Multi.jl:131 [inlined]
macro expansion at ./asyncevent.jl:281 [inlined]
#702 at ./task.jl:134
jfptr_YY.702_29272 at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/sys.dylib (unknown line)
ijl_apply_generic at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libjulia-internal.1.9.dylib (unknown line)
start_task at /Users/jonnie.diegelman/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/lib/julia/libjulia-internal.1.9.dylib (unknown line)
Allocations: 4280194 (Pool: 4276713; Big: 3481); GC: 7
[1]    3815 segmentation fault  julia

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

1 participant