Lastest xserver segfault with inputInfo.keyboard->key being NULL

Jerome Glisse glisse at freedesktop.org
Wed Jul 15 08:45:45 PDT 2009


Hi Peter,

I installed lastest everythings using jhbuild and i got segfault
in xserver  QueryMinMaxKeyCodes called from CreateConnectionBlock

Segfault because inputInfo.keyboard->key is NULL, this variable
is initialized to NULL by InitCoreDevices and never seems to
be modified latter on (according to gdb watch).

All this with usb keyboard & mouse. Any idea on what is causing
this ? I have no xorg.conf, so it's likely using evdev driver.

(I don't think Xorg.log or bt can be more helpfull than what
is here. Xorg.log only have GPU info in it)

Cheers,
Jerome


Detaching after fork from child process 31519.

Program received signal SIGSEGV, Segmentation fault.
0x0000000000422a77 in QueryMinMaxKeyCodes (minCode=0x7fffdc6183fa "", 
    maxCode=0x7fffdc6183fb "") at devices.c:1099
1099		*minCode = inputInfo.keyboard->key->xkbInfo->desc->min_key_code;
Missing separate debuginfos, use: debuginfo-install
xorg-x11-server-Xorg-1.6.1.901-1.fc11.x86_64
(gdb) bt
#0  0x0000000000422a77 in QueryMinMaxKeyCodes (minCode=0x7fffdc6183fa
"", 
    maxCode=0x7fffdc6183fb "") at devices.c:1099
#1  0x0000000000440ac2 in CreateConnectionBlock () at dispatch.c:513
#2  0x000000000042216d in main (argc=1, argv=0x7d34c8, 
    envp=<value optimized out>) at main.c:268
(gdb) list
1094	
1095	void
1096	QueryMinMaxKeyCodes(KeyCode *minCode, KeyCode *maxCode)
1097	{
1098	    if (inputInfo.keyboard) {
1099		*minCode = inputInfo.keyboard->key->xkbInfo->desc->min_key_code;
1100		*maxCode = inputInfo.keyboard->key->xkbInfo->desc->max_key_code;
1101	    }
1102	}
1103	
(gdb) 





More information about the xorg mailing list