mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00:00
Kernel: Dump backtrace on user process page fault.
This commit is contained in:
parent
5dee5c325e
commit
89df887e1f
Notes:
sideshowbarker
2024-07-19 14:33:37 +09:00
Author: https://github.com/awesomekling
Commit: 89df887e1f
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
#include "IRQHandler.h"
|
#include "IRQHandler.h"
|
||||||
#include "PIC.h"
|
#include "PIC.h"
|
||||||
#include "Scheduler.h"
|
#include "Scheduler.h"
|
||||||
|
#include <Kernel/KSyms.h>
|
||||||
|
|
||||||
//#define PAGE_FAULT_DEBUG
|
//#define PAGE_FAULT_DEBUG
|
||||||
|
|
||||||
|
@ -280,6 +281,7 @@ void exception_14_handler(RegisterDumpWithExceptionCode& regs)
|
||||||
regs.exception_code & 2 ? "write" : "read",
|
regs.exception_code & 2 ? "write" : "read",
|
||||||
faultAddress);
|
faultAddress);
|
||||||
dump(regs);
|
dump(regs);
|
||||||
|
dump_backtrace(ksyms_ready);
|
||||||
current->process().crash();
|
current->process().crash();
|
||||||
} else if (response == PageFaultResponse::Continue) {
|
} else if (response == PageFaultResponse::Continue) {
|
||||||
#ifdef PAGE_FAULT_DEBUG
|
#ifdef PAGE_FAULT_DEBUG
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue