Commit graph

5 commits

Author SHA1 Message Date
Ken Sedgwick
7152ab18b5
disable backtrace capture under valgrind to avoid false positives
Valgrind generates false positives regarding the backtrace library.
Use a no-op wrapper instead of the backtrace code when running under
valgrind.
2025-12-10 11:37:21 -08:00
Ken Sedgwick
9813fca3aa Add --disable-exception-backtrace configure option 2024-12-05 16:19:24 -06:00
Ken Sedgwick
5a546c1e1a Use libunwind for stack unwinding
The backtrace() interface is not available on Alpine. ([#245])
2024-10-28 13:41:14 -05:00
Vasil Dimov
f32426de57 Avoid program_invocation_name which is available only on Linux
`program_invocation_name` is defined by the system headers only on
Linux, or at least it is not available on FreeBSD.

Introduce own global variable that contains the program name. If
it is unset then use `getprogname()` or `program_invocation_name`.

Co-authored-by: Ken Sedgwick <ken@bonsai.com>
2024-10-28 12:12:15 -05:00
Ken Sedgwick
0509c1326e Add Util::BacktraceException to capture and display backtraces 2024-08-19 15:04:30 -07:00