** Description changed:
Binary package hint: xserver-xorg
I am using XKBLib in a program I am working on, and someone who helps me
test the program on various platforms pointed out that it crashes on
Ubuntu Jaunty but works fine on previous versions of Ubuntu. I'm a
Debian (Lenny) and it works perfectly fine on my computer. I made a
Ubuntu Jaunty Jackalope Alpha 4 virtual machine to test it out, and made
a sample program that causes the bug to happen. For some reason
XkbGetNames() always fails, when it should succeed. Here is the sample
code to reproduce the bug:
/*
xkb_bug.c
Sample code to reproduce error in XKBLib
Introduced in Jaunty Jackalope.
Please contact me at [email protected]
If you fix this bug.
package x11-dev is required to build this sample
compile using: gcc -o xkb_bug xkb_bug.c -lX11
*/
#include <stdio.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/Xatom.h>
#include <X11/XKBlib.h>
#include <X11/Xproto.h>
Display* dsp;
XkbDescRec desc;
int main(char* argv[], int argc)
{
dsp = XOpenDisplay(NULL);
if(dsp == NULL)
{
printf("Could not open display\n");
return 0;
}
// According to XKBLib.pdf, this should work.
// It does work on Ubuntu 8.10 and on Debian Lenny,
// But it crashes badly on Jaunty Jackalope with
// this error message:
/*
X Error of failed request: 153
Major opcode of failed request: 144 (XKEYBOARD)
Minor opcode of failed request: 17 (XkbGetNames)
Value in failed request: 0xfe000000
Serial number of failed request: 7
Current serial number in output stream: 7
*/
XkbGetNames(dsp, XkbKeyNamesMask, &desc);
return 0;
}
The documentation on XKBLib may be helpful:
http://www.xfree86.org/current/XKBlib.pdf
This call to XkbGetNames() should not fail, and it works on other versions of
Ubuntu or Debian, so it is most likely a bug introduced in Jaunty Jackalope.
Thanks for the great work,
-Marc-Andre
+
+ [lspci]
+ 00:00.0 Host bridge [0600]: Intel Corporation 82852/82855 GM/GME/PM/GMV
Processor to I/O Controller [8086:3580] (rev 01)
+ Subsystem: Toshiba America Info Systems Device [1179:ff00]
+ 00:02.0 VGA compatible controller [0300]: Intel Corporation 82852/855GM
Integrated Graphics Device [8086:3582] (rev 01)
+ Subsystem: Toshiba America Info Systems Device [1179:ff00]
--
X11/XKBLib - XkbGetNames() call fails
https://bugs.launchpad.net/bugs/327516
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs