mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
Kernel: Always dump_backtrace() on process crash.
This commit is contained in:
parent
0ba4ceb2cd
commit
4e88872c8e
2 changed files with 2 additions and 1 deletions
|
@ -727,6 +727,8 @@ void Process::crash()
|
||||||
ASSERT_INTERRUPTS_DISABLED();
|
ASSERT_INTERRUPTS_DISABLED();
|
||||||
ASSERT(!is_dead());
|
ASSERT(!is_dead());
|
||||||
|
|
||||||
|
dump_backtrace();
|
||||||
|
|
||||||
m_termination_signal = SIGSEGV;
|
m_termination_signal = SIGSEGV;
|
||||||
dump_regions();
|
dump_regions();
|
||||||
ASSERT(is_ring3());
|
ASSERT(is_ring3());
|
||||||
|
|
|
@ -281,7 +281,6 @@ 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();
|
|
||||||
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