[Bug 716074] New: Xvnc crashes when running "xinput list"
https://bugzilla.novell.com/show_bug.cgi?id=716074
https://bugzilla.novell.com/show_bug.cgi?id=716074#c0
Summary: Xvnc crashes when running "xinput list"
Classification: openSUSE
Product: openSUSE 11.4
Version: Final
Platform: All
OS/Version: openSUSE 11.4
Status: NEW
Severity: Critical
Priority: P5 - None
Component: X.Org
AssignedTo: bnc-team-xorg-bugs@forge.provo.novell.com
ReportedBy: marko.veelma@gmail.com
QAContact: xorg-maintainer-bugs@forge.provo.novell.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101
Firefox/5.0
In Xorg itself xinput list works fine but when running in Xvnc it crashes every
time
#0 0xb72a65a0 in __strlen_sse2 () from /lib/libc.so.6
#1 0x0817dc6a in SizeDeviceInfo (dev=0x845e988) at xiquerydevice.c:204
#2 0x0817e3f8 in ProcXIQueryDevice (client=0x872fc60) at xiquerydevice.c:98
#3 0x081723a7 in ProcIDispatch (client=0x872fc60) at extinit.c:416
#4 0x080b55b7 in Dispatch () at dispatch.c:432
#5 0x080a2ed5 in main (argc=14, argv=0xbf9ef904, envp=0xbf9ef940)
SizeDeviceInfo() reads dev->name length. In this case dev->name is NULL
xiquerydevice.c lines around 98 are:
94 for (dev = inputInfo.devices; dev; dev = dev->next, i++)
95 {
96 skip[i] = ShouldSkipDevice(client, stuff->deviceid, dev);
97 if (!skip[i])
98 len += SizeDeviceInfo(dev);
99 }
Somehow two last entries in inputInfo.devices list has missing name:
(gdb) p *dev
$29 = {public = {devicePrivate = 0x0,
processInputProc = 0x816c710 <ProcessOtherEvent>,
realInputProc = 0x816c710 <ProcessOtherEvent>,
enqueueInputProc = 0x80bb280 <EnqueueEvent>, on = 1}, next = 0x862f278,
startup = 1, deviceProc = 0x8069b00 <rfbKeybdProc>, inited = 1, enabled = 1,
coreEvents = 1, deviceGrab = {grabTime = {months = 0,
milliseconds = 1903094146}, fromPassiveGrab = 0, implicitGrab = 0,
activeGrab = {next = 0x0, resource = 0, device = 0x0, window = 0x0,
ownerEvents = 0, keyboardMode = 0, pointerMode = 0,
grabtype = GRABTYPE_CORE, type = 0 '\000', modifiersDetail = {exact = 0,
pMask = 0x0}, modifierDevice = 0x0, detail = {exact = 0, pMask = 0x0},
confineTo = 0x0, cursor = 0x0, eventMask = 0, deviceMask = 0, xi2mask = {
"\000\000"
https://bugzilla.novell.com/show_bug.cgi?id=716074
https://bugzilla.novell.com/show_bug.cgi?id=716074#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=716074
https://bugzilla.novell.com/show_bug.cgi?id=716074#c1
Egbert Eich
https://bugzilla.novell.com/show_bug.cgi?id=716074
https://bugzilla.novell.com/show_bug.cgi?id=716074#c2
--- Comment #2 from Egbert Eich
https://bugzilla.novell.com/show_bug.cgi?id=716074
https://bugzilla.novell.com/show_bug.cgi?id=716074#c3
--- Comment #3 from Marko Veelma
https://bugzilla.novell.com/show_bug.cgi?id=716074
https://bugzilla.novell.com/show_bug.cgi?id=716074#c4
Stefan Dirsch
participants (1)
-
bugzilla_noreply@novell.com