Closed
Bug 1179685
Opened 9 years ago
Closed 9 years ago
Assert/Crash running "postmessage-msgport-to-client.https.html" wpt service worker test in Nightly
Categories
(Core :: DOM: Service Workers, defect)
Core
DOM: Service Workers
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: noemi, Assigned: catalinb)
References
Details
Attachments
(3 files, 1 obsolete file)
(deleted),
text/rtf
|
Details | |
(deleted),
patch
|
baku
:
review+
catalinb
:
checkin+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
A Nightly crash occurs when executing "postmessage-msgport-to-client.https.html" wpt test such as |./mach web-platform-tests _mozilla/service-workers/service-worker/postmessage-msgport-to-client.https.html| with 7/1 master build
The assertion failure shown is as follows:
""Assertion failure: aClosure, at /Users/noef/Documents/mozilla-central/dom/workers/WorkerPrivate.cpp:693""
Please find attached the crash report corresponding to this
Comment 1•9 years ago
|
||
What is happening here is that we call mBuffer.read() here <https://dxr.allizom.org/mozilla-central/source/dom/workers/ServiceWorkerClient.cpp#130> passing nullptr as the closure argument (it is a default argument that we are passing in explicitly here) and in WorkerStructuredCloneCallbacks::ReadTransfer() <https://dxr.allizom.org/mozilla-central/source/dom/workers/WorkerPrivate.cpp#693> we MOZ_ASSERT(aClosure). In non-debug builds, if we end up with a SCTAG_DOM_MAP_MESSAGEPORT tag, we will crash.
Catalin, is this expected? It seems like passing a null closure to this function is a mistake.
Flags: needinfo?(catalin.badea392)
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8630223 -
Flags: review?(amarchesini)
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Ehsan Akhgari (not reviewing patches, not reading bugmail, needinfo? me!) from comment #1)
> What is happening here is that we call mBuffer.read() here
> <https://dxr.allizom.org/mozilla-central/source/dom/workers/
> ServiceWorkerClient.cpp#130> passing nullptr as the closure argument (it is
> a default argument that we are passing in explicitly here) and in
> WorkerStructuredCloneCallbacks::ReadTransfer()
> <https://dxr.allizom.org/mozilla-central/source/dom/workers/WorkerPrivate.
> cpp#693> we MOZ_ASSERT(aClosure). In non-debug builds, if we end up with a
> SCTAG_DOM_MAP_MESSAGEPORT tag, we will crash.
>
> Catalin, is this expected? It seems like passing a null closure to this
> function is a mistake.
No, that's a bug. I've uploaded a patch that fixes the issue.
Flags: needinfo?(catalin.badea392)
Updated•9 years ago
|
Attachment #8630223 -
Flags: review?(amarchesini) → review+
Assignee | ||
Updated•9 years ago
|
Attachment #8630223 -
Flags: checkin+
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → catalin.badea392
WPT(4) is failing, so backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/6b3e9fe5e044
https://treeherder.mozilla.org/logviewer.html#?job_id=11436547&repo=mozilla-inbound
Flags: needinfo?(catalin.badea392)
Assignee | ||
Comment 6•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(catalin.badea392)
Attachment #8631157 -
Flags: review?(ehsan)
Comment 7•9 years ago
|
||
Comment on attachment 8631157 [details] [diff] [review]
Change service worker postmsg-msgport-to-client wpt test expectation to PASS.
Review of attachment 8631157 [details] [diff] [review]:
-----------------------------------------------------------------
Hmm, usually when the test expectation file indicates that it passes everywhere, you can remove the ini file completely. So please do that if the test passes with that!
Attachment #8631157 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•9 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 8•9 years ago
|
||
Attachment #8631157 -
Attachment is obsolete: true
Comment 10•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/bbf6fa4325a4
https://hg.mozilla.org/mozilla-central/rev/34b09aa0ec63
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Reporter | ||
Comment 11•9 years ago
|
||
Hi,
just checked on m-c Nightly Debug (72835344333f revision), and the test is successfully executed. Thanks!
*Harness status: OK
*Found 1 tests
*1 Pass
You need to log in
before you can comment on or make changes to this bug.
Description
•