Closed Bug 1135853 Opened 11 years ago Closed 10 years ago

Intermittent test_bug978260.html | application crashed [@ mozilla::dom::workers::WorkerPrivateParent<mozilla::dom::workers::WorkerPrivate>::Resume(JSContext*, nsPIDOMWindow*)] after "Assertion failure: mParentSuspended, at WorkerPrivate.cpp:2858"

Categories

(Core :: DOM: Workers, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
Tracking Status
e10s - ---
firefox50 --- wontfix
firefox51 --- wontfix
firefox52 --- fixed

People

(Reporter: RyanVM, Unassigned)

References

Details

(Keywords: assertion, crash, intermittent-failure)

10:13:55 INFO - 241 INFO TEST-START | dom/workers/test/test_bug978260.html 10:13:55 INFO - ###!!! [Parent][OnMaybeDequeueOne] Error: Channel closing: too late to send/recv, messages will be lost 10:13:55 INFO - ###!!! [Parent][OnMaybeDequeueOne] Error: Channel closing: too late to send/recv, messages will be lost 10:13:55 INFO - ###!!! [Parent][OnMaybeDequeueOne] Error: Channel closing: too late to send/recv, messages will be lost 10:13:56 INFO - ++DOMWINDOW == 42 (0xa67f6da0) [pid = 20897] [serial = 401] [outer = 0xae18fc30] 10:13:56 INFO - [Child 20897] WARNING: Performance Entry buffer size maximum reached!: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/dom/base/nsPerformance.cpp, line 560 10:13:56 INFO - [Child 20897] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 2369 10:13:56 INFO - [Child 20897] WARNING: NS_ENSURE_SUCCESS(rv, false) failed with result 0x80004005: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/netwerk/protocol/http/HttpBaseChannel.cpp, line 1952 10:13:56 INFO - [Child 20897] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 2369 10:13:56 INFO - [Child 20897] WARNING: NS_ENSURE_SUCCESS(rv, false) failed with result 0x80004005: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/netwerk/protocol/http/HttpBaseChannel.cpp, line 1952 10:13:56 INFO - [Child 20897] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 2369 10:13:56 INFO - [Child 20897] WARNING: NS_ENSURE_SUCCESS(rv, false) failed with result 0x80004005: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/netwerk/protocol/http/HttpBaseChannel.cpp, line 1952 10:13:56 INFO - [Child 20897] WARNING: Called close() before start()!: 'mStarted', file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/dom/workers/MessagePort.cpp, line 214 10:13:56 INFO - [Child 20897] WARNING: Called close() before start()!: 'mStarted', file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/dom/workers/MessagePort.cpp, line 214 10:13:56 INFO - [Child 20897] WARNING: Called close() before start()!: 'mStarted', file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/dom/workers/MessagePort.cpp, line 214 10:13:56 INFO - [Child 20897] WARNING: Called close() before start()!: 'mStarted', file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/dom/workers/MessagePort.cpp, line 214 10:13:56 INFO - [Child 20897] WARNING: Called close() before start()!: 'mStarted', file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/dom/workers/MessagePort.cpp, line 214 10:13:56 INFO - [Child 20897] WARNING: NS_ENSURE_SUCCESS(EnsureScriptEnvironment(), nullptr) failed with result 0x80040111: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/docshell/base/nsDocShell.cpp, line 4571 10:13:56 INFO - --DOMWINDOW == 41 (0xa67f9840) [pid = 20897] [serial = 366] [outer = (nil)] [url = http://mochi.test:8888/tests/dom/workers/test/test_blobConstructor.html] 10:13:56 INFO - --DOMWINDOW == 40 (0xa7559760) [pid = 20897] [serial = 364] [outer = (nil)] [url = http://mochi.test:8888/tests/dom/workers/test/test_atob.html] 10:13:56 INFO - --DOMWINDOW == 39 (0xa67f3380) [pid = 20897] [serial = 368] [outer = (nil)] [url = http://mochi.test:8888/tests/dom/workers/test/test_blobWorkers.html] 10:13:56 INFO - --DOMWINDOW == 38 (0xa67f5660) [pid = 20897] [serial = 377] [outer = (nil)] [url = about:blank] 10:13:56 INFO - --DOMWINDOW == 37 (0xa67f82f0) [pid = 20897] [serial = 388] [outer = (nil)] [url = about:blank] 10:13:56 INFO - --DOMWINDOW == 36 (0xa67f7b30) [pid = 20897] [serial = 386] [outer = (nil)] [url = about:blank] 10:13:56 INFO - Assertion failure: mParentSuspended, at /builds/slave/b2g-in-lx-d-000000000000000000/build/src/dom/workers/WorkerPrivate.cpp:2858 10:14:21 INFO - #01: mozilla::dom::workers::WorkerPrivateParent<mozilla::dom::workers::WorkerPrivate>::Resume(JSContext*, nsPIDOMWindow*) [dom/workers/WorkerPrivate.cpp:2858] 10:14:21 INFO - #02: mozilla::dom::workers::WorkerPrivateParent<mozilla::dom::workers::WorkerPrivate>::SynchronizeAndResumeRunnable::Run() [dom/workers/WorkerPrivate.cpp:1982] 10:14:21 INFO - #03: nsThread::ProcessNextEvent(bool, bool*) [xpcom/threads/nsThread.cpp:855] 10:14:21 INFO - #04: NS_ProcessNextEvent(nsIThread*, bool) [xpcom/glue/nsThreadUtils.cpp:265] 10:14:21 INFO - #05: mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) [ipc/glue/MessagePump.cpp:100] 10:14:21 INFO - #06: MessageLoop::RunInternal() [ipc/chromium/src/base/message_loop.cc:233] 10:14:21 INFO - #07: MessageLoop::Run() [ipc/chromium/src/base/message_loop.cc:508] 10:14:21 INFO - #08: nsBaseAppShell::Run() [widget/nsBaseAppShell.cpp:166] 10:14:21 INFO - #09: XRE_RunAppShell [toolkit/xre/nsEmbedFunctions.cpp:743] 10:14:21 INFO - #10: mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) [ipc/glue/MessagePump.cpp:272] 10:14:21 INFO - #11: MessageLoop::RunInternal() [ipc/chromium/src/base/message_loop.cc:233] 10:14:21 INFO - #12: MessageLoop::Run() [ipc/chromium/src/base/message_loop.cc:508] 10:14:21 INFO - #13: XRE_InitChildProcess [toolkit/xre/nsEmbedFunctions.cpp:584] 10:14:21 INFO - #14: content_process_main(int, char**) [ipc/contentproc/plugin-container.cpp:212] 10:14:21 INFO - #15: main [ipc/app/MozillaRuntimeMain.cpp:12] 10:14:21 INFO - ###!!! [Parent][MessageChannel] Error: Channel error: cannot send/recv 10:14:21 INFO - ++DOCSHELL 0x9c389000 == 8 [pid = 20855] [id = 9] 10:14:21 INFO - ++DOMWINDOW == 15 (0x9c8b9ea0) [pid = 20855] [serial = 21] [outer = (nil)] 10:14:21 INFO - ++DOMWINDOW == 16 (0x9c8ba470) [pid = 20855] [serial = 22] [outer = 0x9c8b9ea0] 10:14:21 INFO - [Parent 20855] WARNING: RemoveObserver() called for unregistered observer: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/hal/Hal.cpp, line 205 10:14:21 INFO - [Parent 20855] WARNING: RemoveObserver() called for unregistered observer: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/hal/Hal.cpp, line 205 10:14:21 INFO - [Parent 20855] WARNING: RemoveObserver() called for unregistered observer: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/hal/Hal.cpp, line 205 10:14:21 INFO - [Parent 20855] WARNING: RemoveObserver() called for unregistered observer: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/hal/Hal.cpp, line 205 10:14:21 INFO - [Parent 20855] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 2369 10:14:21 INFO - [Parent 20855] WARNING: NS_ENSURE_SUCCESS(rv, false) failed with result 0x80004005: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/netwerk/protocol/http/HttpBaseChannel.cpp, line 1952 10:14:21 INFO - [Parent 20855] WARNING: NS_ENSURE_TRUE(aURI) failed: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/netwerk/dns/nsEffectiveTLDService.cpp, line 158 10:14:21 INFO - [Parent 20855] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80070057: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/dom/base/ThirdPartyUtil.cpp, line 353 10:14:21 INFO - ++DOMWINDOW == 17 (0x9c8baa40) [pid = 20855] [serial = 23] [outer = 0x9c8b9ea0] 10:14:21 INFO - [Parent 20855] WARNING: NS_ENSURE_SUCCESS(rv, BadImage(newImage)) failed with result 0x80004005: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/image/src/ImageFactory.cpp, line 205 10:14:21 INFO - [Parent 20855] WARNING: Image width or height is non-positive: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/layout/base/nsLayoutUtils.cpp, line 6007 10:14:21 INFO - [Parent 20855] WARNING: Image width or height is non-positive: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/layout/base/nsLayoutUtils.cpp, line 6007 10:14:21 INFO - --DOMWINDOW == 16 (0x9c8ba470) [pid = 20855] [serial = 22] [outer = (nil)] [url = about:blank] 10:15:16 INFO - [Parent 20855] WARNING: 1 sort operation has occurred for the SQL statement '0x99e31e20'. See https://developer.mozilla.org/En/Storage/Warnings details.: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/storage/src/mozStoragePrivateHelpers.cpp, line 114 10:15:16 INFO - JavaScript strict warning: resource://gre/modules/FormHistory.jsm, line 639: ReferenceError: reference to undefined property change.guid 10:15:16 INFO - [Parent 20855] WARNING: 1 sort operation has occurred for the SQL statement '0x9c6fc710'. See https://developer.mozilla.org/En/Storage/Warnings details.: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/storage/src/mozStoragePrivateHelpers.cpp, line 114 10:15:18 INFO - [Parent 20855] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/netwerk/base/nsFileStreams.cpp, line 205 10:15:18 INFO - [Parent 20855] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/netwerk/base/nsFileStreams.cpp, line 492 10:15:18 INFO - [Parent 20855] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/netwerk/base/nsFileStreams.cpp, line 205 10:15:18 INFO - [Parent 20855] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/netwerk/base/nsFileStreams.cpp, line 492 10:15:18 INFO - [Parent 20855] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/netwerk/base/nsFileStreams.cpp, line 205 10:15:18 INFO - [Parent 20855] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/netwerk/base/nsFileStreams.cpp, line 492 10:16:16 INFO - [Parent 20855] WARNING: GetDefaultCharsetForLocale: need to add multi locale support: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/intl/locale/unix/nsUNIXCharset.cpp, line 101 10:16:16 INFO - [Parent 20855] WARNING: 1 sort operation has occurred for the SQL statement '0x9c6fbfc0'. See https://developer.mozilla.org/En/Storage/Warnings details.: file /builds/slave/b2g-in-lx-d-000000000000000000/build/src/storage/src/mozStoragePrivateHelpers.cpp, line 114 10:21:46 INFO - 242 ERROR TEST-UNEXPECTED-TIMEOUT | dom/workers/test/test_bug978260.html | application timed out after 330 seconds with no output 10:21:46 INFO - Xlib: extension "RANDR" missing on display ":0". 10:21:47 INFO - TEST-INFO | screentopng: exit 0 10:21:48 INFO - TEST-INFO | Main app process: killed by SIGIOT 10:21:48 INFO - 243 ERROR TEST-UNEXPECTED-FAIL | dom/workers/test/test_bug978260.html | application terminated with exit code 6 10:21:48 INFO - runtests.py | Application ran for: 0:09:36.351969 10:21:48 INFO - zombiecheck | Reading PID log: /tmp/tmperH8hUpidlog 10:21:48 INFO - ==> process 20855 launched child process 20897 10:21:48 INFO - zombiecheck | Checking for orphan process with PID: 20897 10:22:02 INFO - mozcrash Saved minidump as /builds/slave/test/build/blobber_upload_dir/65d2ab3c-78df-2d2e-5a6a813f-4a56475c.dmp 10:22:02 INFO - mozcrash Saved app info as /builds/slave/test/build/blobber_upload_dir/65d2ab3c-78df-2d2e-5a6a813f-4a56475c.extra 10:22:02 WARNING - PROCESS-CRASH | dom/workers/test/test_bug978260.html | application crashed [@ mozilla::dom::workers::WorkerPrivateParent<mozilla::dom::workers::WorkerPrivate>::Resume(JSContext*, nsPIDOMWindow*)] 10:22:02 INFO - Crash dump filename: /tmp/tmpEaG3bl.mozrunner/minidumps/65d2ab3c-78df-2d2e-5a6a813f-4a56475c.dmp 10:22:02 INFO - Operating system: Linux 10:22:02 INFO - 0.0.0 Linux 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 10:22:02 INFO - CPU: x86 10:22:02 INFO - GenuineIntel family 6 model 62 stepping 4 10:22:02 INFO - 1 CPU 10:22:02 INFO - Crash reason: SIGSEGV 10:22:02 INFO - Crash address: 0x0 10:22:02 INFO - Thread 0 (crashed) 10:22:02 INFO - 0 libxul.so!mozilla::dom::workers::WorkerPrivateParent<mozilla::dom::workers::WorkerPrivate>::Resume(JSContext*, nsPIDOMWindow*) [WorkerPrivate.cpp:2209a8de5d23 : 2858 + 0x19] 10:22:02 INFO - eip = 0xb41b9538 esp = 0xbf80a790 ebp = 0xbf80a7d8 ebx = 0xb75a23dc 10:22:02 INFO - esi = 0xa662b400 edi = 0xa9484480 eax = 0x00000000 ecx = 0xb28908ac 10:22:02 INFO - edx = 0x00000000 efl = 0x00010282 10:22:02 INFO - Found by: given as instruction pointer in context 10:22:02 INFO - 1 libxul.so!mozilla::dom::workers::WorkerPrivateParent<mozilla::dom::workers::WorkerPrivate>::SynchronizeAndResumeRunnable::Run() [WorkerPrivate.cpp:2209a8de5d23 : 1982 + 0x7] 10:22:02 INFO - eip = 0xb41b97b1 esp = 0xbf80a7e0 ebp = 0xbf80a848 ebx = 0xb75a23dc 10:22:02 INFO - esi = 0xa62179c0 edi = 0xa9484480 10:22:02 INFO - Found by: call frame info 10:22:02 INFO - 2 libxul.so!nsThread::ProcessNextEvent(bool, bool*) [nsThread.cpp:2209a8de5d23 : 855 + 0x13] 10:22:02 INFO - eip = 0xb2da299e esp = 0xbf80a850 ebp = 0xbf80a8b8 ebx = 0xb75a23dc 10:22:02 INFO - esi = 0xb1235bc0 edi = 0xbf80a888 10:22:02 INFO - Found by: call frame info 10:22:02 INFO - 3 libxul.so!NS_ProcessNextEvent(nsIThread*, bool) [nsThreadUtils.cpp:2209a8de5d23 : 265 + 0xf] 10:22:02 INFO - eip = 0xb2dc2287 esp = 0xbf80a8c0 ebp = 0xbf80a8f8 ebx = 0xb75a23dc 10:22:02 INFO - esi = 0xb1234310 edi = 0xbf80ab40 10:22:02 INFO - Found by: call frame info 10:22:02 INFO - 4 libxul.so!mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) [MessagePump.cpp:2209a8de5d23 : 99 + 0xb] 10:22:02 INFO - eip = 0xb303ae1a esp = 0xbf80a900 ebp = 0xbf80a948 ebx = 0xb75a23dc 10:22:02 INFO - esi = 0xb1234310 edi = 0xbf80ab40 10:22:02 INFO - Found by: call frame info 10:22:02 INFO - 5 libxul.so!MessageLoop::RunInternal() [message_loop.cc:2209a8de5d23 : 233 + 0x13] 10:22:02 INFO - eip = 0xb30223b8 esp = 0xbf80a950 ebp = 0xbf80a978 ebx = 0xb75a23dc 10:22:02 INFO - esi = 0xbf80ab40 edi = 0xb1235bc0 10:22:02 INFO - Found by: call frame info 10:22:02 INFO - 6 libxul.so!MessageLoop::Run() [message_loop.cc:2209a8de5d23 : 226 + 0x7] 10:22:02 INFO - eip = 0xb30223de esp = 0xbf80a980 ebp = 0xbf80a9a8 ebx = 0xb75a23dc 10:22:02 INFO - esi = 0xbf80ab40 edi = 0xb1235bc0 10:22:02 INFO - Found by: call frame info 10:22:02 INFO - 7 libxul.so!nsBaseAppShell::Run() [nsBaseAppShell.cpp:2209a8de5d23 : 164 + 0xd] 10:22:02 INFO - eip = 0xb42e9cb9 esp = 0xbf80a9b0 ebp = 0xbf80a9d8 ebx = 0xb75a23dc 10:22:02 INFO - esi = 0xabae9ec0 edi = 0xb1235bc0 10:22:02 INFO - Found by: call frame info 10:22:02 INFO - 8 libxul.so!XRE_RunAppShell [nsEmbedFunctions.cpp:2209a8de5d23 : 743 + 0x8] 10:22:02 INFO - eip = 0xb4a4bf7e esp = 0xbf80a9e0 ebp = 0xbf80aa18 ebx = 0xb75a23dc 10:22:02 INFO - esi = 0xbf80ab40 edi = 0xb1234310 10:22:02 INFO - Found by: call frame info 10:22:02 INFO - 9 libxul.so!mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) [MessagePump.cpp:2209a8de5d23 : 272 + 0x4] 10:22:02 INFO - eip = 0xb303af8e esp = 0xbf80aa20 ebp = 0xbf80aa48 ebx = 0xb75a23dc 10:22:02 INFO - esi = 0xbf80ab40 edi = 0xb1234310 10:22:02 INFO - Found by: call frame info
This doesn't look e10s-related.
Bulk assigning P3 to all open intermittent bugs without a priority set in Firefox components per bug 1298978.
Priority: -- → P3
I'm hitting this with my patches in bug 1303167. It seems we have a race where the following can happen: 1) Window or worker does new Worker() or equivalent. 2) Async worker loading starts 3) Window is suspended 4) Worker finally loads 5) Window resumes and tries to resume worker 6) Worker asserts since its not suspended The fix is to suspend workers on creation if their parent is suspended. I'm just going to fix this as part of bug 1303167.
Status: NEW → UNCONFIRMED
Depends on: 1303167
Ever confirmed: false
I'm going to go ahead and mark this fixed based on bug 1303167 landing.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.