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

This commit is contained in:
DL6ER
2017-03-31 19:39:11 +02:00
parent 3c8c75a7a5
commit 2b34562da1
+1 -9
View File
@@ -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();
}