[Wayland-bugs] [Bug 784319] New: Sometimes tooltip_popup_timeout() in gtk/gtktooltip.c causes crash after closing a window

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Thu Jun 29 04:15:06 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=784319

            Bug ID: 784319
           Summary: Sometimes tooltip_popup_timeout() in gtk/gtktooltip.c
                    causes crash after closing a window
    Classification: Platform
           Product: gtk+
           Version: 3.20.x
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Backend: Wayland
          Assignee: gtk-bugs at gtk.org
          Reporter: ashie at clear-code.com
        QA Contact: gtk-bugs at gtk.org
                CC: rob at robster.org.uk, wayland-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 354667
  --> https://bugzilla.gnome.org/attachment.cgi?id=354667&action=edit
A patch to avoid the crash

I'm now porting Firefox to Wayland/Weston on Renesas RZ/G1E.

* Renesas RZ/G1E:
  http://elinux.org/RZ-G/Boards/SK-RZG1E
* How to build BSP for it:
  http://elinux.org/RZ-G/Boards/Yocto_2.0
* Additional Yocto recipes to build Firefox:
  https://github.com/mozilla-japan/meta-browser/tree/firefox-52.1esr
  https://github.com/mozilla-japan/meta-gecko-embedded

The version of GTK+ is 3.20.9.

Sometimes tooltip_popup_timeout() in gtk/gtktooltip.c causes crash after
closing a browser window.

Although I'm not sure whether it's Firefox's fault or GTK+'s fault, I think
GTK+ should ensure to avoid the crash.  It seems that the code in
gtk/gtktooltip.c doesn't observe destroying GdkWindow after registering a
timeout function, it may be the cause of the bug.

The attached patch seems work fine for me, it can avoid crash on my
environment.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170629/2c44f5db/attachment.html>


More information about the wayland-bugs mailing list