Closed Bug 1703248 Opened 5 years ago Closed 5 years ago

Print the exception subcode of EXCEPTION_STACK_BUFFER_OVERRUN crashes

Categories

(Toolkit :: Crash Reporting, enhancement)

Unspecified
Windows
enhancement

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: gsvelto, Assigned: gsvelto)

Details

Attachments

(1 file)

__fastfail() exceptions seem to generate STATUS_STACK_BUFFER_OVERRUN exceptions that also carry an additional parameter. The latter contains the actual FAST_FAIL subcode. For a CET failure this will be FAST_FAIL_CONTROL_INVALID_RETURN_ADDRESS for example. We should include this subcode in the minidump processor output.

We can modify Breakpad's processor handling of STATUS_STACK_BUFFER_OVERRUN to be more like how we handle STATUS_ACCESS_VIOLATION failures that print both the main exception code and the subcode.

Note: this bug tracks the changes that need to be done in mozilla-central. Once landed the changes should also be applied to Socorro's stackwalker. I will file an additional bug on GitHub to track that work.

Small correction, STATUS_STACK_BUFFER_OVERRUN exceptions might come with one or more additional parameters (I've found up to 3 by looking at a random set of crashes). However the FAST_FAIL subcode is always stored in the first additional parameter.

Summary: Add the exception subcode of EXCEPTION_STACK_BUFFER_OVERRUN crashes → Print the exception subcode of EXCEPTION_STACK_BUFFER_OVERRUN crashes

This is the crashes that are usually caused by a __fastfail() invocation

Assignee: nobody → gsvelto
Status: NEW → ASSIGNED
Attachment #9214351 - Attachment description: WIP: Bug 1703248 - Print the exception subcode of EXCEPTION_STACK_BUFFER_OVERRUN crashes → WIP: Bug 1703248 - Print the exception subcode of EXCEPTION_STACK_BUFFER_OVERRUN crashes r=KrisWright
Attachment #9214351 - Attachment description: WIP: Bug 1703248 - Print the exception subcode of EXCEPTION_STACK_BUFFER_OVERRUN crashes r=KrisWright → Bug 1703248 - Print the exception subcode of EXCEPTION_STACK_BUFFER_OVERRUN crashes r=KrisWright
Pushed by gsvelto@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eef92ede2109 Print the exception subcode of EXCEPTION_STACK_BUFFER_OVERRUN crashes r=KrisWright
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: