here's the output (made with daily amd64 build w/ the symbols installed):
ubuntu@ubuntu:~$ sudo gdb --args /lib/udev/keymap -i input/event6
GNU gdb (GDB) 6.8.50.20090628-cvs-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) start
Temporary breakpoint 1 at 0x5bd5: file ../../../extras/keymap/keymap.c, line 276.
Starting program: /lib/udev/keymap -i input/event6
Press ESC to finish
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7ffca45 in format_keyname (key=0x0)
at ../../../extras/keymap/keymap.c:119
119 ../../../extras/keymap/keymap.c: No such file or directory.
in ../../../extras/keymap/keymap.c
(gdb) bt full
#0 0x00007ffff7ffca45 in format_keyname (key=0x0)
at ../../../extras/keymap/keymap.c:119
result = '\0' <repeats 100 times>
s = 0x4 <Address 0x4 out of bounds>
len = 0
#1 0x00007ffff7ffcd87 in print_key (argc=<value optimized out>,
argv=<value optimized out>) at ../../../extras/keymap/keymap.c:240 cur_scancode = 589848
#2 interactive (argc=<value optimized out>, argv=<value optimized out>)
at ../../../extras/keymap/keymap.c:263
ev = {time = {tv_sec = 1248031869, tv_usec = 866637}, type = 1,
code = 263, value = 1}
#3 main (argc=<value optimized out>, argv=<value optimized out>)
at ../../../extras/keymap/keymap.c:317
options = {{name = 0x7ffff7ffe079 "help", has_arg = 0, flag = 0x0,
val = 104}, {name = 0x7ffff7ffe07e "interactive", has_arg = 0,
flag = 0x0, val = 105}, {name = 0x0, has_arg = 0, flag = 0x0,
val = 0}}
fd = 5 opt_interactive = 1
#4 0x00007ffff7a825e6 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#5 0x00007ffff7ffc4c9 in _start () at ../sysdeps/x86_64/elf/start.S:103
---Type <return> to continue, or q <return> to quit---
No locals.
(gdb) quit
The program is running. Quit anyway (and kill it)? (y or n) y
here's the output (made with daily amd64 build w/ the symbols installed): 20090628- cvs-debian gnu.org/ licenses/ gpl.html> www.gnu. org/software/ gdb/bugs/>... ./extras/ keymap/ keymap. c, line 276.
ubuntu@ubuntu:~$ sudo gdb --args /lib/udev/keymap -i input/event6
GNU gdb (GDB) 6.8.50.
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
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-linux-gnu".
For bug reporting instructions, please see:
<http://
(gdb) start
Temporary breakpoint 1 at 0x5bd5: file ../../.
Starting program: /lib/udev/keymap -i input/event6
Press ESC to finish
Program received signal SIGSEGV, Segmentation fault. ./extras/ keymap/ keymap. c:119 ./extras/ keymap/ keymap. c: No such file or directory. ./extras/ keymap/ keymap. c ./extras/ keymap/ keymap. c:119 ./extras/ keymap/ keymap. c:240
cur_scancode = 589848 ./extras/ keymap/ keymap. c:263 ./extras/ keymap/ keymap. c:317
opt_interactiv e = 1 x86_64/ elf/start. S:103
0x00007ffff7ffca45 in format_keyname (key=0x0)
at ../../.
119 ../../.
in ../../.
(gdb) bt full
#0 0x00007ffff7ffca45 in format_keyname (key=0x0)
at ../../.
result = '\0' <repeats 100 times>
s = 0x4 <Address 0x4 out of bounds>
len = 0
#1 0x00007ffff7ffcd87 in print_key (argc=<value optimized out>,
argv=<value optimized out>) at ../../.
#2 interactive (argc=<value optimized out>, argv=<value optimized out>)
at ../../.
ev = {time = {tv_sec = 1248031869, tv_usec = 866637}, type = 1,
code = 263, value = 1}
#3 main (argc=<value optimized out>, argv=<value optimized out>)
at ../../.
options = {{name = 0x7ffff7ffe079 "help", has_arg = 0, flag = 0x0,
val = 104}, {name = 0x7ffff7ffe07e "interactive", has_arg = 0,
flag = 0x0, val = 105}, {name = 0x0, has_arg = 0, flag = 0x0,
val = 0}}
fd = 5
#4 0x00007ffff7a825e6 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#5 0x00007ffff7ffc4c9 in _start () at ../sysdeps/
---Type <return> to continue, or q <return> to quit---
No locals.
(gdb) quit
The program is running. Quit anyway (and kill it)? (y or n) y