Skip to content

CrashCatch v1.1.0 – Now with Linux Support

Choose a tag to compare

@keithpotz keithpotz released this 04 Apr 23:34
· 60 commits to main since this release

[1.1.0] – 2025-04-04

Added

  • 🐧 Linux support with POSIX signal handling
  • Signal-based crash capture for SIGSEGV, SIGABRT, and SIGFPE
  • Executable path resolution for Linux using /proc/self/exe
  • Stack traces using backtrace() and backtrace_symbols()

Changed

  • Refactored header-only implementation to be cross-platform
  • Improved crash log structure and formatting on Linux
  • Now detects and logs platform, architecture, and executable location

✅ Bug Fix: Linux Compatibility Crash (#1)

Resolved a Linux-specific compilation error reported in #1, which occurred due to the use of Windows.h-specific types and headers on non-Windows systems.

🔧 What changed:

  • CrashCatch now conditionally includes only platform-appropriate headers (e.g., Windows.h for Windows, signal.h and execinfo.h for Linux).
  • Windows-specific functionality (e.g., MiniDumpWriteDump, MessageBoxA) is fully gated behind #ifdef blocks.
  • Linux support now builds cleanly on GCC/Clang without needing to modify the source.

💡 Impact:

CrashCatch v1.1.0 is now cross-platform out of the box and builds cleanly on Linux with no manual patching required.


Fixed

  • Crash log generation on Linux wasn't triggered for certain signals
  • Windows-only includes and defines now guarded by platform macros

Zip File

The zip file has the CMakeLists.txt and CrashCatch.hpp files included