Closed
Bug 887288
Opened 12 years ago
Closed 12 years ago
Assertion failure: _mOwningThread.GetThread() == PR_GetCurrentThread() (nsDOMMemoryFileDataOwnerMemoryReporter not thread-safe)
Categories
(Core :: DOM: Workers, defect)
Core
DOM: Workers
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: Yoric, Assigned: Yoric)
References
Details
Attachments
(2 files, 1 obsolete file)
3.86 KB,
text/plain
|
Details | |
1.01 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
Reproductible assertion failure when attempting to migrate OS.File to the new module loader.
Component: DOM: Device Interfaces → DOM: Workers
Assignee | ||
Comment 1•12 years ago
|
||
Marking as blocker, as I won't be able to land OS.File v2 until this is fixed.
Severity: normal → blocker
Assignee | ||
Comment 2•12 years ago
|
||
Justin, would that be sufficient?
Attachment #768362 -
Flags: feedback?(justin.lebar+bug)
Comment on attachment 768362 [details] [diff] [review]
Marking nsDOMMemoryFileDataOwnerMemoryReporter thread-safe
Review of attachment 768362 [details] [diff] [review]:
-----------------------------------------------------------------
No, we need to make sure that calling nsDOMMemoryFile::DataOwner::EnsureMemoryReporterRegistered on multiple threads can't race too.
Attachment #768362 -
Flags: review-
Comment on attachment 768362 [details] [diff] [review]
Marking nsDOMMemoryFileDataOwnerMemoryReporter thread-safe
Actually I take that back, we're already holding the lock in the only callsite.
r=me if you add an assertion to EnsureMemoryReporterRegistered that makes sure sDataOwnerMutex is held.
Attachment #768362 -
Flags: review- → review+
Assignee | ||
Comment 5•12 years ago
|
||
I don't really see how to do that. |StaticMutex| only seems to provide Lock/Unlock, which doesn't really help me check whether it is held.
Comment 6•12 years ago
|
||
(In reply to David Rajchenbach Teller [:Yoric] <on workweek, will not follow bugzilla until July 1st> from comment #5)
> I don't really see how to do that. |StaticMutex| only seems to provide
> Lock/Unlock, which doesn't really help me check whether it is held.
I have a patch in my queue to add the necessary assertion; I'll post it in a bug.
Comment 7•12 years ago
|
||
Comment on attachment 768362 [details] [diff] [review]
Marking nsDOMMemoryFileDataOwnerMemoryReporter thread-safe
The requisite blocking bug has landed; you can now add the assertion Kyle asked for.
Attachment #768362 -
Flags: feedback?(justin.lebar+bug)
Assignee | ||
Comment 8•12 years ago
|
||
Assignee: nobody → dteller
Attachment #768362 -
Attachment is obsolete: true
Attachment #769360 -
Flags: review+
Assignee | ||
Comment 9•12 years ago
|
||
Assignee | ||
Comment 10•12 years ago
|
||
Keywords: checkin-needed
Comment 11•12 years ago
|
||
Keywords: checkin-needed
Comment 12•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Updated•12 years ago
|
Severity: blocker → normal
You need to log in
before you can comment on or make changes to this bug.
Description
•