https://bugzilla.novell.com/show_bug.cgi?id=631994
https://bugzilla.novell.com/show_bug.cgi?id=631994#c6
--- Comment #6 from Harald Koenig 2010-12-09 19:27:55 UTC ---
gdb straceback with debuguinfo:
#0 0x00007fea5ba786a2 in strlen () from /lib64/libc.so.6
#1 0x000000000051effd in SizeDeviceInfo (dev=0xc6a890) at xiquerydevice.c:204
#2 0x000000000051f700 in ProcXIQueryDevice (client=0xd780b0) at
xiquerydevice.c:98
#3 0x000000000046c74c in Dispatch () at dispatch.c:439
#4 0x000000000045baca in main (argc=<value optimized out>,
argv=0x7fff2f7416e8, envp=<value optimized out>) at main.c:286
dev parameter in SizeDeviceInfo()
(gdb) p *dev
$3 = {public = {devicePrivate = 0x0, processInputProc = 0x514490
<ProcessOtherEvent>, realInputProc = 0x514490 <ProcessOtherEvent>,
enqueueInputProc = 0x474500 <EnqueueEvent>, on = 1}, next = 0xc6ac30,
startup = 1, deviceProc = 0x4271d0 <rfbKeybdProc>, inited = 1,
enabled = 1, coreEvents = 1, deviceGrab = {grabTime = {months = 0,
milliseconds = 4230263519}, 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" }}, grab = 0x0,
activatingKey = 0 '\000', ActivateGrab = 0x47c210 <ActivateKeyboardGrab>,
DeactivateGrab = 0x47c000 <DeactivateKeyboardGrab>, sync = {
frozen = 0, state = 0, other = 0x0, event = 0x0}}, type = 0, xinput_type
= 0, name = 0x0, id = 6, key = 0xd520c0, valuator = 0x0,
button = 0x0, focus = 0xd57070, proximity = 0x0, absolute = 0x0, kbdfeed =
0xd52140, ptrfeed = 0x0, intfeed = 0x0, stringfeed = 0x0,
bell = 0x0, leds = 0x0, xkb_interest = 0x0, config_info = 0x0, devPrivates =
0x0, nPrivates = 0, unwrapProc = 0, spriteInfo = 0xc6ac08, u = {
master = 0xc30a10, lastSlave = 0xc30a10}, last = {valuators = {0 }, remainder = {0 }, numValuators = 0,
slave = 0x0}, properties = {properties = 0xc401a0, handlers = 0xc401d0}}
the following hacky patch avoids the Xvnc in my case:
-------------------------------------------------------------------------------
--- /usr/src/packages/BUILD/xorg-server-1.8.0/Xi/xiquerydevice.c~ 2009-11-04
17:25:50.000000000 +0100
+++ /usr/src/packages/BUILD/xorg-server-1.8.0/Xi/xiquerydevice.c 2010-12-09
20:20:04.000000000 +0100
@@ -201,7 +201,8 @@
int len = sizeof(xXIDeviceInfo);
/* 4-padded name */
- len += pad_to_int32(strlen(dev->name));
+ if (dev->name)
+ len += pad_to_int32(strlen(dev->name));
return len + SizeDeviceClasses(dev);
@@ -404,7 +405,10 @@
info->deviceid = dev->id;
info->use = GetDeviceUse(dev, &info->attachment);
info->num_classes = 0;
- info->name_len = strlen(dev->name);
+ if (dev->name)
+ info->name_len = strlen(dev->name);
+ else
+ info->name_len = 0;
info->enabled = dev->enabled;
total_len = sizeof(xXIDeviceInfo);
-------------------------------------------------------------------------------
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.