8000 Don't fail when `ptrace::detach()` returns an `ESRCH` error · Issue #29 · rust-minidump/minidump-writer · GitHub
[go: up one dir, main page]

Skip to content

Don't fail when ptrace::detach() returns an ESRCH error #29

Closed

Description

@gabrielesvelto

If one of the threads we've suspended disappears while we're writing the minidump the call to ptrace::detach() in PtraceDumper::resume_thread() will fail setting errno to ESRCH. This is a completely benign error which we can ignore since we simply don't care about the state of the process/thread after we're done with it. The same applies to pretty much any other use of pthread::detach(), we could ignore this error for all of them.

Activity

  1. added a commit that references this issue on Jan 5, 2023
    55392e9
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