Closed Bug 1144280 Opened 9 years ago Closed 3 years ago

Intermittent test_scopes.html | Assertion count 1 is greater than expected (Can't get permissions of target file: 'Error', file netwerk/base/nsFileStreams.cpp, line 912)

Categories

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

x86_64
macOS
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: RyanVM, Unassigned)

References

Details

(Keywords: assertion, intermittent-failure, regression)

Tentatively calling this a regression from bug 1130688. Waiting to see how frequent it is before deciding whether to backout or not.

11:25:09 INFO - 421 INFO TEST-START | dom/workers/test/serviceworkers/test_scopes.html
11:25:09 INFO - ++DOMWINDOW == 122 (0x12dfe7200) [pid = 1782] [serial = 1257] [outer = 0x12c44b980]
11:25:09 INFO - [1782] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 2364
11:25:09 INFO - [1782] WARNING: NS_ENSURE_SUCCESS(rv, false) failed with result 0x80004005: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/netwerk/protocol/http/HttpBaseChannel.cpp, line 1965
11:25:09 INFO - [1782] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 2364
11:25:09 INFO - [1782] WARNING: NS_ENSURE_SUCCESS(rv, false) failed with result 0x80004005: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/netwerk/protocol/http/HttpBaseChannel.cpp, line 1965
11:25:09 INFO - [1782] WARNING: Performance Entry buffer size maximum reached!: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/base/nsPerformance.cpp, line 562
11:25:09 INFO - [1782] WARNING: Byte wise check is disabled, just using new one: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 595
11:25:09 INFO - [1782] WARNING: Byte wise check is disabled, just using new one: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 595
11:25:09 INFO - [1782] WARNING: Byte wise check is disabled, just using new one: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 595
11:25:09 INFO - [1782] WARNING: Byte wise check is disabled, just using new one: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 595
11:25:09 INFO - [1782] WARNING: Byte wise check is disabled, just using new one: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 595
11:25:09 INFO - [1782] WARNING: Byte wise check is disabled, just using new one: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 595
11:25:09 INFO - [1782] WARNING: Byte wise check is disabled, just using new one: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 595
11:25:09 INFO - [1782] WARNING: Byte wise check is disabled, just using new one: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 595
11:25:09 INFO - [1782] WARNING: By default a service worker's scope is restricted to at or below it's script's location.: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 607
11:25:09 INFO - [1782] WARNING: 'NS_FAILED(aStatus)', file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/workers/ServiceWorkerManager.cpp, line 117
11:25:09 INFO - [1782] ###!!! ASSERTION: Can't get permissions of target file: 'Error', file /builds/slave/m-in-m64-d-0000000000000000000/build/src/netwerk/base/nsFileStreams.cpp, line 912
11:25:48 INFO - #01: nsFileStreamBase::MaybeOpen(nsIFile*, int, int, bool) [netwerk/base/nsFileStreams.cpp:319]
11:25:48 INFO - #02: NS_NewSafeLocalFileOutputStream(nsIOutputStream**, nsIFile*, int, int, int) [netwerk/base/nsNetUtil.h:1354]
11:25:48 INFO - #03: mozilla::dom::ServiceWorkerRegistrar::WriteData() [dom/workers/ServiceWorkerRegistrar.cpp:490]
11:25:48 INFO - #04: mozilla::dom::ServiceWorkerRegistrar::SaveData() [dom/workers/ServiceWorkerRegistrar.cpp:429]
11:25:48 INFO - #05: mozilla::dom::ServiceWorkerRegistrarSaveDataRunnable::Run() [xpcom/base/nsRefPtr.h:77]
11:25:48 INFO - #06: nsThreadPool::Run() [xpcom/glue/nsCOMPtr.h:389]
11:25:48 INFO - #07: _ZThn8_N12nsThreadPool3RunEv [obj-firefox/xpcom/threads/Unified_cpp_xpcom_threads0.cpp:239]
11:25:48 INFO - #08: nsThread::ProcessNextEvent(bool, bool*) [xpcom/threads/nsThread.cpp:855]
11:25:48 INFO - #09: NS_ProcessNextEvent(nsIThread*, bool) [xpcom/glue/nsThreadUtils.cpp:265]
11:25:48 INFO - #10: mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) [ipc/glue/MessagePump.cpp:368]
11:25:48 INFO - #11: MessageLoop::RunInternal() [ipc/chromium/src/base/message_loop.cc:234]
11:25:48 INFO - #12: MessageLoop::Run() [ipc/chromium/src/base/message_loop.cc:517]
11:25:48 INFO - #13: nsThread::ThreadFunc(void*) [xpcom/threads/nsThread.cpp:358]
11:25:50 INFO - #14: _pt_root [nsprpub/pr/src/pthreads/ptthread.c:215]
11:25:50 INFO - #15: libSystem.B.dylib + 0x39fd6
11:25:50 INFO - 422 INFO TEST-OK | dom/workers/test/serviceworkers/test_scopes.html | took 241ms
11:25:50 INFO - ++DOMWINDOW == 123 (0x12e144780) [pid = 1782] [serial = 1258] [outer = 0x12c44b980]
11:25:50 INFO - [1782] WARNING: Performance Entry buffer size maximum reached!: file /builds/slave/m-in-m64-d-0000000000000000000/build/src/dom/base/nsPerformance.cpp, line 562
11:25:50 INFO - 423 INFO TEST-UNEXPECTED-ERROR | dom/workers/test/serviceworkers/test_scopes.html | Assertion count 1 is greater than expected range 0-0 assertions.
IINM the function in question is <https://dxr.mozilla.org/mozilla-central/source/xpcom/io/nsLocalFileUnix.cpp#1160>.  That suggests that the only way that it could be failing is if stat() is failing on the file.  One way that this could be happening is if the file is deleted between <https://dxr.mozilla.org/mozilla-central/source/netwerk/base/nsFileStreams.cpp#890> and the place where we try to do the stat(), which can happen if someone is racing with us to delete this file.

Does this seem plausible, Nikhil?
Flags: needinfo?(nsm.nikhil)
I'm not sure how this could happen. It could even be some issue with the machine running the test :/
Flags: needinfo?(nsm.nikhil) → needinfo?(amarchesini)
[Mass Closure] Closing Intermittent as a one off
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Flags: needinfo?(amarchesini)
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Bulk assigning P3 to all open intermittent bugs without a priority set in Firefox components per bug 1298978.
Priority: -- → P3
Priority: P3 → P5

Bugbug thinks this bug is a regression, but please revert this change in case of error.

Keywords: regression

Closing intermittent bugs not touched in the past 6 months.

Status: REOPENED → RESOLVED
Closed: 9 years ago3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.