8000 Minidump-Writer won't work in an Android Isolated Process · Issue #166 · rust-minidump/minidump-writer · GitHub
[go: up one dir, main page]

Skip to content

Minidump-Writer won't work in an Android Isolated Process #166

Open

Description

@marti4d

See Firefox bug 1710940 for full details, but basically if the process that crashes is an Android Isolated Process, it has its own ephemeral UID and SELinux context that prevents external processes from using ptrace() on it or reading its /proc/<pid> files unless the external process is also in that same UID and SELinux context.

That's all a very fancy way of saying that a crashed process can basically only be debugged by itself or a child process.

Since Firefox runs minidump-writer in a separate privileged process, minidump-writer is unable to dump the crashed process.

To fix this, we can add infrastructure to minidump-writer to allow it to send requests for ptrace() and IO to /proc/<pid> to a small "dummy" child process that is forked from the crashed process and get the child to act on its behalf.

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