Repository navigation
Studio: clear dumpability before every crash the RAG probe child takes - #10547
Merged
Merged
Conversation
tests/test_deliberate_crashes_suppress_cores.py fails on main. The RAG test's crashing child gained a Windows abort() arm, and that arm sits above the PR_SET_DUMPABLE clear, so one of the two crash paths is unsuppressed. The guard reads the snippet statically and is right to flag it. Move the clear above the platform test instead of duplicating it into each arm: the prctl call is already wrapped in try/except and is a no-op off Linux, so it is safe ahead of the branch. The Linux path is unchanged in behaviour, the Windows path is now covered too. studio/backend/tests/test_rag_embeddings.py: 52 passed tests/test_deliberate_crashes_suppress_cores.py: 73 passed
|
You have reached your Codex usage limits for security reviews. Please try again later. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Sep 9, 2026
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.
tests/test_deliberate_crashes_suppress_cores.py::test_every_deliberate_crash_suppresses_its_corefails on plainorigin/main(reproduced at 56b8a6e, 1 failed / 72 passed):What happened
#10530 gave the RAG probe's crashing child a Windows arm, because ctypes turns the null read into an ordinary OSError there and
abort()is the shape a dying ROCm library actually has. That arm is correct, but it was placed above thePR_SET_DUMPABLEclear, so the child now has two crash paths and only the second one is suppressed. The guard parses the snippet and reports exactly that.The fix
Move the clear above the platform test rather than repeating it inside each arm. The call is already wrapped in
try/exceptand is a no-op off Linux, so it is safe ahead of the branch, and every crash the child can take is now preceded by it. Linux behaviour is unchanged.Checks
studio/backend/tests/test_rag_embeddings.py: 52 passedtests/test_deliberate_crashes_suppress_cores.py: 73 passed