GNOME Bugzilla – Bug 653947
Crash in gdk/x11/gdkdevicemanager-xi2.c:get_event_window
Last modified: 2011-07-15 16:39:34 UTC
empathy-av crashes when receiving a call with GTK+3 master (3c46df5fcbf6f5b52788302887b3a49b4c173743). Program terminated with signal 11, Segmentation fault.
+ Trace 227649
I workarounded the crash with this patch but I have no idea if that's the right thing to do. diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c index 29d8fa1..34eabd8 100644 --- a/gdk/x11/gdkdevicemanager-xi2.c +++ b/gdk/x11/gdkdevicemanager-xi2.c @@ -1370,6 +1370,8 @@ gdk_x11_device_manager_xi2_get_window (GdkEventTranslator *translator, return NULL; ev = (XIEvent *) xevent->xcookie.data; + if (ev == NULL) + return NULL; return get_event_window (translator, ev); }
Carlos, I think this is in your area.
Hrm, can't reproduce with my current Empathy version, will compile from master later today. Guillaume, is there any event filter running directly or indirectly in empathy-av (say via Clutter)? while your fix would be good for defensive programming (someone could have already allocated+freed the XGenericEventCookie data), it shouldn't happen at all if only GDK is handling the events.
Hum weird, I can't reproduce this any more... Feel free to close the bug.
Thanks for testing, I've pushed a similar fix to the one in comment #1 anyway, it's good to double check for unpolite event filters