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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: Yoric, Assigned: Yoric)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached file Stack trace
Reproductible assertion failure when attempting to migrate OS.File to the new module loader.
Component: DOM: Device Interfaces → DOM: Workers
Marking as blocker, as I won't be able to land OS.File v2 until this is fixed.
Severity: normal → blocker
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+
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.
(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 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: nobody → dteller
Attachment #768362 - Attachment is obsolete: true
Attachment #769360 - Flags: review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Severity: blocker → normal
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: