Repository navigation
build: pin fbuild 2.5.33 (fix exit -9 kills of ESP32 library compiles) - #4681
Conversation
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).
|
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
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe Changesfbuild dependency update
Priority: ⬆️ High Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to 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 SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 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 |
Closes #4675.
Problem
Since fbuild 2.5.30, ESP32 board builds intermittently failed with:
This happened on
masteras 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 byblock_in_placejoins the blocking pool and exits after its idle keep-alive. 2.5.30 made library compiles concurrent (fbuild#1561/#1563), so long TUs likefl.fxwere regularly killed.Evidence, from the diagnostics in #4679:
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
bash compile esp32c3 --examples Blinksucceeds on 2.5.33.Summary by CodeRabbit