From 2323a55517904d5ee532719645e1ec84a2ee33c3 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 9 Mar 2024 23:52:06 +0200 Subject: [PATCH] Kernel: Debug lock is locked while dumping stack trace --- kernel/kernel/Debug.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/kernel/Debug.cpp b/kernel/kernel/Debug.cpp index c85d4e05c3..e096059438 100644 --- a/kernel/kernel/Debug.cpp +++ b/kernel/kernel/Debug.cpp @@ -25,6 +25,8 @@ namespace Debug uintptr_t rip; }; + SpinLockGuard _(s_debug_lock); + stackframe* frame = (stackframe*)__builtin_frame_address(0); if (!frame) {