Open Bug 1479022 Opened Last year Updated 2 months ago

Intermittent Assertion failure: aThread.GetPRThread() == PR_GetCurrentThread() (bad aThread), at z:/build/build/src/xpcom/threads/nsThreadManager.cpp:422

Categories

(Core :: XPCOM, defect, P5)

defect

Tracking

()

People

(Reporter: intermittent-bug-filer, Unassigned, NeedInfo)

References

Details

(Keywords: intermittent-failure)

Filed by: ccoroiu [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=190542277&repo=autoland

https://queue.taskcluster.net/v1/task/SSaqNm_rTVOgMJ9mxLidtw/runs/0/artifacts/public/logs/live_backing.log

https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://queue.taskcluster.net/v1/task/SSaqNm_rTVOgMJ9mxLidtw/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1&only_show_unexpected=1

15:00:29     INFO -  #10: static void patched_BaseThreadInitThunk(int, void *, void *) [mozglue/build/WindowsDllBlocklist.cpp:671]
15:00:29     INFO -  #11: ntdll.dll + 0x70d61
15:00:29     INFO -  --DOMWINDOW == 21 (000001D8B8737400) [pid = 2080] [serial = 6] [outer = 0000000000000000] [url = about:blank]
15:00:29     INFO -  --DOMWINDOW == 20 (000001D8BC091800) [pid = 2080] [serial = 8] [outer = 0000000000000000] [url = about:blank]
15:00:29     INFO -  --DOMWINDOW == 19 (000001D8BC091A00) [pid = 2080] [serial = 9] [outer = 0000000000000000] [url = about:blank]
15:00:29     INFO -  [Parent 2080, Main Thread] WARNING: '!mMainThread', file z:/build/build/src/xpcom/threads/nsThreadManager.cpp, line 564
15:00:29     INFO -  [Parent 2080, Main Thread] WARNING: '!mMainThread', file z:/build/build/src/xpcom/threads/nsThreadManager.cpp, line 564
15:00:29     INFO -  [Parent 2080, Main Thread] WARNING: '!mMainThread', file z:/build/build/src/xpcom/threads/nsThreadManager.cpp, line 564
15:00:29     INFO -  [Parent 2080, Main Thread] WARNING: '!mMainThread', file z:/build/build/src/xpcom/threads/nsThreadManager.cpp, line 564
15:00:29     INFO -  [Parent 2080, Main Thread] WARNING: '!mMainThread', file z:/build/build/src/xpcom/threads/nsThreadManager.cpp, line 564
15:00:29     INFO -  [Parent 2080, Main Thread] WARNING: '!mMainThread', file z:/build/build/src/xpcom/threads/nsThreadManager.cpp, line 564
15:00:29     INFO -  [Parent 2080, Main Thread] WARNING: '!mMainThread', file z:/build/build/src/xpcom/threads/nsThreadManager.cpp, line 564
15:00:29     INFO -  [Parent 2080, Main Thread] WARNING: '!mMainThread', file z:/build/build/src/xpcom/threads/nsThreadManager.cpp, line 564
15:00:29     INFO -  [Parent 2080, Main Thread] WARNING: '!mMainThread', file z:/build/build/src/xpcom/threads/nsThreadManager.cpp, line 564
15:00:29     INFO -  --DOMWINDOW == 18 (000001D8BE618C00) [pid = 2080] [serial = 14] [outer = 0000000000000000] [url = about:blank]
15:00:29     INFO -  --DOMWINDOW == 17 (000001D8AC76F400) [pid = 2080] [serial = 22] [outer = 0000000000000000] [url = about:blank]
15:00:29     INFO -  --DOMWINDOW == 16 (000001D8C2ADE400) [pid = 2080] [serial = 21] [outer = 0000000000000000] [url = chrome://reftest/content/reftest.xul]
15:00:29     INFO -  --DOMWINDOW == 15 (000001D8C100E000) [pid = 2080] [serial = 20] [outer = 0000000000000000] [url = about:blank]
15:00:29     INFO -  --DOMWINDOW == 14 (000001D8BE0E3400) [pid = 2080] [serial = 13] [outer = 0000000000000000] [url = about:blank]
15:00:29     INFO -  --DOMWINDOW == 13 (000001D8AC70F200) [pid = 2080] [serial = 19] [outer = 0000000000000000] [url = about:blank]
15:00:29     INFO -  --DOMWINDOW == 12 (000001D8B87B3800) [pid = 2080] [serial = 10] [outer = 0000000000000000] [url = chrome://extensions/content/dummy.xul]
15:00:29     INFO -  --DOMWINDOW == 11 (000001D8BC995400) [pid = 2080] [serial = 11] [outer = 0000000000000000] [url = about:blank]
15:00:29     INFO -  --DOMWINDOW == 10 (000001D8B87AE400) [pid = 2080] [serial = 1] [outer = 0000000000000000] [url = chrome://gfxsanity/content/sanityparent.html]
15:00:29     INFO -  --DOMWINDOW == 9 (000001D8AC727000) [pid = 2080] [serial = 2] [outer = 0000000000000000] [url = about:blank]
15:00:29     INFO -  --DOMWINDOW == 8 (000001D8AC70E800) [pid = 2080] [serial = 3] [outer = 0000000000000000] [url = resource://gre-resources/hiddenWindow.html]
15:00:29     INFO -  --DOMWINDOW == 7 (000001D8B9029C00) [pid = 2080] [serial = 4] [outer = 0000000000000000] [url = about:blank]
15:00:29     INFO -  --DOMWINDOW == 6 (000001D8B87B5000) [pid = 2080] [serial = 5] [outer = 0000000000000000] [url = chrome://browser/content/browser.xul]
15:00:29     INFO -  --DOMWINDOW == 5 (000001D8BE868C00) [pid = 2080] [serial = 18] [outer = 0000000000000000] [url = chrome://extensions/content/dummy.xul]
15:00:29     INFO -  --DOMWINDOW == 4 (000001D8BE867400) [pid = 2080] [serial = 17] [outer = 0000000000000000] [url = about:blank]
15:00:29     INFO -  --DOMWINDOW == 3 (000001D8BE866C00) [pid = 2080] [serial = 16] [outer = 0000000000000000] [url = about:blank]
15:00:29     INFO -  --DOMWINDOW == 2 (000001D8BC090400) [pid = 2080] [serial = 15] [outer = 0000000000000000] [url = chrome://extensions/content/dummy.xul]
15:00:29     INFO -  --DOMWINDOW == 1 (000001D8BCDF3000) [pid = 2080] [serial = 12] [outer = 0000000000000000] [url = chrome://extensions/content/dummy.xul]
15:00:29     INFO -  --DOMWINDOW == 0 (000001D8B9042C00) [pid = 2080] [serial = 7] [outer = 0000000000000000] [url = resource://gre-resources/hiddenWindow.html]
15:00:29     INFO -  nsStringStats
15:00:29     INFO -   => mAllocCount:          60017
15:00:29     INFO -   => mReallocCount:         4302
15:00:29     INFO -   => mFreeCount:           60017
15:00:29     INFO -   => mShareCount:          63294
15:00:29     INFO -   => mAdoptCount:           2713
15:00:29     INFO -   => mAdoptFreeCount:       2763
15:00:29     INFO -   => Process ID: 2080, Thread ID: 7108
15:00:29     INFO -  REFTEST INFO | Copy/paste: C:\Users\task_1532702850\build\win32-minidump_stackwalk.exe c:\users\genericworker\appdata\local\temp\tmppva7hb.mozrunner\minidumps\d36c35cd-3cfc-4d44-a06b-f4d20c78558f.dmp C:\Users\task_1532702850\build\symbols
15:00:35     INFO -  REFTEST INFO | Saved minidump as C:\Users\task_1532702850\build\blobber_upload_dir\d36c35cd-3cfc-4d44-a06b-f4d20c78558f.dmp
15:00:35     INFO -  REFTEST INFO | Saved app info as C:\Users\task_1532702850\build\blobber_upload_dir\d36c35cd-3cfc-4d44-a06b-f4d20c78558f.extra
15:00:35    ERROR -  REFTEST PROCESS-CRASH | file:///C:/Users/task_1532702850/build/tests/reftest/tests/layout/reftests/view-source/view-source-image.html | application crashed [@ nsThreadManager::UnregisterCurrentThread(nsThread &,bool)]
15:00:35     INFO -  Crash dump filename: c:\users\genericworker\appdata\local\temp\tmppva7hb.mozrunner\minidumps\d36c35cd-3cfc-4d44-a06b-f4d20c78558f.dmp
15:00:35     INFO -  Operating system: Windows NT
15:00:35     INFO -                    10.0.15063
15:00:35     INFO -  CPU: amd64
15:00:35     INFO -       family 6 model 94 stepping 3
15:00:35     INFO -       8 CPUs
15:00:35     INFO -  GPU: UNKNOWN
15:00:35     INFO -  Crash reason:  EXCEPTION_BREAKPOINT
15:00:35     INFO -  Crash address: 0x7fffcbcf1895
15:00:35     INFO -  Assertion: Unknown assertion type 0x00000000
15:00:35     INFO -  Process uptime: 4 seconds
15:00:35     INFO -  Thread 7 (crashed)
15:00:35     INFO -   0  xul.dll!nsThreadManager::UnregisterCurrentThread(nsThread &,bool) [nsThreadManager.cpp:dfe8ab123e01667be489a20b253e3cd3b20c10bd : 422 + 0x0]
15:00:35     INFO -      rax = 0x0000000000000000   rdx = 0x0000002c581ffa18
15:00:35     INFO -      rcx = 0x00000000ffffffff   rbx = 0x000000006321d401
15:00:35     INFO -      rsi = 0x00007fffd3683a78   rdi = 0xe5e5e5e5e5e5e5e5
15:00:35     INFO -      rbp = 0x0000015c6321d400   rsp = 0x0000002c581ffa00
15:00:35     INFO -       r8 = 0x0000002c581ffa10    r9 = 0x0000002c581ffa08
15:00:35     INFO -      r10 = 0x0000000000000000   r11 = 0x0000002c581faf90
15:00:35     INFO -      r12 = 0x00007ffff246c560   r13 = 0x0000002c568bc000
15:00:35     INFO -      r14 = 0x0000000000000004   r15 = 0x0000015c63208fc0
15:00:35     INFO -      rip = 0x00007fffcbcf1895
15:00:35     INFO -      Found by: given as instruction pointer in context
15:00:35     INFO -   1  xul.dll!nsThreadManager::ReleaseThread(void *) [nsThreadManager.cpp:dfe8ab123e01667be489a20b253e3cd3b20c10bd : 112 + 0x1a]
15:00:35     INFO -      rbx = 0x000000006321d401   rbp = 0x0000015c6321d400
15:00:35     INFO -      rsp = 0x0000002c581ffa50   r12 = 0x00007ffff246c560
15:00:35     INFO -      r13 = 0x0000002c568bc000   r14 = 0x0000000000000004
15:00:35     INFO -      r15 = 0x0000015c63208fc0   rip = 0x00007fffcbcf52c8
15:00:35     INFO -      Found by: call frame info
15:00:35     INFO -   2  nss3.dll!PR_DestroyThreadPrivate [prtpd.c:dfe8ab123e01667be489a20b253e3cd3b20c10bd : 237 + 0x4]
15:00:35     INFO -      rbx = 0x000000006321d401   rbp = 0x0000015c6321d400
15:00:35     INFO -      rsp = 0x0000002c581ffa80   r12 = 0x00007ffff246c560
15:00:35     INFO -      r13 = 0x0000002c568bc000   r14 = 0x0000000000000004
15:00:35     INFO -      r15 = 0x0000015c63208fc0   rip = 0x00007ffff238b428
15:00:35     INFO -      Found by: call frame info
15:00:35     INFO -   3  nss3.dll!PR_CleanupThread [prcthr.c:dfe8ab123e01667be489a20b253e3cd3b20c10bd : 30 + 0x5]
15:00:35     INFO -      rbx = 0x000000006321d401   rbp = 0x0000015c6321d400
15:00:35     INFO -      rsp = 0x0000002c581ffad0   r12 = 0x00007ffff246c560
15:00:35     INFO -      r13 = 0x0000002c568bc000   r14 = 0x0000000000000004
15:00:35     INFO -      r15 = 0x0000015c63208fc0   rip = 0x00007ffff23899dd
15:00:35     INFO -      Found by: call frame info
15:00:35     INFO -   4  nss3.dll!PRI_DetachThread [pruthr.c:dfe8ab123e01667be489a20b253e3cd3b20c10bd : 1482 + 0x8]
15:00:35     INFO -      rbx = 0x000000006321d401   rbp = 0x0000015c6321d400
15:00:35     INFO -      rsp = 0x0000002c581ffb00   r12 = 0x00007ffff246c560
15:00:35     INFO -      r13 = 0x0000002c568bc000   r14 = 0x0000000000000004
15:00:35     INFO -      r15 = 0x0000015c63208fc0   rip = 0x00007ffff23888cc
15:00:35     INFO -      Found by: call frame info
15:00:35     INFO -   5  nss3.dll!DllMain [w95dllmain.c:dfe8ab123e01667be489a20b253e3cd3b20c10bd : 32 + 0x5]
15:00:35     INFO -      rbx = 0x000000006321d401   rbp = 0x0000015c6321d400
15:00:35     INFO -      rsp = 0x0000002c581ffb30   r12 = 0x00007ffff246c560
15:00:35     INFO -      r13 = 0x0000002c568bc000   r14 = 0x0000000000000004
15:00:35     INFO -      r15 = 0x0000015c63208fc0   rip = 0x00007ffff2373252
15:00:35     INFO -      Found by: call frame info
Kris, seems like this could be related to bug 1476405.
Flags: needinfo?(kmaglione+bmo)
Should be fixed by the backout of bug 1476405, or at least the failure rate should decrease. 
Backout: https://hg.mozilla.org/mozilla-central/rev/77b07565d021
You need to log in before you can comment on or make changes to this bug.