mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Kernel: Don't dump regions twice when crashing due to bad access
For whatever reason we were dumping regions when first handling the page fault, and then again when tearing down the process.
This commit is contained in:
@@ -475,7 +475,6 @@ PageFaultResponse MemoryManager::handle_page_fault(const PageFault& fault)
|
||||
dbgln_if(PAGE_FAULT_DEBUG, "MM: CPU[{}] handle_page_fault({:#04x}) at {}", Processor::id(), fault.code(), fault.vaddr());
|
||||
auto* region = find_region_from_vaddr(fault.vaddr());
|
||||
if (!region) {
|
||||
Process::current()->space().dump_regions();
|
||||
return PageFaultResponse::ShouldCrash;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user