Skip to content

Handle a killed task's exit before other tasks' events - #4129

Merged
rocallahan merged 1 commit into
rr-debugger:masterfrom
ChronitonAI:killed-task-exit-first
Oct 20, 2026
Merged

rocallahan merged 1 commit into
rr-debugger:masterfrom
ChronitonAI:killed-task-exit-first

Conversation

@Keno

@Keno Keno commented Oct 20, 2026

Copy link
Copy Markdown
Member

[Encountered/debugged/test/patch by AI]

When a SIGKILL took the running task out of a stop before rr read it, rr switched to other tasks (since 024064f) and recorded their exits before the killed task's last execution, so replay could diverge. Wait for the killed task's PTRACE_EVENT_EXIT stop and handle it first, except where that wait could deadlock.

Test: killed_task_exit_order

When a SIGKILL took the running task out of a stop before rr read it,
rr switched to other tasks (since 024064f) and recorded their exits
before the killed task's last execution, so replay could diverge. Wait
for the killed task's PTRACE_EVENT_EXIT stop and handle it first,
except where that wait could deadlock.

Test: killed_task_exit_order

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rocallahan
rocallahan merged commit 76ca3ca into rr-debugger:master Oct 20, 2026
5 checks passed
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.

2 participants