[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
crash inserting character before a special and a normal one
From: |
Philippe Biondi |
Subject: |
crash inserting character before a special and a normal one |
Date: |
Thu, 17 Apr 2003 18:04:51 +0200 (CEST) |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I.
-I/home/packages/bash/bash-2.05b -I/home/packages/bash/bash-2.05b/include
-I/home/packages/bash/bash-2.05b/lib -g -O2
uname output: Linux deneb 2.4.20 #1 SMP Thu Mar 20 12:00:16 CET 2003 i686
unknown unknown GNU/Linux
Machine Type: i386-pc-linux-gnu
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Description:
At the prompt : type a special character (eg. euro char.) and a normal
one.
then go to the begining of the line and type a normal character.
It segfaults.
The stack trace says :
#0 0x080b1efa in _rl_get_char_len ()
#1 0x080b1f3e in _rl_compare_chars ()
#2 0x080a9808 in rl_redisplay ()
#3 0x080a8d91 in rl_redisplay ()
#4 0x0809f64b in readline_internal_char ()
#5 0x0809f69d in readline_internal_char ()
#6 0x0809f6b8 in readline_internal_char ()
#7 0x0809f311 in readline ()
parameter "ps" of rl_get_char_len is NULL.
parameters "ps1" and "ps2" of rl_compare_chars are NULL.
I could not trace more as the sources seem to say that rl_redisplay()
don't call rl_compare_chars(). Moreover :
deneb:~$ bash --version
GNU bash, version 2.05b.0(2)-release (i386-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
Though if I compile it myself with the latest sources, I get
2.05b.0(1)-release, special characters are displayed in octal (eg. \246),
and it doesn't crash.
Repeat-By:
At the prompt : type a special character (eg. euro char.) and a normal
one.
then go to the begining of the line and type a normal character.
It segfaults.
--
Philippe Biondi <biondi@ cartel-securite.fr> Cartel Sécurité
Security Consultant/R&D http://www.cartel-securite.fr
Phone: +33 1 44 06 97 94 Fax: +33 1 44 06 97 99
PGP KeyID:3D9A43E2 FingerPrint:C40A772533730E39330DC0985EE8FF5F3D9A43E2
- crash inserting character before a special and a normal one,
Philippe Biondi <=
- Message not available