-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Random segmentation fault at exit on 1.10.0-rc1 when starting Julia with threads #52024
Comments
I was unable to reproduce this on julia> versioninfo()
Julia Version 1.10.0-rc1
Commit 5aaa9485436 (2023-11-03 07:44 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 8 × 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, tigerlake)
Threads: 1 on 8 virtual cores
Environment:
LD_LIBRARY_PATH = :/usr/lib/x86_64-linux-gnu/gtk-3.0/modules
JULIA_EDITOR = subl using for i in {1..20}; do echo $i; julia-1.10 -t 4 --project --banner=no --startup-file=no -e "using HTTP, Makie"; done Perhaps an rr trace would help here |
I can reliably reproduce and git bisecting gives: 81d8c12 is the first bad commit
|
That's a bit surprising since no Pkg commands seems to be executed. |
Yeah, it is strange, it must be triggering some other bug. Because if I |
These packages actually use Pkg quite heavily (edit, although many seem to be from SuiteSparse_jll, which falsely declares a dependency): `why` output
|
I spoke too soon, this reproducer is not stressing it enough. If I have ~100 packages in the project and run it longer then git bisect points to upgrade to LLVM 15:
|
And the fix is already in the nightly builds, just needs to be backported: |
I also cannot reproduce the issue in the OP; @ktdq, would you share the more stressful reproducer you have?
|
Project.toml:
stress.sh:
|
I can confirm that that stress test fails reliably (prints Bad, exits 0) on 1.10-rc1 and succeeds reliably (prints Good exits 1) on 1.10-rc1 with 3d88550 |
Thank you for your work bisecting the fix for this, @ktdq, I really appreciate it. |
Julia v1.10.0-rc1 on Linux
gives segmentation faults at exit randomly. I can start REPL,
using HTTP, Makie
, and then pressing Ctrl-D to get seg fault.Example output from the loop is
Julia 1.9.3 is fine. Julia 1.10.0-rc1 seems to work when started with
-t 1
.Package versions, and version info
The text was updated successfully, but these errors were encountered: