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

pacman julia crashes with segmentation fault on ]up #43682

Closed
cjwyett opened this issue Jan 6, 2022 · 3 comments
Closed

pacman julia crashes with segmentation fault on ]up #43682

cjwyett opened this issue Jan 6, 2022 · 3 comments

Comments

@cjwyett
Copy link
Contributor

cjwyett commented Jan 6, 2022

Official binaries work fine, but I don't know where else to report this. Started with the new update. Stacktrace:

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.7.1 (2021-12-22)
 _/ |\__'_|_|_|\__'_|  |
|__/                   |

(@v1.7) pkg> up
    Updating registry at `~/.julia/registries/General.toml`

signal (11): Segmentation fault
in expression starting at none:0
unknown function (ip: 0x7f7d73f44db3)
unknown function (ip: 0x7f7d73f45490)
curl_multi_socket_action at /usr/bin/../lib/julia/libcurl.so (unknown line)
unknown function (ip: 0x7f7d7c12cb56)
unknown function (ip: 0x7f7d7c12d161)
unknown function (ip: 0x7f7d7c13aeba)
unknown function (ip: 0x7f7d7c13b04f)
unknown function (ip: 0x7f7d7bc4baac)
unknown function (ip: 0x7f7d73f405d7)
curl_multi_add_handle at /usr/bin/../lib/julia/libcurl.so (unknown line)
unknown function (ip: 0x7f7d7bc4fb93)
unknown function (ip: 0x7f7d7bc5075f)
unknown function (ip: 0x7f7d7bb12c6b)
unknown function (ip: 0x7f7d7bb13b65)
unknown function (ip: 0x7f7d7bb13efb)
unknown function (ip: 0x7f7d7bb140cc)
unknown function (ip: 0x7f7d7bb14145)
unknown function (ip: 0x7f7d7c11d548)
unknown function (ip: 0x7f7d7c124b22)
unknown function (ip: 0x7f7d7c124d9e)
unknown function (ip: 0x7f7d7bb14d6c)
unknown function (ip: 0x7f7d7bb1534e)
unknown function (ip: 0x7f7d7c11560c)
unknown function (ip: 0x7f7d7c11569d)
unknown function (ip: 0x7f7d7bb2752e)
unknown function (ip: 0x7f7d7bb27691)
unknown function (ip: 0x7f7d7c129fb6)
unknown function (ip: 0x7f7d7bcba267)
pkg_server_registry_url at /build/julia/src/julia-1.7.1/usr/share/julia/stdlib/v1.7/Pkg/src/Registry/Registry.jl:64 [inlined]
#update#54 at /build/julia/src/julia-1.7.1/usr/share/julia/stdlib/v1.7/Pkg/src/Registry/Registry.jl:357
update##kw at /build/julia/src/julia-1.7.1/usr/share/julia/stdlib/v1.7/Pkg/src/Registry/Registry.jl:348 [inlined]
update##kw at /build/julia/src/julia-1.7.1/usr/share/julia/stdlib/v1.7/Pkg/src/Registry/Registry.jl:348
unknown function (ip: 0x7f7d735fc02d)
unknown function (ip: 0x7f7d7c135172)
unknown function (ip: 0x7f7d7bb0f770)
up##kw at /build/julia/src/julia-1.7.1/usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:318
unknown function (ip: 0x7f7d735f48b8)
#up#53 at /build/julia/src/julia-1.7.1/usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:149
unknown function (ip: 0x7f7d7bb5d642)
do_cmd! at /build/julia/src/julia-1.7.1/usr/share/julia/stdlib/v1.7/Pkg/src/REPLMode/REPLMode.jl:407
#do_cmd#21 at /build/julia/src/julia-1.7.1/usr/share/julia/stdlib/v1.7/Pkg/src/REPLMode/REPLMode.jl:385
do_cmd at /build/julia/src/julia-1.7.1/usr/share/julia/stdlib/v1.7/Pkg/src/REPLMode/REPLMode.jl:376 [inlined]
#24 at /build/julia/src/julia-1.7.1/usr/share/julia/stdlib/v1.7/Pkg/src/REPLMode/REPLMode.jl:549
unknown function (ip: 0x7f7d735f0091)
jl_f__call_latest at /usr/bin/../lib/julia/libjulia-internal.so.1 (unknown line)
unknown function (ip: 0x7f7d7bbc4d19)
unknown function (ip: 0x7f7d7bbc51bd)
unknown function (ip: 0x7f7d7bbd4f6d)
unknown function (ip: 0x7f7d7bbd6ce2)
unknown function (ip: 0x7f7d7bbd6cf8)
unknown function (ip: 0x7f7d93093424)
Allocations: 3719036 (Pool: 3717211; Big: 1825); GC: 4
zsh: segmentation fault (core dumped)  julia

@vchuravy
Copy link
Member

vchuravy commented Jan 6, 2022

Please file this at https://bugs.archlinux.org/ the Archlinux binaries are using an unsupported build configuration (e.g. system LLVM without Julia patches and wrong LLVM version) as well as patching Julia itself to support that configuration.

We recommend the use of the julia-bin package from the AUR.

@mkitti
Copy link
Contributor

mkitti commented Jan 7, 2022

In conda-forge we see the segfault with libcurl 7.81 but not 7.80.

@mkitti
Copy link
Contributor

mkitti commented Jan 8, 2022

@cjwyett on the conda-forge issue which looks similar I bisected the problem to curl/curl@2b3dd01

$ julia -E 'download("https://curl.se")'

