Skip to content

futex_restart_clone: have the child publish its pid - #4141

Merged
rocallahan merged 1 commit into
rr-debugger:masterfrom
ChronitonAI:futex-restart-clone-child-pid
Oct 29, 2026
Merged

rocallahan merged 1 commit into
rr-debugger:masterfrom
ChronitonAI:futex-restart-clone-child-pid

Conversation

@Keno

@Keno Keno commented Oct 28, 2026

Copy link
Copy Markdown
Member

The parent's SIGUSR1 handler can run before its clone() has stored child_pid, and then kill(0, SIGKILL) kills the whole process group, which includes rr while recording. Have the child, not the parent, store its pid before it sends the signal, and access the variables the parent and the child share with atomics.

The parent's SIGUSR1 handler can run before its clone() has stored
child_pid, and then kill(0, SIGKILL) kills the whole process group,
which includes rr while recording. Have the child, not the parent,
store its pid before it sends the signal, and access the variables
the parent and the child share with atomics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rocallahan
rocallahan merged commit ca20dcb into rr-debugger:master Oct 29, 2026
4 of 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