1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-21 22:21:02 +00:00

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.
This commit is contained in:
scrawl 2016-02-12 23:40:50 +01:00
parent 48ac0bef3e
commit d1375cd3a3

View File

@ -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);