Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust how we deal with pending signals when stopping threads on Linux #124

Closed
gabrielesvelto opened this issue Jun 5, 2024 · 0 comments · Fixed by #131
Closed

Adjust how we deal with pending signals when stopping threads on Linux #124

gabrielesvelto opened this issue Jun 5, 2024 · 0 comments · Fixed by #131

Comments

@gabrielesvelto
Copy link
Contributor

I was looking through this patch in Google Breakpad, and it changes how they wait for a thread to be stopped after attaching to it via ptrace(). In short, there might be a race between the SIGSTOP signal sent when suspending a thread and what we get in the following waitpid(). The different signals that might fall between the two syscalls can get lost, and the thread won't behave correctly once resumed, as it will eventually be stopped again.

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 a pull request may close this issue.

1 participant