Skip to content

Segfault on linux with spinner enabled #61

Open
@christiangnrd

Description

@christiangnrd

Originally posted as JuliaInterop/Clang.jl#532

To reproduce, try to run the Clang tests with more than 2 threads on linux.

Error:
X:~/.julia/dev/Clang$ JULIA_NUM_THREADS=2 j --proj
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.3 (2025-01-21)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(Clang) pkg> test
     Testing Clang
      Status `/tmp/jl_4N0yFx/Project.toml`
  [fa961155] CEnum v0.5.0
  [40e3b903] Clang v0.18.3 `~/.julia/dev/Clang`
  [e0db7c4e] ReTest v0.3.4
  [3f4e10e2] CMake_jll v3.31.6+0
  [8f399da3] Libdl v1.11.0
  [3fa0cd96] REPL v1.11.0
  [fa267f1f] TOML v1.0.3
  [8dfed614] Test v1.11.0
      Status `/tmp/jl_4N0yFx/Manifest.toml`
  [fa961155] CEnum v0.5.0
  [40e3b903] Clang v0.18.3 `~/.julia/dev/Clang`
  [bd334432] InlineTest v0.2.0
  [692b3bcd] JLLWrappers v1.7.0
  [aea7be01] PrecompileTools v1.2.1
  [21216c6a] Preferences v1.4.3
  [e0db7c4e] ReTest v0.3.4
  [3f4e10e2] CMake_jll v3.31.6+0
⌅ [0ee61d77] Clang_jll v16.0.6+4
  [458c3c95] OpenSSL_jll v3.0.16+0
  [0dad84c5] ArgTools v1.1.2
  [56f22d72] Artifacts v1.11.0
  [2a0f44e3] Base64 v1.11.0
  [ade2ca70] Dates v1.11.0
  [8ba89e20] Distributed v1.11.0
  [f43a241f] Downloads v1.6.0
  [7b1f6079] FileWatching v1.11.0
  [b77e0a4c] InteractiveUtils v1.11.0
  [b27032c2] LibCURL v0.6.4
  [76f85450] LibGit2 v1.11.0
  [8f399da3] Libdl v1.11.0
  [56ddb016] Logging v1.11.0
  [d6f4376e] Markdown v1.11.0
  [ca575930] NetworkOptions v1.2.0
  [44cfe95a] Pkg v1.11.0
  [de0858da] Printf v1.11.0
  [3fa0cd96] REPL v1.11.0
  [9a3f8284] Random v1.11.0
  [ea8e919c] SHA v0.7.0
  [9e88b42a] Serialization v1.11.0
  [6462fe0b] Sockets v1.11.0
  [f489334b] StyledStrings v1.11.0
  [fa267f1f] TOML v1.0.3
  [a4e569a6] Tar v1.10.0
  [8dfed614] Test v1.11.0
  [cf7118a7] UUIDs v1.11.0
  [4ec0a83e] Unicode v1.11.0
  [deac9b47] LibCURL_jll v8.6.0+0
  [e37daf67] LibGit2_jll v1.7.2+0
  [29816b5a] LibSSH2_jll v1.11.0+1
  [c8ffd9c3] MbedTLS_jll v2.28.6+0
  [14a3606d] MozillaCACerts_jll v2023.12.12
  [83775a58] Zlib_jll v1.2.13+1
  [8f36deef] libLLVM_jll v16.0.6+4
  [8e850ede] nghttp2_jll v1.59.0+0
  [3f19e933] p7zip_jll v17.4.0+2
        Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading.
     Testing Running tests...
                                                          Pass  Broken   Total  |  Time / Compile / GC |   Alloc   ΔRSS |
Main.ClangTests:
  get_environment_info                                |      0               0  |   0.04s              |    3.1M        |
  darwin __triplet backwards compatibility            |      2               2  |   0.04s         9.9% |    2.2M   1.1M |

[398667] signal 11 (-6): Segmentation fault
in expression starting at none:1
ijl_gc_safepoint at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/jlapi.c:740
ijl_task_get_next at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/scheduler.c:524
poptask at ./task.jl:1012
wait at ./task.jl:1021
#wait#731 at ./condition.jl:130
wait at ./condition.jl:125 [inlined]
_trywait at ./asyncevent.jl:145
wait at ./asyncevent.jl:162 [inlined]
sleep at ./asyncevent.jl:272 [inlined]
#72 at /home/christian/.julia/packages/ReTest/3Ikse/src/ReTest.jl:989
unknown function (ip: 0x73a211a5021f)
jl_apply at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/julia.h:2157 [inlined]
start_task at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/task.c:1202
Allocations: 8689685 (Pool: 8689410; Big: 275); GC: 10
ERROR: Package Clang errored during testing (received signal: 11)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions