Closed Bug 1630952 Opened 4 years ago Closed 4 years ago

With content crashes the browser doesn't immediately exit

Categories

(Testing :: Raptor, defect, P1)

Version 3
defect

Tracking

(firefox77 fixed)

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

(Whiteboard: [ci-costs-2020:done])

Attachments

(1 file)

Run a test like: mach raptor --test raptor-tp6-outlook-firefox --post-startup-delay 0

Then while the page loads, paste about:crashcontent into the urlbar. That crashes the tab, and leaves Firefox hanging around for 25 minutes before Raptor kills the browser:

12:39:12     INFO -  raptor-control-server Info: received webext_status: ended page cycle 16
13:04:58     INFO -  mozcrash Copy/paste: /Users/henrik/bin/macosx64_minidump_stackwalk /var/folders/c2/q_47wqh13n902fj9_zxczclr0000gn/T/tmp3t6PdC/minidumps/44529466-92F3-4345-A9DA-A215361FD97E.dmp /var/folders/c2/q_47wqh13n902fj9_zxczclr0000gn/T/tmpRQR3FI

To instruct eg. Firefox to immediately shutdown the MOZ_CRASHREPORTER_SHUTDOWN environment variable has to be passed to the browser.

Note that due to bug 1630037 Raptor still hangs.

With that env variable in place we save 25 minutes per task if Firefox crashes.

Assignee: nobody → hskupin
Status: NEW → ASSIGNED

this is a really great find. are there any risks of adding this ENV VAR?

Whiteboard: [ci-costs-2020:todo]

also will this work for Android?

(In reply to Joel Maher ( :jmaher ) (UTC-4) from comment #3)

this is a really great find. are there any risks of adding this ENV VAR?

No, it's basically in use by nearly all the other harnesses meanwhile. And with the tab crashed we can't / don't want to continue anyway.

(In reply to Joel Maher ( :jmaher ) (UTC-4) from comment #4)

also will this work for Android?

Yes, my patch also includes it for Android.

Priority: P2 → P1
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/08be5b95d8bb
[raptor] Force browser to shutdown itself for content crashes. r=perftest-reviewers,sparky
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Whiteboard: [ci-costs-2020:todo] → [ci-costs-2020:done]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: