mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
Kernel: Add debug logging to learn more about unexpected NP faults
This commit is contained in:
parent
5560d8a25d
commit
9bb45ab3a6
Notes:
sideshowbarker
2024-07-17 14:27:07 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9bb45ab3a6
@ -382,6 +382,12 @@ PageFaultResponse Region::handle_fault(PageFault const& fault)
|
||||
return PageFaultResponse::Continue;
|
||||
}
|
||||
dbgln("BUG! Unexpected NP fault at {}", fault.vaddr());
|
||||
dbgln(" - Physical page slot pointer: {:p}", page_slot.ptr());
|
||||
if (page_slot) {
|
||||
dbgln(" - Physical page: {}", page_slot->paddr());
|
||||
dbgln(" - Lazy committed: {}", page_slot->is_lazy_committed_page());
|
||||
dbgln(" - Shared zero: {}", page_slot->is_shared_zero_page());
|
||||
}
|
||||
return PageFaultResponse::ShouldCrash;
|
||||
}
|
||||
VERIFY(fault.type() == PageFault::Type::ProtectionViolation);
|
||||
|
Loading…
Reference in New Issue
Block a user