CI: Boehm GC abort child hangs for 60 s under GCC UndefinedBehaviorSanitizer

Open
#32,759 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c
Domain
compilers, testing

Research direction

Start with vlib/v/tests/gc_boehm_abort_reports_to_stderr_test.v, where test_boehm_abort_is_reported_on_stderr_without_blocking spawns a child that calls C.GC_FREE on a stack pointer under -gc boehm_leak. Reproduce it locally under -cc gcc -cflags -fsanitize=undefined, recording the child PID, its wait state, and its exit status across repeated runs. Done means the 60 s hang is attributed to a specific cause (deadlock, blocked pipes, or GC dialog) before any deadline or code change.

Written by the indexing model from the issue text.

Description

Genuinely executed historical master 593657221cd2ef2063d41979a7b827e8cb12ecd5: GCC UBSan shard 2 job 137340577557 finished 2026-11-22 21:45:34 UTC, one failed vlib/v/tests/gc_boehm_abort_reports_to_stderr_test.v after 1,049 other VLIB tests passed and 158 skipped. Original command ./v2 -cc gcc -cflags -fno-omit-frame-pointer -cflags -fsanitize=undefined -silent vlib/v/tests/gc_boehm_abort_reports_to_stderr_test.v. At test line 32, test_boehm_abort_is_reported_on_stderr_without_blocking killed its child after 60 s: the Boehm abort blocked for more than 60000000000 (a modal dialog?). This is a harness child deadline, not a GitHub job timeout and no UBSan undefined-behavior trace was reported. The test's child should call C.GC_FREE on a stack pointer under -gc boehm_leak; parent polls child.is_alive() with redirected pipes and kills after deadline. Need diagnose deadlock vs blocked stdio vs GC error-dialog vs slow runtime/invalid-exit-status handling: capture child PID, ps/wait channel/backtrace, stderr/stdout nonblocking, and exact child exit/exit status in a bounded repeated run before altering code or timeouts. Do not blindly lengthen deadline, skip test or dismiss external GC traces. Fixture unchanged on current master 44bb; no matching corrected fixed-descendant native execution. Status investigating, native V unavailable locally.

[!NOTE]
You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Dominant language
V
Stars
38.1k
Forks
2.3k
Avg merge
1d 1h
Merged PRs (30d)
682

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vlang/v

All issues in vlang/v

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.