Repository navigation
fix(ci): prevent macOS ASan runner hangs - #3644
Conversation
Fail the streaming build with a propagated diagnostic if DLL mtime optimization stalls. Add timeout coverage, exercise the newly supported LPC AutoResearch boards, and document the intentional pre-fix regression hook. Follow-up to #3643.
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe streaming build and test paths now use bounded waits and preserve timeout output. macOS runners gain a shared phase-tracking watchdog, while debug builds use Xcode tools and revised linking. AutoResearch compilation coverage adds four LPC-family boards. ChangesStreaming execution coordination
Apple runner watchdog
Apple debug toolchain
AutoResearch board coverage
Estimated code review effort: 4 (Complex) | ~60 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Acceptance-run follow-up: the first matched-toolchain job failed during Meson's compiler sanity check, not in ASan and not by cancellation: https://github.com/FastLED/FastLED/actions/runs/29388323772/job/87266129472
Commit
Local validation after this correction: focused regressions 22 passed plus 2 subtests; full Python 519 passed / 39 skipped / 7 subtests; forced C++ reconfiguration/build/execution 350/350; Python and Meson reviews clean. The replacement macOS job is now the acceptance run. The issue remains open and no merge will occur until it is green. |
Follow-up to #3643. That PR fixed compile/run overlap and
NO_PARALLELhandling, but its macOS 26 validation still hung after compilation completed. This PR contains bounded diagnostics and the matched-toolchain fix for the remaining Apple ASan failure.Root cause evidence
Diagnostic run: https://github.com/FastLED/FastLED/actions/runs/29385930873/job/87259086238
Compilation completed and 267 artifacts were collected. Ten runners then hit the bounded timeout without emitting even the first async-signal-safe
startupmarker. The stall is beforemain(), during sanitizer runtime initialization.This exactly matches LLVM #200447: llvm/llvm-project#200447
On macOS 26.4, older ASan runtimes recursively allocate while inspecting dyld's shared cache and deadlock during initialization. Apple shipped the fix in Xcode 26.4+; Xcode 26.5 is confirmed to resolve the minimal repro.
GitHub's current
macos-26image uses macOS 26.4 and Xcode 26.5 by default, but FastLED's debug build was compiled and linked through clang-tool-chain with its bundled Clang 19 sanitizer runtime.Superseded runtime-only attempt
Commit
573a05d93atried to compile with clang-tool-chain Clang 19 while selecting Xcode's Clang 21 resource directory only at link time. The acceptance run failed immediately withundefined symbol: __asan_version_mismatch_check_v8: https://github.com/FastLED/FastLED/actions/runs/29387594533/job/87264018034That proves the compiler instrumentation and sanitizer runtime must be selected as one ABI-compatible toolchain.
Root fix
On Apple debug builds only:
clang,clang++, andarfrom the selected Xcode viaxcrun;clang-tool-chain-libdeploy, which could otherwise copy the bundled compiler-rt beside an Xcode-linked binary;Apple quick/release builds retain clang-tool-chain and LLD. Linux and Windows are unchanged. Complete ASan instrumentation (including globals), UBSan, debug symbols, and
macos-latestremain enabled.Diagnostics and containment
SIGALRMpath async-signal-safe (write(2)+_exit(2)only);SIGALRMcancellation race.Existing bounded optimizer wait
CompileOnlyResult;Validation
Issue #3642 remains open until the macOS unit workflow passes on this PR, the PR is merged, and both macOS unit and example workflows pass on current
masterwithout orphan runner processes.Summary by CodeRabbit