SwitchCoreKeyboard crash

Peter Hutterer peter.hutterer at who-t.net
Fri Aug 22 00:16:41 PDT 2008


On Thu, Aug 21, 2008 at 11:32:26PM -0700, Jeremy Huddleston wrote:
> I'm seeing reports of a crash in SwitchCoreKeyboard in the 1.4-apple  
> branch (we haven't done anything special to SwitchCoreKeyboard).  I've  
> tracked it down to pDev->key being null.  I'm just going to throw in  
> some sanity checking to SwitchCoreKeyboard, but I'd like to figure out  
> where this bad event is originating from.  Where do SwitchCoreKeyboard  
> events get sent?  There are a lot showing up in the logs, but input  
> devices are not changing.

SCK is called from mieqProcessInputEvents each time a keyboard event is
processed.

If you have pDev->key being NULL suggests either a non-keyboard device sends
key events (in which case it should crash during GetKeyboardValuatorEvents
anyway*) or memory is somewhat screwed.

Cheers,
  Peter

* not sure if you use GKVE, GetPointerEvents, ... in the apple branch.



More information about the xorg mailing list