Closed Bug 1771125 Opened 2 years ago Closed 2 years ago

Intermittent Hit MOZ_CRASH([Parent 12252, InitFontList] ###!!! ASSERTION: Failed NS_DispatchToMainThread() in shutdown; leaking: 'false', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:222) at /xpcom/base/nsDebugImpl.cpp

Categories

(Core :: Graphics: Text, defect)

defect

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox-esr102 --- fixed
firefox100 --- unaffected
firefox101 --- unaffected
firefox102 --- wontfix
firefox103 --- wontfix
firefox104 --- wontfix
firefox105 --- wontfix
firefox106 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: jfkthame)

References

Details

(Keywords: assertion, intermittent-failure, regression, Whiteboard: [stockwell unknown][stockwell unknown])

Crash Data

Attachments

(1 file)

Filed by: bszekely [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=379228900&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/NczYw7BRSxScn9735Uszeg/runs/0/artifacts/public/logs/live_backing.log


[task 2022-05-25T10:15:24.046Z] 10:15:24     INFO -  TEST-START | docshell/test/unit/test_privacy_transition.js
[task 2022-05-25T10:15:24.438Z] 10:15:24  WARNING -  TEST-UNEXPECTED-FAIL | docshell/test/unit/test_privacy_transition.js | xpcshell return code: 1
[task 2022-05-25T10:15:24.438Z] 10:15:24     INFO -  TEST-INFO took 391ms
[task 2022-05-25T10:15:24.438Z] 10:15:24     INFO -  >>>>>>>
[task 2022-05-25T10:15:24.438Z] 10:15:24     INFO -  PID 12252 | [Parent 12252, Main Thread] WARNING: Couldn't get the user appdata directory. Crash events may not be produced.: file /builds/worker/checkouts/gecko/toolkit/crashreporter/nsExceptionHandler.cpp:2981
[task 2022-05-25T10:15:24.439Z] 10:15:24     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2022-05-25T10:15:24.439Z] 10:15:24     INFO -  TEST-PASS | docshell/test/unit/test_privacy_transition.js | run_test - [run_test : 20] 2 == 2
[task 2022-05-25T10:15:24.439Z] 10:15:24     INFO -  (xpcshell/head.js) | test MAIN run_test finished (1)
[task 2022-05-25T10:15:24.439Z] 10:15:24     INFO -  exiting test
[task 2022-05-25T10:15:24.439Z] 10:15:24     INFO -  PID 12252 | Couldn't convert chrome URL: chrome://branding/locale/brand.properties
[task 2022-05-25T10:15:24.440Z] 10:15:24     INFO -  PID 12252 | [Parent 12252, Main Thread] WARNING: Could not get the program name for a cubeb stream.: 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:430
[task 2022-05-25T10:15:24.440Z] 10:15:24     INFO -  "CONSOLE_MESSAGE: (info) No chrome package registered for chrome://branding/locale/brand.properties"
[task 2022-05-25T10:15:24.440Z] 10:15:24     INFO -  PID 12252 | GL_VENDOR: Intel Inc.
[task 2022-05-25T10:15:24.440Z] 10:15:24     INFO -  PID 12252 | mVendor: Intel
[task 2022-05-25T10:15:24.441Z] 10:15:24     INFO -  PID 12252 | GL_RENDERER: Intel(R) UHD Graphics 630
[task 2022-05-25T10:15:24.441Z] 10:15:24     INFO -  PID 12252 | mRenderer: Unknown
[task 2022-05-25T10:15:24.441Z] 10:15:24     INFO -  PID 12252 | mIsMesa: 0
[task 2022-05-25T10:15:24.441Z] 10:15:24     INFO -  PID 12252 | [Parent 12252, Main Thread] WARNING: NS_ENSURE_TRUE(currentInner) failed: file /builds/worker/checkouts/gecko/dom/base/WindowDestroyedEvent.cpp:113
[task 2022-05-25T10:15:24.442Z] 10:15:24     INFO -  PID 12252 | [Parent 12252, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3359
[task 2022-05-25T10:15:24.442Z] 10:15:24     INFO -  PID 12252 | [Parent 12252, InitFontList] WARNING: Called GetMainThread but there isn't a main thread and we're not the main thread.: file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadManager.cpp:575
[task 2022-05-25T10:15:24.442Z] 10:15:24     INFO -  PID 12252 | [Parent 12252, InitFontList] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:220
[task 2022-05-25T10:15:24.443Z] 10:15:24     INFO -  PID 12252 | [Parent 12252, InitFontList] ###!!! ASSERTION: Failed NS_DispatchToMainThread() in shutdown; leaking: 'false', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:222
[task 2022-05-25T10:15:24.443Z] 10:15:24     INFO -  PID 12252 | #01: NS_DebugBreak [xpcom/base/nsDebugImpl.cpp:466]
[task 2022-05-25T10:15:24.443Z] 10:15:24     INFO -  PID 12252 | #02: NS_DispatchToMainThread(already_AddRefed<nsIRunnable>&&, unsigned int) [xpcom/threads/nsThreadUtils.cpp:228]
[task 2022-05-25T10:15:24.443Z] 10:15:24     INFO -  PID 12252 | #03: gfxPlatformFontList::GetPrefsAndStartLoader() [gfx/thebes/gfxPlatformFontList.cpp:2639]
[task 2022-05-25T10:15:24.444Z] 10:15:24     INFO -  PID 12252 | #04: gfxMacPlatformFontList::InitSharedFontListForPlatform() [gfx/thebes/gfxMacPlatformFontList.mm:1234]
[task 2022-05-25T10:15:24.444Z] 10:15:24     INFO -  PID 12252 | #05: gfxPlatformFontList::InitFontList() [gfx/thebes/gfxPlatformFontList.cpp:563]
[task 2022-05-25T10:15:24.444Z] 10:15:24     INFO -  PID 12252 | #06: InitFontListCallback(void*) [gfx/thebes/gfxPlatformFontList.cpp:242]
[task 2022-05-25T10:15:24.664Z] 10:15:24     INFO -  PID 12252 | #07: _pt_root [nsprpub/pr/src/pthreads/ptthread.c:204]
[task 2022-05-25T10:15:24.669Z] 10:15:24     INFO -  PID 12252 | #08: _pthread_start [/usr/lib/system/libsystem_pthread.dylib + 0x6109]
[task 2022-05-25T10:15:24.669Z] 10:15:24     INFO -  PID 12252 | Hit MOZ_CRASH([Parent 12252, InitFontList] ###!!! ASSERTION: Failed NS_DispatchToMainThread() in shutdown; leaking: 'false', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:222) at /builds/worker/checkouts/gecko/xpcom/base/nsDebugImpl.cpp:517
[task 2022-05-25T10:15:24.669Z] 10:15:24     INFO -  PID 12252 | #01: NS_DebugBreak [xpcom/base/nsDebugImpl.cpp:466]
[task 2022-05-25T10:15:24.670Z] 10:15:24     INFO -  PID 12252 | #02: NS_DispatchToMainThread(already_AddRefed<nsIRunnable>&&, unsigned int) [xpcom/threads/nsThreadUtils.cpp:228]
[task 2022-05-25T10:15:24.670Z] 10:15:24     INFO -  PID 12252 | #03: gfxPlatformFontList::GetPrefsAndStartLoader() [gfx/thebes/gfxPlatformFontList.cpp:2639]
[task 2022-05-25T10:15:24.670Z] 10:15:24     INFO -  PID 12252 | #04: gfxMacPlatformFontList::InitSharedFontListForPlatform() [gfx/thebes/gfxMacPlatformFontList.mm:1234]
[task 2022-05-25T10:15:24.670Z] 10:15:24     INFO -  PID 12252 | #05: gfxPlatformFontList::InitFontList() [gfx/thebes/gfxPlatformFontList.cpp:563]
[task 2022-05-25T10:15:24.671Z] 10:15:24     INFO -  PID 12252 | #06: InitFontListCallback(void*) [gfx/thebes/gfxPlatformFontList.cpp:242]
[task 2022-05-25T10:15:24.671Z] 10:15:24     INFO -  PID 12252 | #07: _pt_root [nsprpub/pr/src/pthreads/ptthread.c:204]
[task 2022-05-25T10:15:24.671Z] 10:15:24     INFO -  PID 12252 | #08: _pthread_start [/usr/lib/system/libsystem_pthread.dylib + 0x6109]
[task 2022-05-25T10:15:24.671Z] 10:15:24     INFO -  <<<<<<<
[task 2022-05-25T10:15:26.379Z] 10:15:26  WARNING -  PROCESS-CRASH | docshell/test/unit/test_privacy_transition.js | application crashed [@ NS_DispatchToMainThread(already_AddRefed<nsIRunnable>&&, unsigned int)]
[task 2022-05-25T10:15:26.380Z] 10:15:26     INFO -  Mozilla crash reason: [Parent 12252, InitFontList] ###!!! ASSERTION: Failed NS_DispatchToMainThread() in shutdown; leaking: 'false', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:222
[task 2022-05-25T10:15:26.380Z] 10:15:26     INFO -  Crash dump filename: /var/folders/z2/bts1038n5n942l1lv_35n760000014/T/xpc-other-22rinfjn/4DC9F003-F9C1-4CB4-B02E-71777E8063FF.dmp
[task 2022-05-25T10:15:26.380Z] 10:15:26     INFO -  Operating system: Mac OS X
<...>
[task 2022-05-25T10:15:26.632Z] 10:15:26     INFO -  0x7fff7278e000 - 0x7fff72793fff  libunwind.dylib  ???
[task 2022-05-25T10:15:26.632Z] 10:15:26     INFO -  0x7fff72794000 - 0x7fff727c9fff  libxpc.dylib  ???
[task 2022-05-25T10:15:26.632Z] 10:15:26     INFO -  Unloaded modules:
[task 2022-05-25T10:15:26.632Z] 10:15:26     INFO -  TEST-START | toolkit/components/url-classifier/tests/unit/test_listmanager.js
Summary: Intermittent Hit MOZ_CRASH([Parent 12252, InitFontList] ###!!! ASSERTION: Failed NS_DispatchToMainThread() in shutdown; leaking: 'false', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:222) at /builds/worker/checkouts/gecko/xpcom/bas → Intermittent Hit MOZ_CRASH([Parent 12252, InitFontList] ###!!! ASSERTION: Failed NS_DispatchToMainThread() in shutdown; leaking: 'false', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:222) at /xpcom/base/nsDebugImpl.cpp
Crash Signature: [@ NS_DispatchToMainThread(already_AddRefed<nsIRunnable>&&, unsigned int)]

Ugh... if we're in shutdown, we really don't care about dispatching this; we should just bail out. I'll see if I can find a tidy way to do that. Leaving needinfo flag until I look into it more thoroughly.

(Aside from the assertion creating test-failure noise, this is basically harmless.)

Whiteboard: [stockwell needswork:owner]
Component: DOM: Navigation → Graphics: Text

There have been 31 total failures in the last 7 days, recent failure log.
Affected platforms are:

  • macosx1015-64-qr

There are 21 total failures in the last 7 days on macosx1015-64-qr debug
Recent failure log: https://treeherder.mozilla.org/logviewer?job_id=384517511&repo=autoland&lineNumber=2079

[task 2022-07-15T21:21:55.461Z] 21:21:55     INFO -  TEST-START | docshell/test/unit/test_privacy_transition.js
[task 2022-07-15T21:21:55.845Z] 21:21:55  WARNING -  TEST-UNEXPECTED-FAIL | docshell/test/unit/test_privacy_transition.js | xpcshell return code: 1
[task 2022-07-15T21:21:55.845Z] 21:21:55     INFO -  TEST-INFO took 383ms
[task 2022-07-15T21:21:55.845Z] 21:21:55     INFO -  >>>>>>>
[task 2022-07-15T21:21:55.845Z] 21:21:55     INFO -  PID 6407 | [Parent 6407, Main Thread] WARNING: Couldn't get the user appdata directory. Crash events may not be produced.: file /builds/worker/checkouts/gecko/toolkit/crashreporter/nsExceptionHandler.cpp:2964
[task 2022-07-15T21:21:55.846Z] 21:21:55     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2022-07-15T21:21:55.846Z] 21:21:55     INFO -  TEST-PASS | docshell/test/unit/test_privacy_transition.js | run_test - [run_test : 20] 2 == 2
[task 2022-07-15T21:21:55.846Z] 21:21:55     INFO -  (xpcshell/head.js) | test MAIN run_test finished (1)
[task 2022-07-15T21:21:55.846Z] 21:21:55     INFO -  exiting test
[task 2022-07-15T21:21:55.846Z] 21:21:55     INFO -  PID 6407 | Couldn't convert chrome URL: chrome://branding/locale/brand.properties
[task 2022-07-15T21:21:55.847Z] 21:21:55     INFO -  PID 6407 | [Parent 6407, Main Thread] WARNING: Could not get the program name for a cubeb stream.: 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:427
[task 2022-07-15T21:21:55.847Z] 21:21:55     INFO -  "CONSOLE_MESSAGE: (info) No chrome package registered for chrome://branding/locale/brand.properties"
[task 2022-07-15T21:21:55.847Z] 21:21:55     INFO -  PID 6407 | GL_VENDOR: Intel Inc.
[task 2022-07-15T21:21:55.847Z] 21:21:55     INFO -  PID 6407 | mVendor: Intel
[task 2022-07-15T21:21:55.848Z] 21:21:55     INFO -  PID 6407 | GL_RENDERER: Intel(R) UHD Graphics 630
[task 2022-07-15T21:21:55.848Z] 21:21:55     INFO -  PID 6407 | mRenderer: Unknown
[task 2022-07-15T21:21:55.848Z] 21:21:55     INFO -  PID 6407 | mIsMesa: 0
[task 2022-07-15T21:21:55.848Z] 21:21:55     INFO -  PID 6407 | [Parent 6407, Main Thread] WARNING: NS_ENSURE_TRUE(currentInner) failed: file /builds/worker/checkouts/gecko/dom/base/WindowDestroyedEvent.cpp:113
[task 2022-07-15T21:21:55.849Z] 21:21:55     INFO -  PID 6407 | [Parent 6407, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3359
[task 2022-07-15T21:21:55.849Z] 21:21:55     INFO -  PID 6407 | [Parent 6407, InitFontList] WARNING: Called GetMainThread but there isn't a main thread and we're not the main thread.: file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadManager.cpp:575
[task 2022-07-15T21:21:55.849Z] 21:21:55     INFO -  PID 6407 | [Parent 6407, InitFontList] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:220
[task 2022-07-15T21:21:55.850Z] 21:21:55     INFO -  PID 6407 | [Parent 6407, InitFontList] ###!!! ASSERTION: Failed NS_DispatchToMainThread() in shutdown; leaking: 'false', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:222
[task 2022-07-15T21:21:55.850Z] 21:21:55     INFO -  PID 6407 | #01: NS_DebugBreak [xpcom/base/nsDebugImpl.cpp:462]
[task 2022-07-15T21:21:55.850Z] 21:21:55     INFO -  PID 6407 | #02: NS_DispatchToMainThread(already_AddRefed<nsIRunnable>&&, unsigned int) [xpcom/threads/nsThreadUtils.cpp:228]
[task 2022-07-15T21:21:55.850Z] 21:21:55     INFO -  PID 6407 | #03: gfxPlatformFontList::GetPrefsAndStartLoader() [gfx/thebes/gfxPlatformFontList.cpp:2628]
[task 2022-07-15T21:21:55.851Z] 21:21:55     INFO -  PID 6407 | #04: gfxMacPlatformFontList::InitSharedFontListForPlatform() [gfx/thebes/gfxMacPlatformFontList.mm:1237]
[task 2022-07-15T21:21:55.851Z] 21:21:55     INFO -  PID 6407 | #05: gfxPlatformFontList::InitFontList() [gfx/thebes/gfxPlatformFontList.cpp:577]
[task 2022-07-15T21:21:55.851Z] 21:21:55     INFO -  PID 6407 | #06: InitFontListCallback(void*) [gfx/thebes/gfxPlatformFontList.cpp:242]
[task 2022-07-15T21:21:56.073Z] 21:21:56     INFO -  PID 6407 | #07: _pt_root [nsprpub/pr/src/pthreads/ptthread.c:204]
[task 2022-07-15T21:21:56.076Z] 21:21:56     INFO -  PID 6407 | #08: _pthread_start [/usr/lib/system/libsystem_pthread.dylib + 0x6109]
[task 2022-07-15T21:21:56.076Z] 21:21:56     INFO -  PID 6407 | Hit MOZ_CRASH([Parent 6407, InitFontList] ###!!! ASSERTION: Failed NS_DispatchToMainThread() in shutdown; leaking: 'false', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:222) at /builds/worker/checkouts/gecko/xpcom/base/nsDebugImpl.cpp:513
[task 2022-07-15T21:21:56.076Z] 21:21:56     INFO -  PID 6407 | #01: NS_DebugBreak [xpcom/base/nsDebugImpl.cpp:462]
[task 2022-07-15T21:21:56.077Z] 21:21:56     INFO -  PID 6407 | #02: NS_DispatchToMainThread(already_AddRefed<nsIRunnable>&&, unsigned int) [xpcom/threads/nsThreadUtils.cpp:228]
[task 2022-07-15T21:21:56.077Z] 21:21:56     INFO -  PID 6407 | #03: gfxPlatformFontList::GetPrefsAndStartLoader() [gfx/thebes/gfxPlatformFontList.cpp:2628]
[task 2022-07-15T21:21:56.077Z] 21:21:56     INFO -  PID 6407 | #04: gfxMacPlatformFontList::InitSharedFontListForPlatform() [gfx/thebes/gfxMacPlatformFontList.mm:1237]
[task 2022-07-15T21:21:56.077Z] 21:21:56     INFO -  PID 6407 | #05: gfxPlatformFontList::InitFontList() [gfx/thebes/gfxPlatformFontList.cpp:577]
[task 2022-07-15T21:21:56.078Z] 21:21:56     INFO -  PID 6407 | #06: InitFontListCallback(void*) [gfx/thebes/gfxPlatformFontList.cpp:242]
[task 2022-07-15T21:21:56.078Z] 21:21:56     INFO -  PID 6407 | #07: _pt_root [nsprpub/pr/src/pthreads/ptthread.c:204]
[task 2022-07-15T21:21:56.078Z] 21:21:56     INFO -  PID 6407 | #08: _pthread_start [/usr/lib/system/libsystem_pthread.dylib + 0x6109]
[task 2022-07-15T21:21:56.078Z] 21:21:56     INFO -  <<<<<<<
[task 2022-07-15T21:21:58.262Z] 21:21:58  WARNING -  PROCESS-CRASH | docshell/test/unit/test_privacy_transition.js | application crashed [@ NS_DispatchToMainThread(already_AddRefed<nsIRunnable>&&, unsigned int)]
[task 2022-07-15T21:21:58.263Z] 21:21:58     INFO -  Mozilla crash reason: [Parent 6407, InitFontList] ###!!! ASSERTION: Failed NS_DispatchToMainThread() in shutdown; leaking: 'false', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:222
[task 2022-07-15T21:21:58.263Z] 21:21:58     INFO -  Crash dump filename: /var/folders/_h/_ptw4k5n7g5288_0xrxn1mzc000014/T/xpc-other-2forp1ct/44FF3CBD-C8FD-466C-A8F5-BE813D9C4073.dmp
[task 2022-07-15T21:21:58.263Z] 21:21:58     INFO -  Operating system: Mac OS X
[task 2022-07-15T21:21:58.263Z] 21:21:58     INFO -                    10.15.7 19H524
[task 2022-07-15T21:21:58.263Z] 21:21:58     INFO -  CPU: amd64
[task 2022-07-15T21:21:58.264Z] 21:21:58     INFO -       family 6 model 158 stepping 10
[task 2022-07-15T21:21:58.264Z] 21:21:58     INFO -       12 CPUs
[task 2022-07-15T21:21:58.264Z] 21:21:58     INFO -  Crash reason:  EXC_BAD_ACCESS / KERN_INVALID_ADDRESS
[task 2022-07-15T21:21:58.264Z] 21:21:58     INFO -  Crash address: 0x0
[task 2022-07-15T21:21:58.264Z] 21:21:58     INFO -  Mac Crash Info:
[task 2022-07-15T21:21:58.265Z] 21:21:58     INFO -  Process uptime: 0 seconds
[task 2022-07-15T21:21:58.265Z] 21:21:58     INFO -  Thread 8 InitFontList (crashed)
[task 2022-07-15T21:21:58.265Z] 21:21:58     INFO -   0  XUL!NS_DebugBreak [nsDebugImpl.cpp:4e6a14748df6ba049d5eb72e242d2aff12dad95e : 462 + 0x3c]
[task 2022-07-15T21:21:58.265Z] 21:21:58     INFO -       rax = 0x000000010684a880    rdx = 0x0000000000000000
[task 2022-07-15T21:21:58.266Z] 21:21:58     INFO -       rcx = 0x00007000041200ac    rbx = 0x00007fff9701d620
[task 2022-07-15T21:21:58.266Z] 21:21:58     INFO -       rsi = 0x00000000000120a8    rdi = 0x00007fff9701cca8
[task 2022-07-15T21:21:58.266Z] 21:21:58     INFO -       rbp = 0x000070000411fa20    rsp = 0x000070000411f2f0
[task 2022-07-15T21:21:58.266Z] 21:21:58     INFO -        r8 = 0x00000000000130a8     r9 = 0x0000000000000000
[task 2022-07-15T21:21:58.267Z] 21:21:58     INFO -       r10 = 0x00007fff9701ccc8    r11 = 0x00007fff9701ccc0
[task 2022-07-15T21:21:58.267Z] 21:21:58     INFO -       r12 = 0x0000000117191a19    r13 = 0x000070000411f6f0
[task 2022-07-15T21:21:58.267Z] 21:21:58     INFO -       r14 = 0x00007ffee97c9bd8    r15 = 0x000070000411f3e0
[task 2022-07-15T21:21:58.267Z] 21:21:58     INFO -       rip = 0x000000010d4b2c42
[task 2022-07-15T21:21:58.267Z] 21:21:58     INFO -      Found by: given as instruction pointer in context
[task 2022-07-15T21:21:58.268Z] 21:21:58     INFO -   1  XUL!NS_DispatchToMainThread(already_AddRefed<nsIRunnable>&&, unsigned int) [nsThreadUtils.cpp:4e6a14748df6ba049d5eb72e242d2aff12dad95e : 221 + 0x20]
[task 2022-07-15T21:21:58.268Z] 21:21:58     INFO -       rbx = 0x00000000c1f30001    rbp = 0x000070000411fa70
[task 2022-07-15T21:21:58.268Z] 21:21:58     INFO -       rsp = 0x000070000411fa30    r12 = 0x0000000000000001
[task 2022-07-15T21:21:58.268Z] 21:21:58     INFO -       r13 = 0x000070000411fcc0    r14 = 0x0000000117191923
[task 2022-07-15T21:21:58.269Z] 21:21:58     INFO -       r15 = 0x0000000106a364c0    rip = 0x000000010d5e6214
[task 2022-07-15T21:21:58.269Z] 21:21:58     INFO -      Found by: call frame info
[task 2022-07-15T21:21:58.269Z] 21:21:58     INFO -   2  XUL!gfxPlatformFontList::GetPrefsAndStartLoader() [gfxPlatformFontList.cpp:4e6a14748df6ba049d5eb72e242d2aff12dad95e : 2628 + 0x72]
[task 2022-07-15T21:21:58.269Z] 21:21:58     INFO -       rbx = 0x0000000106a364c0    rbp = 0x000070000411fab0
[task 2022-07-15T21:21:58.270Z] 21:21:58     INFO -       rsp = 0x000070000411fa80    r12 = 0x0000000000000001
[task 2022-07-15T21:21:58.270Z] 21:21:58     INFO -       r13 = 0x000070000411fcc0    r14 = 0x000000010cdda000
[task 2022-07-15T21:21:58.270Z] 21:21:58     INFO -       r15 = 0x0000000000001f40    rip = 0x000000010e6807c2
[task 2022-07-15T21:21:58.270Z] 21:21:58     INFO -      Found by: call frame info
[task 2022-07-15T21:21:58.271Z] 21:21:58     INFO -   3  XUL!gfxMacPlatformFontList::InitSharedFontListForPlatform() [gfxMacPlatformFontList.mm:4e6a14748df6ba049d5eb72e242d2aff12dad95e : 1236 + 0x4]
[task 2022-07-15T21:21:58.271Z] 21:21:58     INFO -       rbx = 0x0000000000000730    rbp = 0x000070000411fd90
[task 2022-07-15T21:21:58.271Z] 21:21:58     INFO -       rsp = 0x000070000411fac0    r12 = 0x0000000000000001
[task 2022-07-15T21:21:58.271Z] 21:21:58     INFO -       r13 = 0x000070000411fcc0    r14 = 0x000070000411fbb0
[task 2022-07-15T21:21:58.271Z] 21:21:58     INFO -       r15 = 0x000070000411fba0    rip = 0x000000010e6b7922
[task 2022-07-15T21:21:58.272Z] 21:21:58     INFO -      Found by: call frame info
[task 2022-07-15T21:21:58.272Z] 21:21:58     INFO -   4  XUL!gfxPlatformFontList::InitFontList() [gfxPlatformFontList.cpp:4e6a14748df6ba049d5eb72e242d2aff12dad95e : 576 + 0xc]
[task 2022-07-15T21:21:58.272Z] 21:21:58     INFO -       rbx = 0x000000010cdd6620    rbp = 0x000070000411ff40
[task 2022-07-15T21:21:58.272Z] 21:21:58     INFO -       rsp = 0x000070000411fda0    r12 = 0x000000010cdda000
[task 2022-07-15T21:21:58.273Z] 21:21:58     INFO -       r13 = 0x0000000000000000    r14 = 0x00000001173a0cd4
[task 2022-07-15T21:21:58.273Z] 21:21:58     INFO -       r15 = 0x0000000000000000    rip = 0x000000010e672e62
[task 2022-07-15T21:21:58.273Z] 21:21:58     INFO -      Found by: call frame info
[task 2022-07-15T21:21:58.273Z] 21:21:58     INFO -   5  XUL!InitFontListCallback(void*) [gfxPlatformFontList.cpp:4e6a14748df6ba049d5eb72e242d2aff12dad95e : 242 + 0x7]
[task 2022-07-15T21:21:58.273Z] 21:21:58     INFO -       rbx = 0x000000010cdda000    rbp = 0x000070000411ff70
[task 2022-07-15T21:21:58.274Z] 21:21:58     INFO -       rsp = 0x000070000411ff50    r12 = 0x0000000106a6f4b0
[task 2022-07-15T21:21:58.274Z] 21:21:58     INFO -       r13 = 0x0000000000000000    r14 = 0x00000001173a0cd4
[task 2022-07-15T21:21:58.274Z] 21:21:58     INFO -       r15 = 0x0000000000000002    rip = 0x000000010e672963
[task 2022-07-15T21:21:58.274Z] 21:21:58     INFO -      Found by: call frame info
[task 2022-07-15T21:21:58.275Z] 21:21:58     INFO -   6  libnss3.dylib!_pt_root [ptthread.c:4e6a14748df6ba049d5eb72e242d2aff12dad95e : 201 + 0x9]
[task 2022-07-15T21:21:58.275Z] 21:21:58     INFO -       rbx = 0x0000700004120000    rbp = 0x000070000411ffb0
[task 2022-07-15T21:21:58.275Z] 21:21:58     INFO -       rsp = 0x000070000411ff80    r12 = 0x0000000106a6f4b0
[task 2022-07-15T21:21:58.275Z] 21:21:58     INFO -       r13 = 0x0000000000000000    r14 = 0x0000700004120000
[task 2022-07-15T21:21:58.275Z] 21:21:58     INFO -       r15 = 0x0000000000000002    rip = 0x00000001065c8ae9
[task 2022-07-15T21:21:58.276Z] 21:21:58     INFO -      Found by: call frame info
[task 2022-07-15T21:21:58.276Z] 21:21:58     INFO -   7  libsystem_pthread.dylib!_pthread_start + 0x93
[task 2022-07-15T21:21:58.276Z] 21:21:58     INFO -       rbx = 0x0000700004120000    rbp = 0x000070000411ffd0
[task 2022-07-15T21:21:58.276Z] 21:21:58     INFO -       rsp = 0x000070000411ffc0    r12 = 0x0000000000000000
[task 2022-07-15T21:21:58.276Z] 21:21:58     INFO -       r13 = 0x0000000000000000    r14 = 0x0000000000000000
[task 2022-07-15T21:21:58.277Z] 21:21:58     INFO -       r15 = 0x0000000000000000    rip = 0x00007fff70975109
[task 2022-07-15T21:21:58.277Z] 21:21:58     INFO -      Found by: call frame info
[task 2022-07-15T21:21:58.277Z] 21:21:58     INFO -   8  libsystem_pthread.dylib!thread_start + 0xe
[task 2022-07-15T21:21:58.277Z] 21:21:58     INFO -       rbx = 0x0000000000000000    rbp = 0x000070000411fff0
[task 2022-07-15T21:21:58.277Z] 21:21:58     INFO -       rsp = 0x000070000411ffe0    r12 = 0x0000000000000000
[task 2022-07-15T21:21:58.277Z] 21:21:58     INFO -       r13 = 0x0000000000000000    r14 = 0x0000000000000000
[task 2022-07-15T21:21:58.278Z] 21:21:58     INFO -       r15 = 0x0000000000000000    rip = 0x00007ff
Whiteboard: [stockwell unknown] → [stockwell needswork:owner]

I think the simplest thing to do here is to check in GetPrefsAndStartLoader whether we've entered AppShutdown already, and if so, just bail out -- there's no point in initializing more font information when the app is shutting down anyway.

In theory there'll still be a potential race between checking the AppShutdown state and trying to dispatch the runnable, but the risk of getting all the way from "we're not shutting down" to "the thread manager is done" here seems negligible. And if it were ever to happen, it's basically harmless; the only issue here is the noise we get in CI from the debug-mode assertion that we trigger.

Flags: needinfo?(jfkthame)
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED

Lee, can we get this reviewed and landed?

Flags: needinfo?(lsalzman)
Flags: needinfo?(lsalzman)
Pushed by lsalzman@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fd8a7afc7738
Don't bother trying to start the font-info loader if we're already shutting down. r=lsalzman
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch

Hi Jonathan, can we take this on ESR to quiet the failures there too?

Flags: needinfo?(jfkthame)

Sure thing - I don't think there's any significant risk to the patch.

Flags: needinfo?(jfkthame)

Comment on attachment 9287894 [details]
Bug 1771125 - Don't bother trying to start the font-info loader if we're already shutting down. r=lsalzman

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Annoying intermittent shutdown crashes
  • User impact if declined:
  • Fix Landed on Version: 106
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Trivial patch to just bail out of starting new work if we're in shutdown
Attachment #9287894 - Flags: approval-mozilla-esr102?

Comment on attachment 9287894 [details]
Bug 1771125 - Don't bother trying to start the font-info loader if we're already shutting down. r=lsalzman

Approved for 102.4esr.

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

Attachment

General

Created:
Updated:
Size: