diff --git a/kernel/src/mm/stack.c b/kernel/src/mm/stack.c index fd4be11..a13d4ef 100644 --- a/kernel/src/mm/stack.c +++ b/kernel/src/mm/stack.c @@ -34,7 +34,12 @@ void stack_trace_call_stack(uint64_t rbp) { process_T* process = scheduler_get_current_process(); symbol_T* symbol = symbol_resolve_function_from_rip(process->executable->symbols, process->executable->num_symbols, rip); - if (symbol != NULL && !string_compare(symbol->name, "_start")) { + if (symbol == NULL) { + log(LOG_NONE, " 0x%x -> ", rip); + return; + } + + if (!string_compare(symbol->name, "_start")) { stack_trace_call_stack(((uint64_t*)rbp)[0]); }