Repository navigation
Add an unwind crashtest kind that panics straight in plex_run - #171
Merged
Merged
Conversation
PR #168 made the telemetry `Guard`'s Drop check `std::thread::panicking()` and return early, so a panic unwinding out of `plex_run` no longer tears the native crash backend down before the boundary abort. `panic` still exercises the extern "C" callback shape; `unwind` is the regression test for the Guard fix itself, panicking directly in `crash_on_purpose` so the unwind crosses `plex_run`'s own frame before aborting at its extern "C" boundary. Co-Authored-By: Claude Opus 5 <[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.
Summary
plxnative-crashtest=unwind, a newcrash_on_purpose()kind (rust-modules/src/dev.rs) that panics directly insidecrash_on_purposeitself, rather than inside anextern "C"callback likepanicdoes — so the unwind crossesplex_run's own frame before aborting at itsextern "C"boundary.Drop for Guard(rust-modules/src/telemetry/native.rs) now returns early whenstd::thread::panicking(), so the native telemetry backend stays armed through the unwind and the boundary abort should still produce a native SIGABRT envelope, instead of silently dropping it as it did before that fix.crash_on_purposedoc comment to listunwindalongside the existing kinds and to describe both non-signal kinds accurately (panic= callback shape likeff::read_cb;unwind= a panic escapingplex_run, the Guard regression path).docs/agent-reference.md, which was already stale (missingpanic), to match the full, current list includingunwind.Test plan
make check(host unit suite + lint) — passingCARGO_INCREMENTAL=0 cargo +nightly check --manifest-path rust-modules/Cargo.toml --lib --no-default-features— passingmake(ARM cross-build) — passingplxnative-crashtest=unwindshould be exercised on the TV to confirm the native SIGABRT envelope is produced (not run here; this PR only adds the trigger and updates docs)🤖 Generated with Claude Code