Bug 54934

Summary: Crash on XGrabDevice() of deactivated synaptics device
Product: xorg Reporter: Owen Taylor <otaylor>
Component: Server/Input/CoreAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: noleti, ole.langbehn, peter.hutterer
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Owen Taylor 2012-09-14 16:02:25 UTC
I have the touchpad on my Thinkpad deactivated by default.

If I do any manipulations in Inkscape (using GTK+ 2 with XInput support enabled) without activating the touchpad, it tries to grab all pointer devices with XGrabDevice() and the grab on the touchpad device crashes the X server with a backtrace pointing to dix/events.c:ActivateKeyboardGrab()

    if (grabinfo->grab)
        oldWin = grabinfo->grab->window;
    else if (keybd->focus)
        oldWin = keybd->focus->win;
    else
>       oldWin = keybd->spriteInfo->sprite->win;

So probably spriteInfo or sprite is NULL. (ActivateKeyboardGrab is commented as the normal grab activation function for extension devices.)
Comment 1 Peter Hutterer 2012-09-27 06:14:03 UTC
*** Bug 53263 has been marked as a duplicate of this bug. ***
Comment 2 Peter Hutterer 2012-09-28 02:28:11 UTC
http://patchwork.freedesktop.org/patch/12102/
Comment 3 Peter Hutterer 2012-10-08 01:48:42 UTC
commit 9d6b8365702e4648e793fea21ad22f7174558680
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Fri Sep 28 11:49:29 2012 +1000

    dix: fix crash on XI 1.x grabs on disabled devices.  (#54934)
Comment 4 Peter Hutterer 2013-03-05 03:54:01 UTC
*** Bug 61829 has been marked as a duplicate of this bug. ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.