Closed Bug 1660950 Opened 4 years ago Closed 4 years ago

Repair "Shutdown hanging before starting" crash reports

Categories

(Toolkit :: Async Tooling, defect, P2)

defect

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox81 --- fixed
firefox82 --- fixed

People

(Reporter: jstutte, Assigned: jstutte)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Looking at crashes generated by RunWatchDog's timeout reporting, I was wondering why we do not see any "Shutdown hanging at step %s. " messages but only the (somewhat misleading) "Shutdown hanging before starting." message.

It seems, we rely on sShutdownSteps[i].mTicks > -1 in order to determine during reporting if a step has been ever worked on. The only place I see where mTicks is set seems to be here, where we explicitly exclude to ever set the first step's ticks to something. This makes us always break from the loop in the reporting function at the first entry. I ignore, if there is any rationale to not set mTicks for sShutdownSteps[0], though.

I can see no reason to not set also mTicks for the first shutdown step.

Assignee: nobody → jstutte
Status: NEW → ASSIGNED
Assignee: jstutte → nobody
Severity: -- → S4
Status: ASSIGNED → NEW
Priority: -- → P2
Assignee: nobody → jstutte

Yes, this patch potentially affects quite some signatures.
Edit: The MOZ_CRASH_REASON of these signatures will probably change all.

Pushed by malexandru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5cf9e8cdb828
make shutdown steps reporting work r=smaug
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

Comment on attachment 9171876 [details]
Bug 1660950 - make shutdown steps reporting work

Beta/Release Uplift Approval Request

  • User impact if declined: End user impact none, but we would continue to receive bogus crash reports for shutdown hangs.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce: We have no STR for shutdown hangs.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): It just changes the way the moz crash reason message we report is generated.
  • String changes made/needed:
Attachment #9171876 - Flags: approval-mozilla-beta?

Comment on attachment 9171876 [details]
Bug 1660950 - make shutdown steps reporting work

approved for 81.0b3

Attachment #9171876 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Component: DOM: Core & HTML → Async Tooling
Product: Core → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: