mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Kernel: Add optional userspace backtrace to Process::crash
This is very useful for debugging the initial userspace applications, as the CrashReporter is not yet running.
This commit is contained in:
parent
3611427ce2
commit
3295137224
Notes:
sideshowbarker
2024-07-17 07:19:27 +09:00
Author: https://github.com/FireFox317
Commit: 3295137224
Pull-request: https://github.com/SerenityOS/serenity/pull/17249
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/nico ✅
Reviewed-by: https://github.com/supercomputer7
6 changed files with 23 additions and 6 deletions
|
@ -86,7 +86,7 @@ void Process::sys$exit_thread(Userspace<void*> exit_value, Userspace<void*> stac
|
|||
auto result = require_promise(Pledge::thread);
|
||||
if (result.is_error()) {
|
||||
// Crash now, as we will never reach back to the syscall handler.
|
||||
crash(SIGABRT, 0);
|
||||
crash(SIGABRT, {});
|
||||
}
|
||||
|
||||
if (this->thread_count() == 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue