mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibCoredump: Show frames from Loader.so if the crash occurs in it
Previously we rejected all entries from Loader.so even if the faulting address was located in it, i.e. the actual issue was with the dynamic loader. We no longer do that to make debugging Loader crashes easier.
This commit is contained in:
parent
bb4bb3c2f4
commit
3c3df95958
Notes:
sideshowbarker
2024-07-18 02:14:43 +09:00
Author: https://github.com/BertalanD
Commit: 3c3df95958
Pull-request: https://github.com/SerenityOS/serenity/pull/9378
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/itamar8910
Reviewed-by: https://github.com/linusg ✅
Reviewed-by: https://github.com/nico
Reviewed-by: https://github.com/timschumi
2 changed files with 8 additions and 2 deletions
|
@ -105,8 +105,13 @@ void Backtrace::add_entry(const Reader& coredump, FlatPtr ip)
|
|||
return;
|
||||
}
|
||||
auto object_name = ip_region->object_name();
|
||||
if (object_name == "Loader.so")
|
||||
return;
|
||||
// Only skip addresses coming from Loader.so if the faulting instruction is not in Loader.so
|
||||
if (object_name == "Loader.so") {
|
||||
if (m_skip_loader_so)
|
||||
return;
|
||||
} else {
|
||||
m_skip_loader_so = true;
|
||||
}
|
||||
// We need to find the first region for the object, just in case
|
||||
// the PT_LOAD header for the .text segment isn't the first one
|
||||
// in the object file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue