Skip to content

client-generated stacktrace ignored when using SENTRY_CRASH_REPORTING_MODE_NATIVE_WITH_MINIDUMP #1844

Description

@wheybags

Description

When using the native backend, and SENTRY_CRASH_REPORTING_MODE_NATIVE_WITH_MINIDUMP, the SDK should generate a stack trace locally, generate a minidump, and upload both. The purpose of this (I presume) is that you can get better stack traces locally because you always have all the DLLs, even if you don't have their PDBs.

The issue is that when you upload both a stack trace and a minidump, the trace is ignored and a new (less accurate) one is generated serverside. I was able to work around this by patching the SDK to upload minidumps as generic attachments instead of the dedicated minidump type, but that's a hack and it should probably be fixed serverside.

When does the problem happen

  • During build
  • During run-time
  • When capturing a hard crash

Environment

  • OS: Windows 11 64-bit
  • Compiler: MSVC
  • CMake version and config: SENTRY_BACKEND=native

Steps To Reproduce

Here's the example project I used for testing / to make the above traces: https://github.com/wheybags/sentry_stack_bug

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions