From 72cbcd8e98ff29fc3fd1f1d55dedd74d1e31f505 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 6 May 2019 21:48:48 +0200 Subject: Kernel: Dump backtrace on exit() syscall. This makes assertion failures a lot more pleasant to investigate. --- Kernel/Process.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Kernel/Process.cpp') diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 12ff2d78c7..c71dc14890 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -644,6 +644,8 @@ void Process::sys$exit(int status) kprintf("sys$exit: %s(%u) exit with status %d\n", name().characters(), pid(), status); #endif + dump_backtrace(ksyms_ready); + m_termination_status = status; m_termination_signal = 0; die(); -- cgit v1.2.3