Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bash exits with SIGSEGV when I press the key with keycode 82

1 view
Skip to first unread message

tav...@sdf.lonestar.org

unread,
Aug 2, 2002, 7:07:02 AM8/2/02
to
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -O2 -march=i686
uname output: Linux darkstar 2.4.18 #1 Tue Jul 23 16:12:34 BST 2002 i686 unknown
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
[Detailed description of the problem, suggestion, or complaint.]

when i press the 0/ins key on my numeric keypad, if numlock is off bash
exits with SIGSEGV. to demonstrate this, i recompiled bash like this:

CFLAGS="-g" ./configure --with-curses

heres the output of gdb....

~/temp/bash-2.05b$ gdb ./bash
GNU gdb 5.2
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-slackware-linux"...
(gdb) run
Starting program: /home/taviso/temp/bash-2.05b/bash
bash-2.05b$
Program received signal SIGSEGV, Segmentation fault.
0x080ba2ea in _rl_dispatch_subseq (key=256, map=0x812c008, got_subseq=0)
at readline.c:570
570 return (_rl_dispatch (_rl_to_lower (key), map));
(gdb)

heres the output of showkey...

# showkey
kb mode was RAW
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...
keycode 28 release <--- released the enter key
keycode 82 press <--- pressed the 0/ins key ( numlock off)
keycode 82 release <--- released the 0/ins key ( numlock off)


this worked with the previous version of readline (4.2a), ive just
tested it.

Repeat-By:
[Describe the sequence of events that causes the problem
to occur.]

start bash, use showkey to confirm that your 0/ins key has keycode 82
press the 0/ins key. bash exits with SIGSEGV.

Fix:
[Description of how to fix the problem. If you don't know a
fix for the problem, don't include this section.]

ive tried making a patch, but you guys are way over my head :)

0 new messages