Crashcatcher: limit backtrace to a sensible number of stack frames

When a stack overflow occurs, trying to print the whole stack would cause the process to hang indefinitely.
move
scrawl 9 years ago
parent 48ac0bef3e
commit d1375cd3a3

@ -149,7 +149,7 @@ static void gdb_info(pid_t pid)
"info registers\n"
"shell echo \"\"\n"
"shell echo \"* Backtrace\"\n"
"thread apply all backtrace full\n"
"thread apply all backtrace full 1000\n"
"detach\n"
"quit\n", pid);
fclose(f);

Loading…
Cancel
Save