Closed Bug 873623 Opened 11 years ago Closed 11 years ago

Assertion failure: _mOwningThread.GetThread() == PR_GetCurrentThread() (nsDOMMemoryFileDataOwnerMemoryReporter not thread-safe)

Categories

(Core Graveyard :: File Handling, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 832609

People

(Reporter: Yoric, Unassigned)

Details

Attachments

(2 files)

While working on bug 872421, I intermittently encounter the following error during shutdown:

Assertion failure: _mOwningThread.GetThread() == PR_GetCurrentThread() (nsDOMMemoryFileDataOwnerMemoryReporter not thread-safe), at /Users/david/Documents/Code/mc-osfile/content/base/src/nsDOMFile.cpp:705

I will try and produce a simple test case.
Component: Networking → DOM
Component: DOM → File Handling
Attached patch Non-minimal testSplinter Review
Attaching a sample that intermittently causes the assertion failure.
I haven't minimized it yet.
Justin, do you have any idea of what happens?
Flags: needinfo?(justin.lebar+bug)
(In reply to David Rajchenbach Teller [:Yoric] from comment #3)
> Justin, do you have any idea of what happens?

I bet we're calling nsDOMMemoryFile::DataOwner::EnsureMemoryReporterRegistered off the main thread.  Probably because of a worker.

This means that we're manipulating a linked list off the main thread in the DataOwner constructor, which is also bad.

I could have sworn we saw and fixed this bug, but I can't find it now.
Flags: needinfo?(justin.lebar+bug)
Thanks a lot for filing this; bug 832609 fell off the radar.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: