backtrace_symbols_fd(bt, bt_size, STDERR_FILENO);
#endif
+ /* Avoid "not used" warning */
+ len++;
+
exit(EXIT_FAILURE);
}
#else /* defined(SA_SIGINFO) */
* an alternative approach.
*/
/** @FIXME this probably needs some better ifdefs. Please report any compilation problems */
+/** @FIXME This section needs revising */
-#if defined(SIGBUS) && defined(SA_SIGINFO)
-static void sigbus_handler_cb(int UNUSED(signum), siginfo_t *info, void *UNUSED(context))
-{
- /*
- * @FIXME Design and implement a POSIX-acceptable approach,
- * after first documenting the sitations where SIGBUS occurs.
- * See https://github.com/BestImageViewer/geeqie/issues/1052 for discussion
- */
-
- DEBUG_1("SIGBUS %p NOT HANDLED", info->si_addr);
- exit(EXIT_FAILURE);
-}
-#endif
+//#if defined(SIGBUS) && defined(SA_SIGINFO)
+//static void sigbus_handler_cb(int UNUSED(signum), siginfo_t *info, void *UNUSED(context))
+//{
+ ///*
+ //* @FIXME Design and implement a POSIX-acceptable approach,
+ //* after first documenting the sitations where SIGBUS occurs.
+ //* See https://github.com/BestImageViewer/geeqie/issues/1052 for discussion
+ //*/
+
+ //DEBUG_1("SIGBUS %p NOT HANDLED", info->si_addr);
+ //exit(EXIT_FAILURE);
+//}
+//#endif
//static void setup_sigbus_handler(void)
//{
//#endif
//}
+#ifndef HAVE_DEVELOPER
static void setup_sig_handler()
{
struct sigaction sigsegv_action;
sigaction(SIGIOT, &sigsegv_action, nullptr);
sigaction(SIGSEGV, &sigsegv_action, nullptr);
}
+#endif
static void set_theme_bg_color()
{