Closed
Bug 975695
Opened 11 years ago
Closed 11 years ago
"Assertion failure: !NS_HasPendingEvents(currentThread)" with many SharedWorkers
Categories
(Core :: DOM: Workers, defect)
Tracking
()
VERIFIED
FIXED
mozilla30
Tracking | Status | |
---|---|---|
firefox28 | --- | unaffected |
firefox29 | + | verified |
firefox30 | + | verified |
firefox-esr24 | --- | unaffected |
b2g18 | --- | unaffected |
b2g-v1.1hd | --- | unaffected |
b2g-v1.2 | --- | unaffected |
b2g-v1.3 | --- | unaffected |
b2g-v1.3T | --- | unaffected |
b2g-v1.4 | --- | fixed |
People
(Reporter: jruderman, Assigned: bent.mozilla)
References
Details
(4 keywords)
Attachments
(3 files)
(deleted),
text/html
|
Details | |
(deleted),
text/plain
|
Details | |
(deleted),
patch
|
khuey
:
review+
Sylvestre
:
approval-mozilla-aurora+
abillings
:
sec-approval+
|
Details | Diff | Splinter Review |
1. Load the testcase in a Firefox debug build
2. Immediately quit Firefox
Assertion failure: !NS_HasPendingEvents(currentThread), at dom/workers/WorkerPrivate.cpp:4499
Reporter | ||
Comment 1•11 years ago
|
||
This is bad. We're violating the threading invariants here by calling ScheduleDeletion on the main thread. I don't understand why those assertions aren't firing though ...
Group: core-security
Ah.
http://hg.mozilla.org/mozilla-central/annotate/31113754db3b/dom/workers/WorkerPrivate.cpp#l2349
That's unfortunate.
Assignee: nobody → bent.mozilla
Blocks: 914762
status-firefox28:
--- → unaffected
status-firefox29:
--- → affected
status-firefox30:
--- → affected
tracking-firefox29:
--- → ?
tracking-firefox30:
--- → ?
Keywords: regression
Updated•11 years ago
|
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8385628 -
Flags: review?(khuey)
Comment on attachment 8385628 [details] [diff] [review]
Fix, v1
Review of attachment 8385628 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/workers/WorkerPrivate.cpp
@@ +4481,4 @@
> MOZ_ASSERT(!mCancelAllPendingRunnables);
> mCancelAllPendingRunnables = true;
>
> + if (WorkerNeverRan == aRanOrNot) {
Yoda you are not.
Attachment #8385628 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 8385628 [details] [diff] [review]
Fix, v1
[Security approval request comment]
How easily could an exploit be constructed based on the patch? Probably easily, it allows us to spin the event loop during GC.
Do comments in the patch, the check-in comment, or tests included in the patch paint a bulls-eye on the security problem? Yes.
Which older supported branches are affected by this flaw? Just aurora.
If not all supported branches, which bug introduced the flaw? Bug 914762
Do you have backports for the affected branches? If not, how different, hard to create, and risky will they be? Yes, identical.
How likely is this patch to cause regressions; how much testing does it need? Unlikely to cause regressions.
Attachment #8385628 -
Flags: sec-approval?
Comment 7•11 years ago
|
||
Comment on attachment 8385628 [details] [diff] [review]
Fix, v1
sec-approval+ for trunk.
Once it is in, nominate for Aurora and I'll approve it there.
Attachment #8385628 -
Flags: sec-approval? → sec-approval+
Assignee | ||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
landed on central - https://hg.mozilla.org/mozilla-central/rev/3fd013ca2273
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8385628 [details] [diff] [review]
Fix, v1
[Approval Request Comment]
Bug caused by (feature/regressing bug #): 914762
User impact if declined: Untold s-s badness
Testing completed (on m-c, etc.): m-c
Risk to taking this patch (and alternatives if risky): Low risk
String or IDL/UUID changes made by this patch: None
Attachment #8385628 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #8385628 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 11•11 years ago
|
||
status-b2g18:
--- → unaffected
status-b2g-v1.1hd:
--- → unaffected
status-b2g-v1.2:
--- → unaffected
status-b2g-v1.3:
--- → unaffected
status-b2g-v1.3T:
--- → unaffected
status-b2g-v1.4:
--- → fixed
status-firefox-esr24:
--- → unaffected
Comment 12•11 years ago
|
||
Confirmed assertion on Fx29, 2014-02-10.
Verified fixed on Fx29, Fx30, 2014-04-21.
Updated•9 years ago
|
Group: core-security
You need to log in
before you can comment on or make changes to this bug.
Description
•