mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-24 22:43:47 +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:
parent
48ac0bef3e
commit
d1375cd3a3
@ -149,7 +149,7 @@ static void gdb_info(pid_t pid)
|
|||||||
"info registers\n"
|
"info registers\n"
|
||||||
"shell echo \"\"\n"
|
"shell echo \"\"\n"
|
||||||
"shell echo \"* Backtrace\"\n"
|
"shell echo \"* Backtrace\"\n"
|
||||||
"thread apply all backtrace full\n"
|
"thread apply all backtrace full 1000\n"
|
||||||
"detach\n"
|
"detach\n"
|
||||||
"quit\n", pid);
|
"quit\n", pid);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user