Open Bug 1872193 Opened 2 years ago Updated 1 year ago

Shutdown hang for debug builds in: "Hit MOZ_CRASH(Shutdown hanging at step CCPostLastCycleCollection. Something is blocking the main-thread.) at /builds/worker/checkouts/gecko/toolkit/components/terminator/nsTerminator.cpp:244"

Categories

(Core :: DOM: Content Processes, defect)

defect

Tracking

()

People

(Reporter: whimboo, Unassigned)

References

Details

For local artifact debug builds on MacOS (M1) I can see the following permanent hang during shutdown when triggering it close after startup:

Hit MOZ_CRASH(Shutdown hanging at step CCPostLastCycleCollection. Something is blocking the main-thread.) at /builds/worker/checkouts/gecko/toolkit/components/terminator/nsTerminator.cpp:244
#01: mozilla::(anonymous namespace)::RunWatchdog(void*)[/Users/henrik/code/gecko-obj/debug/dist/NightlyDebug.app/Contents/MacOS/XUL +0x6a8c357]
#02: _pt_root[/Users/henrik/code/gecko-obj/debug/dist/NightlyDebug.app/Contents/MacOS/libnss3.dylib +0x1a5628]
#03: _pthread_start[/usr/lib/system/libsystem_pthread.dylib +0x6202]

Steps:

  1. Configure an artifact build via mach bootstrap
  2. Build Firefox
  3. Start Firefox with ./mach run
  4. Initiate a shutdown right after Firefox is open and the initial page loaded
Severity: -- → S3
See Also: → 1859771
See Also: → 1834515

Is this happening only with artifact builds? I tried with a "normal" debug build on Windows and the only shutdown related message that looks different from normal shutdown was:

[WARN glean_core] Shutdown called before Glean is initialized. Waiting.

but that seemed to cause no real hang. Can you capture the console output of such a hang, maybe together with the full stack traces also from the other threads? Thank you

You need to log in before you can comment on or make changes to this bug.