Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a1c451bcd17c4b6602737af25c8f2964c415db8a
https://github.com/WebKit/WebKit/commit/a1c451bcd17c4b6602737af25c8f2964c415db8a
Author: Carlos Alberto Lopez Perez <[email protected]>
Date: 2026-05-20 (Wed, 20 May 2026)
Changed paths:
M Tools/Scripts/webkitpy/port/linux_get_crash_log.py
M Tools/Scripts/webkitpy/port/linux_get_crash_log_unittest.py
Log Message:
-----------
[Tools] linux_get_crash_log: add a simplified backtrace report.
https://bugs.webkit.org/show_bug.cgi?id=315195
Reviewed by Fujii Hironori.
The new gdb full backtrace added in 313530@main is too verbose
and a bit hard to read. However, this extra info can be useful.
So to support a quick overview, this patch adds a simplified
backtrace report at the top just for the thread that crashed.
This also pass now -ascending to GDB, so the thread that crashes
appears first and is not needed to scroll to the bottom to see it.
* Tools/Scripts/webkitpy/port/linux_get_crash_log.py:
(GDBCrashLogGenerator._get_gdb_output):
(GDBCrashLogGenerator._generate_simplified_backtrace):
(GDBCrashLogGenerator.generate_crash_log):
* Tools/Scripts/webkitpy/port/linux_get_crash_log_unittest.py:
(GetCoredumpPathWithCoredumpctlTest.test_falls_back_to_latest_only_when_unreliable_fallback_is_enabled):
(GenerateSimplifiedBacktraceTest):
(setUp):
(_assert_main_thread_crash_output):
(test_main_thread_crash_ascending_order):
(test_main_thread_crash_descending_order):
(test_worker_thread_crash_is_marked_as_not_main):
(test_thread_name_with_spaces_is_preserved):
(test_thread_10_is_not_treated_as_thread_1):
(test_no_thread_info_data):
(test_thread_info_data_without_matching_tid):
(test_thread_1_line_without_lwp_falls_back_to_bare_header):
(test_returns_none_when_no_relevant_lines_present):
(test_preamble_frame_before_thread_1_block_is_ignored):
Canonical link: https://commits.webkit.org/313631@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications