Closed
Bug 1662425
Opened 4 years ago
Closed 4 years ago
[Wayland] Crash nsWaylandDisplay::DispatchEventQueue()
Categories
(Core :: Widget: Gtk, defect, P2)
Core
Widget: Gtk
Tracking
()
RESOLVED
FIXED
82 Branch
Tracking | Status | |
---|---|---|
firefox82 | --- | fixed |
People
(Reporter: stransky, Assigned: stransky)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
We can crash at nsWaylandDisplay::DispatchEventQueue() when mDisplay/mEventQueue is already released. I happens when nsWaylandDisplay::DispatchEventQueue() is performed after nsWaylandDisplay release.
We need to keep nsWaylandDisplay around until any active loop->PostTask(NewRunnableFunction(...)) is pending.
Assignee | ||
Comment 1•4 years ago
|
||
- Create nsWaylandDisplay as a ref-counted struct to avoid potential delete when a display is used.
- Don't use Mutex to access all display array operations. Use only write mutex when the array is modified / released.
- Store all wayland displays in nsTArray instead of fixed plain C array.
- Release all displays before we close Gtk display to make sure we quit before Gtk connections are closed.
Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/00a41c5183d7
[Wayland] Create nsWaylandDisplay as ref counted, r=jhorak
Comment 3•4 years ago
|
||
Backed out changeset 00a41c5183d7 (bug 1662425) for linux leakcheck failures.
https://hg.mozilla.org/integration/autoland/rev/ab20cc86e07fc3f5ccf46ecf214361ff264b6098
Failure log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=314801498&repo=autoland&lineNumber=2161
Flags: needinfo?(stransky)
Assignee | ||
Comment 4•4 years ago
|
||
Related to https://bugzilla.mozilla.org/show_bug.cgi?id=1505307#c1 so we need to clear the array.
Flags: needinfo?(stransky)
Assignee | ||
Updated•4 years ago
|
Flags: needinfo?(stransky)
Assignee | ||
Updated•4 years ago
|
Flags: needinfo?(stransky)
Pushed by ccoroiu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/46b402033322
[Wayland] Create nsWaylandDisplay as ref counted, r=jhorak
Comment 6•4 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox82:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•