boltZharp Docs
bug_reportSDKs

MiniDump

For C and C++ apps that already write crash dumps with Crashpad or Breakpad (Electron too): point the upload URL at Zharp, upload your debug files, and every crash reads as functions, files and lines.

There is no SDK to install. A minidump is a snapshot of the crashed process — its threads, registers and loaded modules — and holds no function names. Zharp walks the stack with the symbol files your build uploads, groups each crash into an issue and alerts you like any other error.

Starting fresh? The Native SDK sets up Crashpad for you and adds handled errors, breadcrumbs, sessions and spans.

Install

Create an app from the MiniDump tile under Add app. Its setup page shows the upload URL with the app's key filled in:

https://api.zharp.io/api/v1/minidump?key=zpk_…

The key goes in the URL because crash handlers can't add headers. It can only send. Tools that can set headers may send Authorization: Bearer zpk_… instead.

Initialize

Crashpad

Give the handler the URL where you start it. Crashpad keeps reports in its database and retries until they are sent.

#include "client/crashpad_client.h"

std::map<std::string, std::string> annotations = {
    {"prod", "shop-desktop"},             // the service
    {"ver", "1.4.2"},                     // the release
    {"zharp.environment", "production"},
};
std::vector<std::string> arguments;

crashpad::CrashpadClient client;
client.StartHandler(handler,             // path to crashpad_handler
                    database,            // where reports wait to be sent
                    metrics,
                    "https://api.zharp.io/api/v1/minidump?key=zpk_…",
                    annotations, arguments,
                    /* restartable */ true, /* asynchronous_start */ false);

Breakpad

Breakpad writes the dump inside the crashing app. Send it on the next launch with Breakpad's uploader:

# Breakpad writes the dump in the app; send it on the next launch:
minidump_upload -p shop-desktop -v 1.4.2 crash.dmp \
  "https://api.zharp.io/api/v1/minidump?key=zpk_…"

or from your own code:

#include "common/linux/http_upload.h"

std::map<std::string, std::string> fields = {{"prod", "shop-desktop"}, {"ver", "1.4.2"}};
std::map<std::string, std::string> files = {{"upload_file_minidump", dump_path}};
std::string response, error;
long status = 0;
google_breakpad::HTTPUpload::SendRequest(
    "https://api.zharp.io/api/v1/minidump?key=zpk_…",
    fields, files, /* proxy */ "", /* proxy_user_pwd */ "", /* ca_certificate_file */ "",
    &response, &status, &error);

Electron

Electron's crash reporter sends the same format, so its native crashes work with the same URL:

const { crashReporter } = require("electron");

crashReporter.start({
  submitURL: "https://api.zharp.io/api/v1/minidump?key=zpk_…",
  extra: { "zharp.environment": "production" },
});

Check it works

Send any dump by hand. The reply is the crash's ID.

curl -F upload_file_minidump=@crash.dmp -F prod=shop-desktop -F ver=1.4.2 \
  "https://api.zharp.io/api/v1/minidump?key=zpk_…"

Annotations

Every form field besides the dump is kept on the crash. These names are read as Zharp's own fields:

FieldBecomes
ver, _version, zharp.releaseThe release, so you see which one broke
prod, _productNameThe service, when sending with a workspace key
zharp.environmentThe environment
zharp.user.id, zharp.user.email, zharp.user.nameWho it happened to
zharp.session_id, zharp.device_idThe session and device

Errors

Each dump is one crash, counted once like any other error. The issue shows the crash reason (SIGSEGV, EXCEPTION_ACCESS_VIOLATION_READ, EXC_BAD_ACCESS), the address, and the crashed thread:

SIGSEGV
#0  Cart::total() const (src/cart.cpp:5) [shop +0x2f50]
#1  Shop::checkout(Order&) (src/shop.cpp:4) [shop +0x2fc3]
#2  main (src/main.cpp:26) [shop +0x2d29]
#3  libc.so.6 +0x27249
  • Crashes group by function names, so the same bug in two builds is one issue once both have symbols.
  • System libraries (ntdll.dll, kernel32.dll, libc.so.6, libsystem_*) are named from the module list and never count as your code; you don't upload symbols for them.
  • Under Advanced on the issue: the OS and CPU, the other threads and the loaded modules, and Download minidump to open the dump in WinDbg, Visual Studio or lldb.
info
Dumps are kept 30 days
A minidump holds the crashed process's stack memory, which can include user data. Zharp keeps each dump for 30 days, then deletes it; the crash and its stack stay for your plan's retention. Full-memory dumps (over 50 MB) are refused.

Readable stack traces

Release builds are stripped, so a dump only gives addresses: shop +0x2f50. In CI, after each release build, upload the build's debug files:

npx @zharp/cli debug-files upload build/ --app <application id>
  • The CLI finds the PDBs (Windows), ELF files with debug info (Linux) and dSYMs (macOS) under the folder, turns each into a Breakpad symbol file with Mozilla's dump_syms, and uploads it under the module's debug ID — the ID the dump records. .sym files you already have are uploaded as they are.
  • Symbols that arrive after a crash still count: the dump is walked again when you open the issue.
  • The upload needs ZHARP_AUTH_TOKEN: a workspace API key with the Build uploads scope, as a CI secret. See The upload key.

With --include-sources, the source files the symbols name are uploaded too, and each frame shows the code that ran in that build:

npx @zharp/cli debug-files upload build/ --app <application id> --include-sources

When some of your modules have no symbols, the issue says which ones. All flags are on the Zharp CLI page.

Troubleshooting

  • 401 from the upload URL: the key is missing, wrong or rolled. Copy it again from the app's setup page.
  • 413: the dump is over 50 MB, usually a full-memory dump. Use Crashpad's default (stack memory only), or MiniDumpNormal on Windows.
  • Frames still read as addresses: the debug files were built from another build. Upload the ones from the exact binaries you shipped; the issue lists the modules and debug IDs it is waiting for.