mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user