Skip to content

Segfault in multiq_check_empty at exit #58723

Open
@Octogonapus

Description

@Octogonapus

I have a program which segfaults at exit almost every time. This is the backtrace printed at fault time:

 [2394] signal 11 (-6): Segmentation fault
in expression starting at none:0
multiq_check_empty at ./partr.jl:179
jfptr_multiq_check_empty_66439.1 at /opt/hostedtoolcache/julia/1.11.5/x64/lib/julia/sys.so (unknown line)
check_empty at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/scheduler.c:388 [inlined]
ijl_task_get_next at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/scheduler.c:456
poptask at ./task.jl:1012
wait at ./task.jl:1021
task_done_hook at ./task.jl:694
jfptr_task_done_hook_66535.1 at /opt/hostedtoolcache/julia/1.11.5/x64/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/julia.h:2157 [inlined]
jl_finish_task at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/task.c:319
start_task at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/task.c:1213
Allocations: 19591750 (Pool: 19591164; Big: 586); GC: 26
./gen/generate.sh: line 4:  2394 Segmentation fault      (core dumped) julia --project="$dir" -t auto "$dir/generator.jl"

This is the backtrace from the core dump:

(gdb) bt
#0  __pthread_kill_implementation (no_tid=0, signo=11, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=11, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=11) at ./nptl/pthread_kill.c:89
#3  0x00007fba8404527e in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#4  0x00007fba834c7e66 in ?? ()
#5  0x0000000000000000 in ?? ()

(gdb) info threads
  Id   Target Id                        Frame 
* 1    Thread 0x7fba6b5fb6c0 (LWP 2399) __pthread_kill_implementation (no_tid=0, signo=11, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
  2    Thread 0x7fba843cc140 (LWP 2394) 0x00007fba84098d71 in __futex_abstimed_wait_common64 (private=32767, cancel=true, abstime=0x0, op=393, expected=0, 
    futex_word=0x7fba83a0e02c) at ./nptl/futex-internal.c:57
  3    Thread 0x7fba6a5fa6c0 (LWP 2401) 0x00007fba84098d71 in __futex_abstimed_wait_common64 (private=32698, cancel=true, abstime=0x0, op=393, expected=0, 
    futex_word=0x7fba839716e8) at ./nptl/futex-internal.c:57
  4    Thread 0x7fba7cdff6c0 (LWP 2397) 0x00007fba84045fc8 in __GI___sigtimedwait (set=0x7fba7cdfe4e0, info=0x7fba7cdfe560, timeout=0x0)
    at ../sysdeps/unix/sysv/linux/sigtimedwait.c:31
  5    Thread 0x7fba6c5fc6c0 (LWP 2398) 0x00007fba84098d71 in __futex_abstimed_wait_common64 (private=32698, cancel=true, abstime=0x0, op=393, expected=0, 
    futex_word=0x7fba64003bb8) at ./nptl/futex-internal.c:57
  6    Thread 0x7fba623ff6c0 (LWP 2400) 0x00007fba84098d71 in __futex_abstimed_wait_common64 (private=32698, cancel=true, abstime=0x0, op=393, expected=0, 
    futex_word=0x7fba54003bbc) at ./nptl/futex-internal.c:57
  7    Thread 0x7fba505ff6c0 (LWP 2402) 0x00007fba84098d71 in __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, 
    futex_word=0x7fba52aa68e0) at ./nptl/futex-internal.c:57
  8    LWP 2396                         0x0000000000000000 in ?? ()

Code is here https://github.com/JuliaServices/LibAwsChecksums.jl/blob/e5f5705de102c9985c041fe82bb6476afae91e82/gen/generator.jl

Julia v1.11.5
OS is github actions ubuntu 24.04.2

cc @quinnj

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