Closed Bug 1860767 Opened 2 years ago Closed 2 years ago

Don't call MOZ_ReportCrash for AutoEnterOOMUnsafeRegion

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox-esr115 --- fixed
firefox120 --- fixed
firefox121 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug)

Details

Crash Data

Attachments

(1 file)

As mentioned in bug 1859737, this pulls in some unwanted machinery on Windows for dumping the stack trace. We can replace it with just a printf.

According to bug 1859737, there are some issues with the stack dumping code on Windows
and the goal is to stop defining MOZ_ReportCrash in non-debug builds.
For AutoEnterOOMUnsafeRegion it seems simplest to do our own printf.

Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ea758c7008d7 Replace MOZ_ReportCrash call for AutoEnterOOMUnsafeRegion with fprintf. r=jonco
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Severity: -- → N/A
Priority: -- → P1

Thanks for this patch [:jandem]. As noted in bug 1843354 comment 14, it would be interesting to take it for ESR, to have proper bucketing of the ESR crashes originating from AutoEnterOOMUnsafeRegion. Could you write the request if you agree?

Flags: needinfo?(jdemooij)

Comment on attachment 9359988 [details]
Bug 1860767 - Replace MOZ_ReportCrash call for AutoEnterOOMUnsafeRegion with fprintf. r?jonco!

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: See discussion in bug 1843354. This is a one-line low-risk patch that will improve crash signatures. The new code is also much simpler and safer.
  • User impact if declined:
  • Fix Landed on Version: 121
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Very low risk. Replaces some printing code on OOM with a simpler fprintf.
Flags: needinfo?(jdemooij)
Attachment #9359988 - Flags: approval-mozilla-esr115?

Adding the signatures that we expect to see go down in ESR if we take the patch.

Crash Signature: [@ OOM | large | __delayLoadHelper2 | _tailMerge_dbghelp.dll | EnsureSymInitialized ] [@ OOM | large | __delayLoadHelper2 | _tailMerge_dbghelp.dll | MozStackWalk ] [@ OOM | large | __delayLoadHelper2 | _tailMerge_dbghelp.dll | MozWalkTheStack ] [@ __de…
See Also: → 1843354

:jandem if we want to take this in ESR this cycle, we should also nominate this for beta. lmk!

Flags: needinfo?(jdemooij)

Comment on attachment 9359988 [details]
Bug 1860767 - Replace MOZ_ReportCrash call for AutoEnterOOMUnsafeRegion with fprintf. r?jonco!

Beta/Release Uplift Approval Request

  • User impact if declined: This is a one-line, low-risk patch that will improve crash signatures. The new code is also much simpler and safer.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Very low risk because it's just replacing a call to a function, right before we crash on OOM, with a simpler fprintf.
  • String changes made/needed:
  • Is Android affected?: Yes
Flags: needinfo?(jdemooij)
Attachment #9359988 - Flags: approval-mozilla-beta?

Comment on attachment 9359988 [details]
Bug 1860767 - Replace MOZ_ReportCrash call for AutoEnterOOMUnsafeRegion with fprintf. r?jonco!

Approved for 120.0b5

Attachment #9359988 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9359988 [details]
Bug 1860767 - Replace MOZ_ReportCrash call for AutoEnterOOMUnsafeRegion with fprintf. r?jonco!

Approved for 115.5esr

Attachment #9359988 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: