rCore-Tutorial-v3 icon indicating copy to clipboard operation
rCore-Tutorial-v3 copied to clipboard

stack backtrace

Open Godones opened this issue 2 years ago • 1 comments

  1. Update the stack backtrace method
  2. Turn off the -C force-frame-pointers flag, which may cause unnecessary overhead.
  3. The new method should be able to run normally on the alloc-enabled branch

A simple test looks like this:

[kernel] Panicked at src/mm/page_table.rs:178 translated_str: not implemented
---START BACKTRACE---
0x80010a64 (+638) backtrace
0x80010914 (+188) rust_begin_unwind
0x80021624 (+44) core::panicking::panic_fmt
0x8000fb1c (+364) os::mm::page_table::translated_str
0x800072ee (+44) os::syscall::process::sys_exec
0x800067f4 (+456) trap_handler
---END   BACKTRACE---

Godones avatar Feb 09 '23 14:02 Godones

Very Good! @Godones

chyyuu avatar Feb 15 '23 15:02 chyyuu