Skip to content

Studio: clear dumpability before every crash the RAG probe child takes - #10547

Merged
danielhanchen merged 1 commit into
mainfrom
ci-crash-core-guard
Sep 9, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-crash-core-guard

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

tests/test_deliberate_crashes_suppress_cores.py::test_every_deliberate_crash_suppresses_its_core fails on plain origin/main (reproduced at 56b8a6e, 1 failed / 72 passed):

assert not {PosixPath('studio/backend/tests/test_rag_embeddings.py'): ('a child script that crashes on purpose',)}

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 the PR_SET_DUMPABLE clear, 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/except and 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 passed
  • tests/test_deliberate_crashes_suppress_cores.py: 73 passed
  • Mutation: restoring the old ordering makes the guard fail again, so the test is actually load-bearing here.

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
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-08T20:09:12.436418Z 2f889a2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen
danielhanchen merged commit db7caac into main Sep 9, 2026
37 of 40 checks passed
@danielhanchen
danielhanchen deleted the ci-crash-core-guard branch September 9, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant