Repository navigation
fix(bridge): propagate signal-killed child as 128+sig (reld#123 Phase 0 / D6) - #134
Merged
Merged
Conversation
… 0 / D6) When a bridged linker (ld.lld, lld-link, ld64.lld) is killed by a signal, the bridge previously collapsed the failure to a bare exit 1. Propagate the signal as `128 + signal` and print a stderr line naming the engine and signal, so a crashed bridge is diagnosable (reld#123 D6). Co-Authored-By: Claude Code <[email protected]>
This was referenced Sep 17, 2026
zackees
added a commit
that referenced
this pull request
Sep 17, 2026
…23) (#156) Two Phase 0 checklist lines had shipped behavior but no evidence. `bridged_child_signal_is_reported`: PR #134 made a signal-killed bridge exit `128 + signal` with a diagnostic naming the engine, and nothing pinned it. The new test points RELD_BRIDGE_LINKER at a script that SIGSEGVs itself and asserts exit 139 plus the message. It skips where the host has no POSIX signals, asked through the platform facade rather than host cfg. `nix_runpath_on_every_route`: the NixOS RUNPATH tests only ever exercised the native engine, even though bridge.rs re-derives the same RUNPATH for routed links. All three now run with `--engine=reld` and `--engine=lld`, skipping the bridge leg only when no bridge linker is discoverable. Both legs run on this host, so the routed path is now covered. Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Implements the reld#123 D6 item: a bridged child's signal must be propagated.
When a bridged linker (
ld.lld,lld-link,ld64.lld) is killed by a signal (SIGSEGV, SIGABRT, …), the bridge previously collapsed the failure to a bareexit 1becauseExitStatus::code()isNonefor a signal termination. That hides the crash from the parent process.Change
run_bridge, whenExitStatus::signal()isSome(sig)(Unix), exit with128 + sigand printreld: <engine> bridge terminated by signal <sig>, so the crash is diagnosable and the exit status reflects the signal.Verification
cargo build -p reld-core— clean.cargo clippy -p reld-core --all-targets -- -D warnings— clean.cargo fmt --check— clean.🤖 Generated with Claude Code