Closed Bug 1694624 Opened 4 years ago Closed 1 month ago

Make the CrashManager handle a missing crash directory gracefully

Categories

(Toolkit :: Crash Reporting, defect)

defect

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: gsvelto, Assigned: gsvelto)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

Right now if CrashManager._getStore() fails it just returns NULL. The code using it blindly accesses the returned object so we end up bubbling up an error when it happens (usually during shutdown). This is probably not the right thing to do and we should adjust the code to gracefully handle this scenario (possibly by quietly aborting the current operation given there's nothing that can be done if the store is inaccessible).

Severity: -- → S2
Blocks: 1734543

Don't think this needs to be S2.

Severity: S2 → S3
Assignee: nobody → gsvelto
Status: NEW → ASSIGNED
Attachment #9428458 - Attachment description: WIP: Bug 1694624 - Handle failures to access the crash store silently → Bug 1694624 - Handle failures to access the crash store silently r=afranchuk

Hi Alex, any chance you could get to the review? This change would help address several test failures in CI. Thanks.

Flags: needinfo?(afranchuk)

Sorry, fell off my radar. Reviewed!

Flags: needinfo?(afranchuk)
Pushed by gsvelto@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4b65ea4964cf Handle failures to access the crash store silently r=afranchuk
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: