Closed
Bug 1168843
Opened 9 years ago
Closed 9 years ago
MOZ_CRASH(SharedMemory not thread-safe) crash on GTK debug builds
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: lsalzman, Assigned: lsalzman)
Details
Attachments
(1 file, 1 obsolete file)
1.48 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
The threads on which windows are created, resized, or composited are not the same as the thread which ends up destroying those resources on shutdown. Because SharedMemory and nsShmImage do not use thread-safe reference counting, this always causes a "SharedMemory not thread-safe" crash on shutdown with debug builds using the GTK widget code. This assertion, however, does not trigger in release builds. Note that the shared memory path is only used when Skia is the content rendering backend, as otherwise the Cairo backend will prefer to directly use an Xlib surface instead.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8611205 -
Flags: review?(jmuizelaar)
Comment 2•9 years ago
|
||
Comment on attachment 8611205 [details] [diff] [review]
Use thread-safe refcounting for shared memory surfaces to avoid shutdown crashes
Review of attachment 8611205 [details] [diff] [review]:
-----------------------------------------------------------------
::: widget/nsShmImage.h
@@ +35,4 @@
> class gfxASurface;
>
> class nsShmImage {
> + NS_INLINE_DECL_THREADSAFE_REFCOUNTING(nsShmImage)
Add a comment about what you know about what threads use this when.
Attachment #8611205 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 3•9 years ago
|
||
Added comments referring to bug and documenting that compositor thread is creating shared memory that is destroyed by main thread
Attachment #8611205 -
Attachment is obsolete: true
Attachment #8611237 -
Flags: review?(jmuizelaar)
Updated•9 years ago
|
Attachment #8611237 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•