Closed Bug 1407501 Opened 7 years ago Closed 6 years ago

Intermittent TEST-UNEXPECTED-TIMEOUT | toolkit/components/extensions/test/xpcshell/test_ext_contentscript_scriptCreated.js | Test timed out

Categories

(WebExtensions :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

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

References

Details

(Keywords: intermittent-failure)

:andym, this hasn't hit the filters of the orangefactor robot, but I saw this in looking at trends and we have 46 failures on this bug in the last week all on debug (heavily weighted for windows): https://brasstacks.mozilla.com/orangefactor/?display=Bug&bugid=1407501&endday=2017-10-26&startday=2017-10-01&tree=trunk you can see the trend above that this started on October 18th and has been failing a lot since then.
Flags: needinfo?(amckay)
Whiteboard: [stockwell needswork:owner]
I'll add this to my list of intermittents to investigate.
Assignee: nobody → bob.silverberg
Flags: needinfo?(amckay)
Priority: P5 → P2
Stealing this. There are some suspicious assertion failures in those logs.
Assignee: bob.silverberg → kmaglione+bmo
Pushed by jmaher@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/a108409e726a Disable toolkit/components/extensions/test/xpcshell/test_ext_contentscript_scriptCreated.js on debug for frequent failures. r=me, a=testonly
I disabled this test for having >200 failures in the last 30 days, please remember to enable this when testing a fix
Keywords: leave-open
Whiteboard: [stockwell disable-recommended] → [stockwell disabled]
This has been disabled on all platforms, so should be treated as a high priority to fix and re-enable. It's currently assigned to Kris.
Product: Toolkit → WebExtensions
The timeout was caused by a crashing content process; stack trace pasted below (log from first comment). The assertion is triggered here: https://searchfox.org/mozilla-central/rev/f2ac80ab7dbde5400a3400d463e07331194dec94/layout/base/nsDocumentViewer.cpp#1126-1134 Given the unsatisfied conditions, it seems that the document's readyState is at READYSTATE_LOADING (or somehow the URL is not about:blank, e.g. empty?) This same assertion is always triggered when I run the test case from bug 1465388 in a debug build of Firefox. I think that the failure is related to the use of blockParsing, and when content scripts are involved, document.blockParsing is only called when the script is not preloaded yet. So if the test case's child frame is loaded before the content script is loaded, then this assertion would be triggered. This is a racy condition, hence the test failure does not occur 100% of the time. 17:57:08 INFO - PID 10936 | [Child 13020, Main Thread] ###!!! ASSERTION: Bad readystate: 'mDocument->IsXULDocument() || mDocument->GetReadyStateEnum() == nsIDocument::READYSTATE_INTERACTIVE || (mDocument->GetReadyStateEnum() == nsIDocument::READYSTATE_UNINITIALIZED && NS_IsAboutBlank(mDocument->GetDocumentURI()))', file z:/build/build/src/layout/base/nsDocumentViewer.cpp, line 1030 17:57:21 INFO - PID 10936 | #01: nsDocShell::EndPageLoad(nsIWebProgress *,nsIChannel *,nsresult) [docshell/base/nsDocShell.cpp:7761] 17:57:21 INFO - PID 10936 | #02: nsDocShell::OnStateChange(nsIWebProgress *,nsIRequest *,unsigned int,nsresult) [docshell/base/nsDocShell.cpp:7559] 17:57:21 INFO - PID 10936 | #03: nsDocLoader::DoFireOnStateChange(nsIWebProgress * const,nsIRequest * const,int &,nsresult) [uriloader/base/nsDocLoader.cpp:1320] 17:57:21 INFO - PID 10936 | #04: nsDocLoader::doStopDocumentLoad(nsIRequest *,nsresult) [uriloader/base/nsDocLoader.cpp:861] 17:57:21 INFO - PID 10936 | #05: nsDocLoader::DocLoaderIsEmpty(bool) [uriloader/base/nsDocLoader.cpp:752] 17:57:21 INFO - PID 10936 | #06: nsDocLoader::OnStopRequest(nsIRequest *,nsISupports *,nsresult) [uriloader/base/nsDocLoader.cpp:633] 17:57:21 INFO - PID 10936 | #07: mozilla::net::nsLoadGroup::RemoveRequest(nsIRequest *,nsISupports *,nsresult) [netwerk/base/nsLoadGroup.cpp:629] 17:57:21 INFO - PID 10936 | #08: nsBaseChannel::OnStopRequest(nsIRequest *,nsISupports *,nsresult) [netwerk/base/nsBaseChannel.cpp:888] 17:57:21 INFO - PID 10936 | #09: nsInputStreamPump::OnStateStop() [netwerk/base/nsInputStreamPump.cpp:705] 17:57:21 INFO - PID 10936 | #10: nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream *) [netwerk/base/nsInputStreamPump.cpp:428] 17:57:21 INFO - PID 10936 | #11: nsInputStreamReadyEvent::Run() [xpcom/io/nsStreamUtils.cpp:99] 17:57:21 INFO - PID 10936 | #12: mozilla::SchedulerGroup::Runnable::Run() [xpcom/threads/SchedulerGroup.cpp:396] 17:57:21 INFO - PID 10936 | #13: nsThread::ProcessNextEvent(bool,bool *) [xpcom/threads/nsThread.cpp:1038] 17:57:21 INFO - PID 10936 | #14: NS_ProcessNextEvent(nsIThread *,bool) [xpcom/threads/nsThreadUtils.cpp:524] 17:57:21 INFO - PID 10936 | #15: mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate *) [ipc/glue/MessagePump.cpp:97] 17:57:21 INFO - PID 10936 | #16: mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate *) [ipc/glue/MessagePump.cpp:301] 17:57:21 INFO - PID 10936 | #17: MessageLoop::RunHandler() [ipc/chromium/src/base/message_loop.cc:320] 17:57:21 INFO - PID 10936 | #18: MessageLoop::Run() [ipc/chromium/src/base/message_loop.cc:300] 17:57:21 INFO - PID 10936 | #19: nsBaseAppShell::Run() [widget/nsBaseAppShell.cpp:160] 17:57:21 INFO - PID 10936 | #20: nsAppShell::Run() [widget/windows/nsAppShell.cpp:232] 17:57:21 INFO - PID 10936 | #21: XRE_RunAppShell() [toolkit/xre/nsEmbedFunctions.cpp:877] 17:57:21 INFO - PID 10936 | #22: mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate *) [ipc/glue/MessagePump.cpp:269] 17:57:21 INFO - PID 10936 | #23: MessageLoop::RunHandler() [ipc/chromium/src/base/message_loop.cc:320] 17:57:21 INFO - PID 10936 | #24: MessageLoop::Run() [ipc/chromium/src/base/message_loop.cc:300] 17:57:21 INFO - PID 10936 | #25: XRE_InitChildProcess(int,char * * const,XREChildData const *) [toolkit/xre/nsEmbedFunctions.cpp:707] 17:57:21 INFO - PID 10936 | #26: content_process_main(mozilla::Bootstrap *,int,char * * const) [ipc/contentproc/plugin-container.cpp:64] 17:57:21 INFO - PID 10936 | #27: NS_internal_main(int,char * *) [ipc/app/MozillaRuntimeMain.cpp:25] 17:57:21 INFO - PID 10936 | #28: wmain [toolkit/xre/nsWindowsWMain.cpp:114] 17:57:21 INFO - PID 10936 | #29: __scrt_common_main_seh [f:/dd/vctools/crt/vcstartup/src/startup/exe_common.inl:253] 17:57:21 INFO - PID 10936 | #30: KERNEL32.DLL + 0x12774 17:57:21 INFO - PID 10936 | #31: ntdll.dll + 0x70d61
Assignee: kmaglione+bmo → rob
Status: NEW → ASSIGNED
Depends on: 1465388
Locally I managed to reproduce the crash with a different test (see previous comment) and fixed that crash in bug 1465388. I'll close this bug since I'm not seeing any new intermittents at https://treeherder.mozilla.org/intermittent-failures.html#/bugdetails?startday=2018-07-31&endday=2018-09-03&tree=all&bug=1407501
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: leave-open
Resolution: --- → FIXED
Whiteboard: [stockwell disabled]
See Also: → 1574010
You need to log in before you can comment on or make changes to this bug.