8000 Adjust how we deal with pending signals when stopping threads on Linux · Issue #124 · rust-minidump/minidump-writer · GitHub
[go: up one dir, main page]

Skip to content

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

Closed

Description

@gabrielesvelto

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0