Skip to content

Pass through diagnostic information for failed calls to IPC WriteDumpAsync #64069

Closed

Description

@kelltrick

When calling the diagnostics IPC command WriteDumpAsync any failure results in the code 0x80004005 aka E_FAIL. This makes it difficult to diagnose why createdump failed. Here is runtime function responsible for returning E_FAIL ds_rt_generate_core_dump (DiagnosticsDumpCommandId commandId, DiagnosticsGenerateCoreDumpCommandPayload *payload) for context.

My proposal is to return more meaningful error codes through the IPC channel for various common error conditions. I would like different error codes for:

  • Permission denied (reading process memory)
open(/proc/1/mem) FAILED 13 (Permission denied)
  • Out of disk space
  • Permission denied (writing the dump file)
  • Out of memory

Activity

  1. ghost added
    untriaged
    on Jan 20, 2022
  2. added this to the 7.0.0 milestone on Jan 20, 2022
  3. tommcdon commented on Jan 20, 2022

    @tommcdon
    Member
  4. added
    enhancement
    and removed
    untriaged
    on Jan 20, 2022
  5. self-assigned this
    on Jan 24, 2022
  6. ghost locked as resolved and limited conversation to collaborators on Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-Diagnostics-coreclrenhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions