bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sigsev while fetching mbyte char from history list (readline related)


From: Tobias C. Rittweiler
Subject: sigsev while fetching mbyte char from history list (readline related)
Date: Tue, 8 Apr 2003 22:20:49 +0200

Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  -g -O2
uname output: Linux brood 2.5.53 #1 Tue Dec 24 23:19:02 CET 2002 i586 unknown 
unknown GNU/Linux
Machine Type: i586-pc-linux-gnu

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

Description:
        
        `update_line()' (from lib/readline/display.c) calls at line 1210
        `_rl_compare_chars()' (from lib/readline/mbutil.c) with NULL as `ps1'
        and `ps2'. This function internally calls `_rl_get_char_len()' (also
        in /lib/readline/mbutil.c) which tries to 'memset()' these 
NULL-pointers.

Repeat-By:

        $ bash
        $ ös
        $ ls
        $ [up-arrow-key] [up-arrow-key]
        Segmentation fault (core dumped)

Fix:
        
        Patch attached.   



PS. I want to recall you to some previous bug-reports (+ fixes) I sent
    to bug-bash, but haven't received any answer so far. Maybe Chet is
    just one of those maintainer where the saying 'no message is a good
    message' matches... ;-)
    http://mail.gnu.org/archive/html/bug-bash/2003-02/msg00001.html
    http://mail.gnu.org/archive/html/bug-bash/2003-02/msg00002.html
    http://mail.gnu.org/archive/html/bug-bash/2003-02/msg00003.html
        
-- 
cheers,
 Tobias                                       <address@hidden>

http://freebits.org  - ``Free Life, free Opinion, free Software.''
http://rocklinux.org - ``I'm a hacker, and I'm using ROCK Linux.''

Egoism is the very essence of a noble soul.
  -- Friedrich Nietzsche

Attachment: bash-2.05b-readline-mbyte-history-fix.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]