Skip to content

build: pin fbuild 2.5.33 (fix exit -9 kills of ESP32 library compiles) - #4681

Merged
zackees merged 1 commit into
masterfrom
build/fbuild-2.5.33-pdeathsig
Oct 3, 2026
Merged

zackees merged 1 commit into
masterfrom
build/fbuild-2.5.33-pdeathsig

Conversation

@zackees

@zackees zackees commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Closes #4675.

Problem

Since fbuild 2.5.30, ESP32 board builds intermittently failed with:

failed to compile .../fl/build/fl.fx+.cpp in library FastLED (exit code -9):
(the compiler wrote nothing to stderr)

This happened on master as well as on PRs.

Root cause (in fbuild)

On Linux, fbuild arms PR_SET_PDEATHSIG(SIGKILL) in every contained child. The kernel fires that when the thread that forked the child exits, not the process. fbuild forked library compiles from Tokio threads that can retire mid-build: a worker demoted by block_in_place joins the blocking pool and exits after its idle keep-alive. 2.5.30 made library compiles concurrent (fbuild#1561/#1563), so long TUs like fl.fx were regularly killed.

Evidence, from the diagnostics in #4679:

  • The kernel logged no OOM kills, and 14 GB was free on the runner.
  • One daemon PID ran for the whole job, with no restart or self-eviction.
  • The library TUs bypass zccache: library_compiler → run_command → spawn_tokio_contained.

Fix

fbuild 2.5.33 (FastLED/fbuild#1631) forks contained children on a dedicated thread that lives as long as the process. Its regression test forks a contained child from a thread that exits immediately: the child got unix_wait_status(9) before the fix and exits 0 after.

This PR only moves the pin from 2.5.32 to 2.5.33. The only other change in 2.5.33 is the version bump (FastLED/fbuild#1632), so nothing else is lost.

Validation

  • Locally: bash compile esp32c3 --examples Blink succeeds on 2.5.33.
  • CI: the PR is labelled with ESP32 board labels, so the boards that were failing build all examples here.

Summary by CodeRabbit

  • Chores
    • Updated build tooling to improve the reliability of long-running Linux build tasks, particularly in continuous integration.
    • This change affects build processes only; it does not change application features or behavior visible to end users. No other user-facing changes are included in this release.

fbuild 2.5.30-2.5.32 forked contained compilers from arbitrary Tokio
threads with PR_SET_PDEATHSIG(SIGKILL), which the kernel fires when the
forking *thread* exits. Threads demoted by block_in_place retire from the
blocking pool mid-build, so long library TUs (fl.fx) died with exit -9 and
empty stderr on ESP32 CI. 2.5.33 forks them on a process-lifetime thread
(FastLED/fbuild#1628, fixed in FastLED/fbuild#1631).
@zackees zackees added the ci-platform:esp* Select FastLED board CI cells label Oct 3, 2026
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Oct 3, 2026
@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: FastLED/FastLED/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2abed972-f391-430d-ab6e-7b7829048394
📥 Commits

Reviewing files that changed from the base of the PR and between 625cd70 and b2d920b.

📒 Files selected for processing (1)
  • pyproject.toml

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The fbuild pin changes from 2.5.32 to 2.5.33. Dependency-history comments describe the process-lifetime fork thread and its effect on Linux owner-death signals during long library compilation.

Changes

fbuild dependency update

Layer / File(s) Summary
Update fbuild pin
pyproject.toml
The dependency-history comments describe the 2.5.33 process-lifetime fork thread. The pinned fbuild requirement changes to 2.5.33.

Priority: ⬆️ High

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to b2d92

The regular board-build path uses fbuild 2.5.33, and no concrete regression is identified. The reported fix for intermittent compile failures could not be independently confirmed.

Architecture Summary

Architecture risk: 🔵 Low · up to b2d92

The change affects 1 system.

Changed systems: pyproject.toml

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — pyproject.toml (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in pyproject.toml: The dependency-history comments replace the 2.5.32 pin rationale with a 2.5.33 note describing the process-lifetime fork thread and its effect on Linux owner-death signals during long library compilation.
  • observed — Modified behavior in pyproject.toml: The pinned fbuild requirement changes from 2.5.32 to 2.5.33.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the fbuild 2.5.33 pin and its intended fix for ESP32 library compile failures.
Linked Issues check ✅ Passed Issue #4675 reports intermittent SIGKILLs during ESP32 library compilation. The PR pins fbuild to 2.5.33, whose described change forks contained children on a process-lifetime thread and prevents th…
Out of Scope Changes check ✅ Passed The only change is the fbuild version pin and its history comments in pyproject.toml. Both relate to resolving issue #4675; no unrelated changes appear in the whole-PR diff.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zackees
zackees merged commit b67a442 into master Oct 3, 2026
221 of 238 checks passed
@zackees
zackees deleted the build/fbuild-2.5.33-pdeathsig branch November 5, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-platform:esp* Select FastLED board CI cells

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ci: ESP32 builds SIGKILLed (exit -9) compiling unity TUs — not OOM; correlates with fbuild 2.5.30

1 participant