gdb --args /usr/bin/Xnest :1 warning: Can not parse XML syscalls information; XML support was disabled at compile time. GNU gdb (Gentoo 7.0.1 p1) 7.0.1 Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/bin/Xnest...Reading symbols from /usr/lib64/debug/usr/bin/Xnest.debug...done. (no debugging symbols found)...done. (gdb) break XkbGetKeyboardByName Function "XkbGetKeyboardByName" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (XkbGetKeyboardByName) pending. (gdb) run Starting program: /usr/bin/Xnest :1 [Thread debugging using libthread_db enabled] [dix] Could not init font path element /usr/share/fonts/TTF/, removing from list! [dix] Could not init font path element /usr/share/fonts/OTF/, removing from list! Breakpoint 1, XkbGetKeyboardByName (dpy=0x841df0, deviceSpec=256, names=0x0, want=255, need=255, load=0) at XKBGetByName.c:44 44 XKBGetByName.c: No such file or directory. in XKBGetByName.c (gdb) bt full #0 XkbGetKeyboardByName (dpy=0x841df0, deviceSpec=256, names=0x0, want=255, need=255, load=0) at XKBGetByName.c:44 rep = {type = 160 '\240', deviceID = 223 '\337', sequenceNumber = 65535, length = 32767, minKeyCode = 160 '\240', maxKeyCode = 156 '\234', loaded = 65 'A', newKeyboard = 0 '\000', found = 0, reported = 0, pad1 = 4294959552, pad2 = 32767, pad3 = 4158597445, pad4 = 32767} str = xkb = mapLen = codesLen = typesLen = compatLen = symsLen = geomLen = #1 0x000000000041fdd3 in xnestKeyboardProc (pDev=0x9c0b50, onoff=0) at Keyboard.c:160 keymap = 0xaa8c40 mapWidth = 4 min_keycode = 8 max_keycode = 255 keySyms = {map = 0xaa8c40, minKeyCode = 8 '\b', maxKeyCode = 255 '\377', mapWidth = 4} i = 0 values = {key_click_percent = 0, bell_percent = 0, bell_pitch = 0, bell_duration = 0, led_mask = 0, global_auto_repeat = 0, auto_repeats = '\000' } xkb = 0x0 op = 145 event = 90 error = 153 major = 1 minor = 0 #2 0x000000000055911c in ActivateDevice (dev=0x9c0b50, sendevent=1 '\001') at devices.c:532 ret = 0 pScreen = 0x857250 #3 0x000000000055962a in InitAndStartDevices () at devices.c:703 dev = 0x9c0b50 next = 0x419ca0 #4 0x00000000005aa9cd in main (argc=2, argv=0x7fffffffe1c8, envp=0x7fffffffe1e0) at main.c:264 i = 1 alwaysCheckForInput = {0, 1} (gdb) (reverse-i-search)`': b': bt fullr': break XkbGetKeyboardByName (reverse-i-search)`br': [1@e': [1@a': break _XReply(gdb) Breakpoint 2 at 0x7ffff765dd00: file xcb_io.c, line 501. (gdb) c Continuing. Breakpoint 2, _XReply (dpy=0x841df0, rep=0x7fffffffde60, extra=0, discard=0) at xcb_io.c:501 501 xcb_io.c: No such file or directory. in xcb_io.c (gdb) bt full #0 _XReply (dpy=0x841df0, rep=0x7fffffffde60, extra=0, discard=0) at xcb_io.c:501 error = c = current = __PRETTY_FUNCTION__ = "_XReply" #1 0x00007ffff76b017e in XkbGetKeyboardByName (dpy=0x841df0, deviceSpec=, names=0x0, want=, need=, load=) at XKBGetByName.c:132 rep = {type = 160 '\240', deviceID = 223 '\337', sequenceNumber = 65535, length = 32767, minKeyCode = 160 '\240', maxKeyCode = 156 '\234', loaded = 65 'A', newKeyboard = 0 '\000', found = 0, reported = 0, pad1 = 4294959552, pad2 = 32767, pad3 = 4158597445, pad4 = 32767} str = 0x8486f1 "" xkb = 0xaa9bd0 mapLen = codesLen = typesLen = compatLen = symsLen = 0 geomLen = #2 0x000000000041fdd3 in xnestKeyboardProc (pDev=0x9c0b50, onoff=0) at Keyboard.c:160 keymap = 0xaa8c40 ---Type to continue, or q to quit--- mapWidth = 4 min_keycode = 8 max_keycode = 255 keySyms = {map = 0xaa8c40, minKeyCode = 8 '\b', maxKeyCode = 255 '\377', mapWidth = 4} i = 0 values = {key_click_percent = 0, bell_percent = 0, bell_pitch = 0, bell_duration = 0, led_mask = 0, global_auto_repeat = 0, auto_repeats = '\000' } xkb = 0x0 op = 145 event = 90 error = 153 major = 1 minor = 0 [...] (gdb) c Continuing. Couldn't get keyboard. Breakpoint 2, _XReply (dpy=0x841df0, rep=0x7fffffffde70, extra=5, discard=1) at xcb_io.c:501 501 in xcb_io.c (gdb) bt full #0 _XReply (dpy=0x841df0, rep=0x7fffffffde70, extra=5, discard=1) at xcb_io.c:501 error = c = current = __PRETTY_FUNCTION__ = "_XReply" #1 0x00007ffff76427a6 in XGetKeyboardControl (dpy=0x841df0, [We know this already...] (gdb) c Continuing. Xnest: xcb_io.c:507: _XReply: Assertion `!dpy->xcb->reply_data' failed. Program received signal SIGABRT, Aborted. 0x00007ffff61711b5 in raise () from /lib/libc.so.6 (gdb) bt full #0 0x00007ffff61711b5 in raise () from /lib/libc.so.6 No symbol table info available. #1 0x00007ffff6172d81 in abort () from /lib/libc.so.6 No symbol table info available. #2 0x00007ffff616a3c0 in __assert_fail () from /lib/libc.so.6 No symbol table info available. #3 0x00007ffff765e173 in _XReply (dpy=0x841df0, rep=0x7fffffffde00, extra=, discard=) at xcb_io.c:507 error = c = 0x8434d0 current = __PRETTY_FUNCTION__ = "_XReply" #4 0x00007ffff76427a6 in XGetKeyboardControl (dpy=0x841df0, state=0x7fffffffde90) at GetKCnt.c:41 rep = {type = 80 'P', globalAutoRepeat = 225 '\341', sequenceNumber = 65535, length = 32767, ledMask = 4158597445, keyClickPercent = 255 '\377', bellPercent = 127 '\177', bellPitch = 0, bellDuration = 7664, pad = 132, map = "\000\000\000\000\260\254!\366\377\177\000\000\220\336\377\377\377\177\000\000\220\336\377\377\377\177\000\000\360\035\204"} #5 0x000000000041ff4c in xnestKeyboardProc (pDev=0x9c0b50, onoff=0) at Keyboard.c:189 keymap = 0xaa8c40 mapWidth = 4 min_keycode = 8 max_keycode = 255 ---Type to continue, or q to quit--- keySyms = {map = 0xaa8c40, minKeyCode = 8 '\b', maxKeyCode = 255 '\377', mapWidth = 4} i = 0 values = {key_click_percent = 0, bell_percent = 0, bell_pitch = 0, bell_duration = 0, led_mask = 0, global_auto_repeat = 0, auto_repeats = '\000' } xkb = 0x0 op = 145 event = 90 error = 153 major = 1 minor = 0 #6 0x000000000055911c in ActivateDevice (dev=0x9c0b50, sendevent=1 '\001') at devices.c:532 ret = 0 pScreen = 0x857250 #7 0x000000000055962a in InitAndStartDevices () at devices.c:703 dev = 0x9c0b50 next = 0x419ca0 #8 0x00000000005aa9cd in main (argc=2, argv=0x7fffffffe158, envp=0x7fffffffe170) at main.c:264 i = 1 alwaysCheckForInput = {0, 1} (gdb) quit A debugging session is active. Inferior 1 [process 15110] will be killed. Quit anyway? (y or n) y