commit | 5ece13ca9e32205d5052fa40a41980673cfd5040 | [log] [tgz] |
---|---|---|
author | Bruce Dawson <brucedawson@chromium.org> | Thu Feb 29 20:37:34 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Feb 29 20:37:34 2024 |
tree | c6f4efdea0716a2e5b43b15d6999f31b168fb61e | |
parent | c075e8bcc481284dfea04c7391d3d3ab80cf10c0 [diff] |
Improve intentional-browser-crash identifier If a user navigates to chrome://inducebrowsercrashforrealz then they will, not surprisingly, crash the browser process. This has recently been done a lot when testing the crash system on the ARM64 Windows version of Chrome. Unfortunately Google's crash system labels these crashes with content::HandleDebugURL which makes it not obvious that the crash was actually requested. And, it means that any actual crash in this function (unlikely) would be conflated with the intentional crashes. The fix is easy: move the crash to a separate function and tag it as NOINLINE. The same logic applies to HangCurrentThread so I tagged it as NOINLINE as well. HandleDebugURL has had at least twelve bugs filed against it over the years. Maybe this will prevent future ones. to confirm that this change fixes the call stack. Test: Manually crashed the browser (release build) and used the debugger Bug: 40839653 Change-Id: Icf7ebf2b91fb4323df1da63fc86289839a03955a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5334277 Reviewed-by: Ken Buchanan <kenrb@chromium.org> Commit-Queue: Bruce Dawson <brucedawson@chromium.org> Cr-Commit-Position: refs/heads/main@{#1267177}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.