catchorg / catchorg/Catch2

Capture memory dump on unhandled / fatal exceptions.

Open
#2,415 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

**Description**
Consider moving this code [wer_report.cpp](https://github.com/Alan-Jowett/ebpf-for-windows/blob/issue991/tests/libs/util/wer_report.cpp) into catch2. Along with [Local Dump Collection](https://docs.microsoft.com/en-us/windows/win32/wer/collecting-user-mode-dumps) this will allow for automatically gathering triage dumps when fatal error occur in a test.

**Additional context**
Running catch2 tests under [OpenCppCoverage](https://github.com/OpenCppCoverage/OpenCppCoverage) results dumps not being captured via the normal means, such as [ProcDump](https://download.sysinternals.com/files/Procdump.zip). The only point where dumps can be captured is a via a top-level vectored exception handler. Dumps can be captured easily using the [WER APIs](https://docs.microsoft.com/en-us/windows/win32/wer/about-wer). I would prefer to move this code upstream so everyone benefits.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.