From 34e749bc1591c5c00790b4b5f3bf4a94d24a6ca0 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Tue, 4 Aug 2020 23:58:24 +0100 Subject: [PATCH] src/Main/bootstrap.cxx: disable custom segfault handler on OpenBSD. --- src/Main/bootstrap.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx index 8039ef686..1a411f58b 100644 --- a/src/Main/bootstrap.cxx +++ b/src/Main/bootstrap.cxx @@ -269,8 +269,10 @@ int main ( int argc, char **argv ) #endif // if we're not using the normal crash-reported, install our -// custom segfault handler on Linux, in debug builds -#if !defined(SG_WINDOWS) && !defined(NDEBUG) +// custom segfault handler on Linux, in debug builds. +// NB On OpenBSD this seems to lose info about where the signal +// happened, so is disabled. +#if !defined(SG_WINDOWS) && !defined(NDEBUG) && !defined(__OpenBSD__) if (!flightgear::isSentryEnabled()) { signal(SIGSEGV, segfault_handler); }