Closed Bug 1772108 Opened 2 years ago Closed 2 years ago

Intermittent docshell/test/unit/test_privacy_transition.js | application crashed [@ NS_DispatchToMainThread(already_AddRefed<nsIRunnable>&&, unsigned int)] | after xpcshell return code: 1

Categories

(Core :: Graphics: Text, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1771125

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: crash, intermittent-failure)

Crash Data

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


[task 2022-06-01T10:22:59.616Z] 10:22:59     INFO -  TEST-START | docshell/test/unit/test_privacy_transition.js
[task 2022-06-01T10:23:00.112Z] 10:23:00  WARNING -  TEST-UNEXPECTED-FAIL | docshell/test/unit/test_privacy_transition.js | xpcshell return code: 1
[task 2022-06-01T10:23:00.112Z] 10:23:00     INFO -  TEST-INFO took 495ms
[task 2022-06-01T10:23:00.112Z] 10:23:00     INFO -  >>>>>>>
[task 2022-06-01T10:23:00.113Z] 10:23:00     INFO -  PID 9395 | [Parent 9395, 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-06-01T10:23:00.113Z] 10:23:00     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2022-06-01T10:23:00.113Z] 10:23:00     INFO -  TEST-PASS | docshell/test/unit/test_privacy_transition.js | run_test - [run_test : 20] 2 == 2
[task 2022-06-01T10:23:00.113Z] 10:23:00     INFO -  (xpcshell/head.js) | test MAIN run_test finished (1)
[task 2022-06-01T10:23:00.113Z] 10:23:00     INFO -  exiting test
[task 2022-06-01T10:23:00.114Z] 10:23:00     INFO -  PID 9395 | Couldn't convert chrome URL: chrome://branding/locale/brand.properties
[task 2022-06-01T10:23:00.114Z] 10:23:00     INFO -  PID 9395 | [Parent 9395, 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-06-01T10:23:00.114Z] 10:23:00     INFO -  "CONSOLE_MESSAGE: (info) No chrome package registered for chrome://branding/locale/brand.properties"
[task 2022-06-01T10:23:00.114Z] 10:23:00     INFO -  PID 9395 | GL_VENDOR: Intel Inc.
[task 2022-06-01T10:23:00.115Z] 10:23:00     INFO -  PID 9395 | mVendor: Intel
[task 2022-06-01T10:23:00.115Z] 10:23:00     INFO -  PID 9395 | GL_RENDERER: Intel(R) UHD Graphics 630
[task 2022-06-01T10:23:00.115Z] 10:23:00     INFO -  PID 9395 | mRenderer: Unknown
[task 2022-06-01T10:23:00.115Z] 10:23:00     INFO -  PID 9395 | mIsMesa: 0
[task 2022-06-01T10:23:00.115Z] 10:23:00     INFO -  PID 9395 | [Parent 9395, Main Thread] WARNING: NS_ENSURE_TRUE(currentInner) failed: file /builds/worker/checkouts/gecko/dom/base/WindowDestroyedEvent.cpp:113
[task 2022-06-01T10:23:00.116Z] 10:23:00     INFO -  PID 9395 | [Parent 9395, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3359
[task 2022-06-01T10:23:00.116Z] 10:23:00     INFO -  PID 9395 | [Parent 9395, 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-06-01T10:23:00.116Z] 10:23:00     INFO -  PID 9395 | [Parent 9395, InitFontList] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:220
[task 2022-06-01T10:23:00.117Z] 10:23:00     INFO -  PID 9395 | [Parent 9395, InitFontList] ###!!! ASSERTION: Failed NS_DispatchToMainThread() in shutdown; leaking: 'false', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:222
[task 2022-06-01T10:23:00.117Z] 10:23:00     INFO -  PID 9395 | #01: NS_DebugBreak [xpcom/base/nsDebugImpl.cpp:466]
[task 2022-06-01T10:23:00.117Z] 10:23:00     INFO -  PID 9395 | #02: NS_DispatchToMainThread(already_AddRefed<nsIRunnable>&&, unsigned int) [xpcom/threads/nsThreadUtils.cpp:228]
[task 2022-06-01T10:23:00.117Z] 10:23:00     INFO -  PID 9395 | #03: gfxPlatformFontList::GetPrefsAndStartLoader() [gfx/thebes/gfxPlatformFontList.cpp:2639]
[task 2022-06-01T10:23:00.118Z] 10:23:00     INFO -  PID 9395 | #04: gfxMacPlatformFontList::InitSharedFontListForPlatform() [gfx/thebes/gfxMacPlatformFontList.mm:1237]
[task 2022-06-01T10:23:00.118Z] 10:23:00     INFO -  PID 9395 | #05: gfxPlatformFontList::InitFontList() [gfx/thebes/gfxPlatformFontList.cpp:563]
[task 2022-06-01T10:23:00.118Z] 10:23:00     INFO -  PID 9395 | #06: InitFontListCallback(void*) [gfx/thebes/gfxPlatformFontList.cpp:242]
[task 2022-06-01T10:23:00.338Z] 10:23:00     INFO -  PID 9395 | #07: _pt_root [nsprpub/pr/src/pthreads/ptthread.c:204]
[task 2022-06-01T10:23:00.343Z] 10:23:00     INFO -  PID 9395 | #08: _pthread_start [/usr/lib/system/libsystem_pthread.dylib + 0x6109]
[task 2022-06-01T10:23:00.344Z] 10:23:00     INFO -  PID 9395 | Hit MOZ_CRASH([Parent 9395, 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-06-01T10:23:00.344Z] 10:23:00     INFO -  PID 9395 | #01: NS_DebugBreak [xpcom/base/nsDebugImpl.cpp:466]
[task 2022-06-01T10:23:00.344Z] 10:23:00     INFO -  PID 9395 | #02: NS_DispatchToMainThread(already_AddRefed<nsIRunnable>&&, unsigned int) [xpcom/threads/nsThreadUtils.cpp:228]
[task 2022-06-01T10:23:00.344Z] 10:23:00     INFO -  PID 9395 | #03: gfxPlatformFontList::GetPrefsAndStartLoader() [gfx/thebes/gfxPlatformFontList.cpp:2639]
[task 2022-06-01T10:23:00.345Z] 10:23:00     INFO -  PID 9395 | #04: gfxMacPlatformFontList::InitSharedFontListForPlatform() [gfx/thebes/gfxMacPlatformFontList.mm:1237]
[task 2022-06-01T10:23:00.345Z] 10:23:00     INFO -  PID 9395 | #05: gfxPlatformFontList::InitFontList() [gfx/thebes/gfxPlatformFontList.cpp:563]
[task 2022-06-01T10:23:00.345Z] 10:23:00     INFO -  PID 9395 | #06: InitFontListCallback(void*) [gfx/thebes/gfxPlatformFontList.cpp:242]
[task 2022-06-01T10:23:00.345Z] 10:23:00     INFO -  PID 9395 | #07: _pt_root [nsprpub/pr/src/pthreads/ptthread.c:204]
[task 2022-06-01T10:23:00.345Z] 10:23:00     INFO -  PID 9395 | #08: _pthread_start [/usr/lib/system/libsystem_pthread.dylib + 0x6109]
[task 2022-06-01T10:23:00.346Z] 10:23:00     INFO -  <<<<<<<
[task 2022-06-01T10:23:02.500Z] 10:23:02  WARNING -  PROCESS-CRASH | docshell/test/unit/test_privacy_transition.js | application crashed [@ NS_DispatchToMainThread(already_AddRefed<nsIRunnable>&&, unsigned int)]
[task 2022-06-01T10:23:02.500Z] 10:23:02     INFO -  Mozilla crash reason: [Parent 9395, InitFontList] ###!!! ASSERTION: Failed NS_DispatchToMainThread() in shutdown; leaking: 'false', file /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:222
[task 2022-06-01T10:23:02.502Z] 10:23:02     INFO -  Crash dump filename: /var/folders/dv/hnm8h5w55bv3mzsfk0_zk888000014/T/xpc-other-i1zj2yxf/A0D34C49-28AF-4AFF-9EB2-5ED0CAEE6C49.dmp
[task 2022-06-01T10:23:02.502Z] 10:23:02     INFO -  Operating system: Mac OS X
[task 2022-06-01T10:23:02.502Z] 10:23:02     INFO -                    10.15.7 19H524
[task 2022-06-01T10:23:02.502Z] 10:23:02     INFO -  CPU: amd64
[task 2022-06-01T10:23:02.502Z] 10:23:02     INFO -       family 6 model 158 stepping 10
[task 2022-06-01T10:23:02.502Z] 10:23:02     INFO -       12 CPUs
[task 2022-06-01T10:23:02.502Z] 10:23:02     INFO -  Crash reason:  EXC_BAD_ACCESS / KERN_INVALID_ADDRESS
[task 2022-06-01T10:23:02.502Z] 10:23:02     INFO -  Crash address: 0x0
[task 2022-06-01T10:23:02.502Z] 10:23:02     INFO -  Mac Crash Info:
[task 2022-06-01T10:23:02.502Z] 10:23:02     INFO -  Process uptime: 0 seconds
[task 2022-06-01T10:23:02.503Z] 10:23:02     INFO -  Thread 8 InitFontList (crashed)
[task 2022-06-01T10:23:02.503Z] 10:23:02     INFO -   0  XUL!NS_DebugBreak [nsDebugImpl.cpp:a99cd6ce98c9ba944f98be7a030d760841bbd515 : 466 + 0x3c]
[task 2022-06-01T10:23:02.503Z] 10:23:02     INFO -       rax = 0x000000010f3433e8    rdx = 0x0000000000000000
[task 2022-06-01T10:23:02.503Z] 10:23:02     INFO -       rcx = 0x000070000a3fb0ac    rbx = 0x00007fff9334a620
[task 2022-06-01T10:23:02.503Z] 10:23:02     INFO -       rsi = 0x00000000000120a8    rdi = 0x00007fff93349ca8
[task 2022-06-01T10:23:02.503Z] 10:23:02     INFO -       rbp = 0x000070000a3faa20    rsp = 0x000070000a3fa2f0
[task 2022-06-01T10:23:02.504Z] 10:23:02     INFO -        r8 = 0x00000000000130a8     r9 = 0x0000000000000000
[task 2022-06-01T10:23:02.504Z] 10:23:02     INFO -       r10 = 0x00007fff93349cc8    r11 = 0x00007fff93349cc0
[task 2022-06-01T10:23:02.504Z] 10:23:02     INFO -       r12 = 0x0000000123dcaeb7    r13 = 0x000070000a3fa6f0
[task 2022-06-01T10:23:02.504Z] 10:23:02     INFO -       r14 = 0x00007ffee0cc8bcf    r15 = 0x000070000a3fa3e0
[task 2022-06-01T10:23:02.505Z] 10:23:02     INFO -       rip = 0x000000011a1ff762
[task 2022-06-01T10:23:02.505Z] 10:23:02     INFO -      Found by: given as instruction pointer in context
[task 2022-06-01T10:23:02.505Z] 10:23:02     INFO -   1  XUL!NS_DispatchToMainThread(already_AddRefed<nsIRunnable>&&, unsigned int) [nsThreadUtils.cpp:a99cd6ce98c9ba944f98be7a030d760841bbd515 : 221 + 0x20]
[task 2022-06-01T10:23:02.506Z] 10:23:02     INFO -       rbx = 0x00000000c1f30001    rbp = 0x000070000a3faa70
[task 2022-06-01T10:23:02.506Z] 10:23:02     INFO -       rsp = 0x000070000a3faa30    r12 = 0x0000000000000001
[task 2022-06-01T10:23:02.506Z] 10:23:02     INFO -       r13 = 0x000070000a3facc0    r14 = 0x0000000123dcadc1
[task 2022-06-01T10:23:02.506Z] 10:23:02     INFO -       r15 = 0x000000010f50c440    rip = 0x000000011a332a04
[task 2022-06-01T10:23:02.506Z] 10:23:02     INFO -      Found by: call frame info
[task 2022-06-01T10:23:02.507Z] 10:23:02     INFO -   2  XUL!gfxPlatformFontList::GetPrefsAndStartLoader() [gfxPlatformFontList.cpp:a99cd6ce98c9ba944f98be7a030d760841bbd515 : 2639 + 0x72]
[task 2022-06-01T10:23:02.507Z] 10:23:02     INFO -       rbx = 0x000000010f50c440    rbp = 0x000070000a3faab0
[task 2022-06-01T10:23:02.507Z] 10:23:02     INFO -       rsp = 0x000070000a3faa80    r12 = 0x0000000000000001
[task 2022-06-01T10:23:02.507Z] 10:23:02     INFO -       r13 = 0x000070000a3facc0    r14 = 0x0000000115dd8000
[task 2022-06-01T10:23:02.508Z] 10:23:02     INFO -       r15 = 0x0000000000001f40    rip = 0x000000011b3ad6b2
[task 2022-06-01T10:23:02.508Z] 10:23:02     INFO -      Found by: call frame info
[task 2022-06-01T10:23:02.508Z] 10:23:02     INFO -   3  XUL!gfxMacPlatformFontList::InitSharedFontListForPlatform() [gfxMacPlatformFontList.mm:a99cd6ce98c9ba944f98be7a030d760841bbd515 : 1236 + 0x4]
[task 2022-06-01T10:23:02.508Z] 10:23:02     INFO -       rbx = 0x0000000000000730    rbp = 0x000070000a3fad90
[task 2022-06-01T10:23:02.509Z] 10:23:02     INFO -       rsp = 0x000070000a3faac0    r12 = 0x0000000000000001
[task 2022-06-01T10:23:02.509Z] 10:23:02     INFO -       r13 = 0x000070000a3facc0    r14 = 0x000070000a3fabb0
[task 2022-06-01T10:23:02.509Z] 10:23:02     INFO -       r15 = 0x000070000a3faba0    rip = 0x000000011b3e1b42
[task 2022-06-01T10:23:02.509Z] 10:23:02     INFO -      Found by: call frame info
[task 2022-06-01T10:23:02.510Z] 10:23:02     INFO -   4  XUL!gfxPlatformFontList::InitFontList() [gfxPlatformFontList.cpp:a99cd6ce98c9ba944f98be7a030d760841bbd515 : 562 + 0xc]
[task 2022-06-01T10:23:02.510Z] 10:23:02     INFO -       rbx = 0x0000000115dd9470    rbp = 0x000070000a3faf40
[task 2022-06-01T10:23:02.510Z] 10:23:02     INFO -       rsp = 0x000070000a3fada0    r12 = 0x0000000115dd8000
[task 2022-06-01T10:23:02.510Z] 10:23:02     INFO -       r13 = 0x0000000000000000    r14 = 0x0000000123fd4493
[task 2022-06-01T10:23:02.511Z] 10:23:02     INFO -       r15 = 0x0000000000000000    rip = 0x000000011b3a0022
[task 2022-06-01T10:23:02.511Z] 10:23:02     INFO -      Found by: call frame info
[task 2022-06-01T10:23:02.511Z] 10:23:02     INFO -   5  XUL!InitFontListCallback(void*) [gfxPlatformFontList.cpp:a99cd6ce98c9ba944f98be7a030d760841bbd515 : 242 + 0x7]
[task 2022-06-01T10:23:02.511Z] 10:23:02     INFO -       rbx = 0x0000000115dd8000    rbp = 0x000070000a3faf70
[task 2022-06-01T10:23:02.512Z] 10:23:02     INFO -       rsp = 0x000070000a3faf50    r12 = 0x000000010f57f1c0
[task 2022-06-01T10:23:02.512Z] 10:23:02     INFO -       r13 = 0x0000000000000000    r14 = 0x0000000123fd4493
[task 2022-06-01T10:23:02.512Z] 10:23:02     INFO -       r15 = 0x0000000000000002    rip = 0x000000011b39fac3
[task 2022-06-01T10:23:02.512Z] 10:23:02     INFO -      Found by: call frame info
[task 2022-06-01T10:23:02.513Z] 10:23:02     INFO -   6  libnss3.dylib!_pt_root [ptthread.c:a99cd6ce98c9ba944f98be7a030d760841bbd515 : 201 + 0x9]
[task 2022-06-01T10:23:02.513Z] 10:23:02     INFO -       rbx = 0x000070000a3fb000    rbp = 0x000070000a3fafb0
[task 2022-06-01T10:23:02.513Z] 10:23:02     INFO -       rsp = 0x000070000a3faf80    r12 = 0x000000010f57f1c0
[task 2022-06-01T10:23:02.513Z] 10:23:02     INFO -       r13 = 0x0000000000000000    r14 = 0x000070000a3fb000
[task 2022-06-01T10:23:02.514Z] 10:23:02     INFO -       r15 = 0x0000000000000002    rip = 0x000000010f0c65e9
[task 2022-06-01T10:23:02.514Z] 10:23:02     INFO -      Found by: call frame info
[task 2022-06-01T10:23:02.514Z] 10:23:02     INFO -   7  libsystem_pthread.dylib!_pthread_start + 0x93
[task 2022-06-01T10:23:02.514Z] 10:23:02     INFO -       rbx = 0x000070000a3fb000    rbp = 0x000070000a3fafd0
[task 2022-06-01T10:23:02.514Z] 10:23:02     INFO -       rsp = 0x000070000a3fafc0    r12 = 0x0000000000000000
[task 2022-06-01T10:23:02.515Z] 10:23:02     INFO -       r13 = 0x0000000000000000    r14 = 0x0000000000000000
[task 2022-06-01T10:23:02.515Z] 10:23:02     INFO -       r15 = 0x0000000000000000    rip = 0x00007fff6cca2109
[task 2022-06-01T10:23:02.515Z] 10:23:02     INFO -      Found by: call frame info
[task 2022-06-01T10:23:02.515Z] 10:23:02     INFO -   8  libsystem_pthread.dylib!thread_start + 0xe
[task 2022-06-01T10:23:02.516Z] 10:23:02     INFO -       rbx = 0x0000000000000000    rbp = 0x000070000a3faff0
[task 2022-06-01T10:23:02.516Z] 10:23:02     INFO -       rsp = 0x000070000a3fafe0    r12 = 0x0000000000000000
[task 2022-06-01T10:23:02.516Z] 10:23:02     INFO -       r13 = 0x0000000000000000    r14 = 0x0000000000000000
[task 2022-06-01T10:23:02.516Z] 10:23:02     INFO -       r15 = 0x0000000000000000    rip = 0x00007fff6cc9db8b
[task 2022-06-01T10:23:02.516Z] 10:23:02     INFO -      Found by: call frame info
[task 2022-06-01T10:23:02.517Z] 10:23:02     INFO -  Thread 0

Looks like gfxPlatformFontList::GetPrefsAndStartLoader is trying to dispatch to the main thread late in shutdown.

Component: XPCOM → Graphics: Text
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.