From 2b34562da1108d411147c12bc1edb39896e4fb2c Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 31 Mar 2017 19:39:11 +0200 Subject: [PATCH] Don't go into debugger when catching SIGSEGV, because the address pointer will only point to the signal handler, effectively masking the origin of the problem --- signals.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/signals.c b/signals.c index 76f1a06c..bae926e1 100644 --- a/signals.c +++ b/signals.c @@ -55,15 +55,7 @@ static void SIGSEGV_handler(int sig, siginfo_t *si, void *unused) // then the addresses would only point to this signal handler logg("> Thank you for helping us to improve our FTL engine!"); - if(debug) - { - logg("> Debug mode detected - trying to automatically attach gdb..."); - char cmd[256]; - sprintf(cmd, "gdb \"pihole-FTL\" %d", getpid()); - logg_int("gdb call returned: ",system(cmd)); - } - - // Print message and return + // Print message and abort logg("FTL terminated!"); abort(); }