signal (11): Segmentation fault
in expression starting at none:1
prune_dead_connections at /home/mkitti/src/curl/lib/url.c:1081
create_conn at /home/mkitti/src/curl/lib/url.c:3859
Curl_connect at /home/mkitti/src/curl/lib/url.c:4119
multi_runsingle at /home/mkitti/src/curl/lib/multi.c:1844
multi_socket at /home/mkitti/src/curl/lib/multi.c:3115
curl_multi_socket_action at /home/mkitti/src/curl/lib/multi.c:3236
curl_multi_socket_action at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/LibCURL/src/lC_curl_h.jl:230 [inlined]
curl_multi_socket_action at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:91 [inlined]
macro expansion at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:35 [inlined]
#47 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/Multi.jl:147
lock at ./lock.jl:190
timer_callback at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/Multi.jl:146
jfptr_timer_callback_19000.clone_1 at /home/mkitti/anaconda3/envs/curltest/lib/julia/sys.so (unknown line)
_jl_invoke at /usr/local/src/conda/julia-1.7.1/src/gf.c:2247 [inlined]
jl_apply_generic at /usr/local/src/conda/julia-1.7.1/src/gf.c:2429
jlcapi_timer_callback_18861.clone_1 at /home/mkitti/anaconda3/envs/curltest/lib/julia/sys.so (unknown line)
Curl_update_timer at /home/mkitti/src/curl/lib/multi.c:3349
curl_multi_add_handle at /home/mkitti/src/curl/lib/multi.c:489
curl_multi_add_handle at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/LibCURL/src/lC_curl_h.jl:194 [inlined]
macro expansion at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/utils.jl:35 [inlined]
#27 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/Multi.jl:51
lock at ./lock.jl:190
add_handle at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/Multi.jl:44 [inlined]
#9 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:345
with_handle at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Curl/Curl.jl:64
#8 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:311 [inlined]
arg_write at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/ArgTools/src/ArgTools.jl:112
#7 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:310 [inlined]
arg_read at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/ArgTools/src/ArgTools.jl:61 [inlined]
#request#5 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:309
request##kw at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:293 [inlined]
#3 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:222 [inlined]
arg_write at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/ArgTools/src/ArgTools.jl:101
#download#2 at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:221 [inlined]
download at /home/conda/feedstock_root/build_artifacts/julia_1641439672340/work/usr/share/julia/stdlib/v1.7/Downloads/src/Downloads.jl:221
_jl_invoke at /usr/local/src/conda/julia-1.7.1/src/gf.c:2247 [inlined]
jl_apply_generic at /usr/local/src/conda/julia-1.7.1/src/gf.c:2429
jl_apply at /usr/local/src/conda/julia-1.7.1/src/julia.h:1788 [inlined]
jl_f__call_latest at /usr/local/src/conda/julia-1.7.1/src/builtins.c:757
#invokelatest#2 at ./essentials.jl:716 [inlined]
invokelatest at ./essentials.jl:714 [inlined]
do_download at ./download.jl:24 [inlined]
download at ./download.jl:20
_jl_invoke at /usr/local/src/conda/julia-1.7.1/src/gf.c:2247 [inlined]
jl_apply_generic at /usr/local/src/conda/julia-1.7.1/src/gf.c:2429
jl_apply at /usr/local/src/conda/julia-1.7.1/src/julia.h:1788 [inlined]
do_call at /usr/local/src/conda/julia-1.7.1/src/interpreter.c:126
eval_value at /usr/local/src/conda/julia-1.7.1/src/interpreter.c:215
eval_stmt_value at /usr/local/src/conda/julia-1.7.1/src/interpreter.c:166 [inlined]
eval_body at /usr/local/src/conda/julia-1.7.1/src/interpreter.c:601
jl_interpret_toplevel_thunk at /usr/local/src/conda/julia-1.7.1/src/interpreter.c:731
jl_toplevel_eval_flex at /usr/local/src/conda/julia-1.7.1/src/toplevel.c:885
jl_toplevel_eval_flex at /usr/local/src/conda/julia-1.7.1/src/toplevel.c:830
jl_toplevel_eval_in at /usr/local/src/conda/julia-1.7.1/src/toplevel.c:944
eval at ./boot.jl:373 [inlined]
exec_options at ./client.jl:270
_start at ./client.jl:495
jfptr__start_40346.clone_1 at /home/mkitti/anaconda3/envs/curltest/lib/julia/sys.so (unknown line)
_jl_invoke at /usr/local/src/conda/julia-1.7.1/src/gf.c:2247 [inlined]
jl_apply_generic at /usr/local/src/conda/julia-1.7.1/src/gf.c:2429
jl_apply at /usr/local/src/conda/julia-1.7.1/src/julia.h:1788 [inlined]
true_main at /usr/local/src/conda/julia-1.7.1/src/jlapi.c:559
jl_repl_entrypoint at /usr/local/src/conda/julia-1.7.1/src/jlapi.c:701
main at julia (unknown line)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x55c7ea807098)
Allocations: 2721 (Pool: 2712; Big: 9); GC: 0
Segmentation fault (core dumped)

$ julia -E 'using LibCURL; unsafe_string(LibCURL.curl_version())'
"libcurl/7.81.0-DEV OpenSSL/3.0.0 zlib/1.2.11 libssh2/1.10.0 nghttp2/1.43.0"

The above is an unsupported configuration of libcurl.

This is the supported configuration of libcurl for Julia 1.7.1:

$ bin/julia -E "using LibCURL; unsafe_string(LibCURL.curl_version())"
"libcurl/7.73.0 mbedTLS/2.24.0 zlib/1.2.11 libssh2/1.9.0 nghttp2/1.41.0"

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