bug-bash
[Top][All Lists]
Advanced

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

seg fault in solaris with multibyte chars


From: Noah Levitt
Subject: seg fault in solaris with multibyte chars
Date: Fri, 19 Jul 2002 13:18:42 -0400 (EDT)

Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.8
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc' 
-DCONF_OSTYPE='solaris2.8' -DCONF_MACHTYPE='sparc-sun-solaris2.8' 
-DCONF_VENDOR='sun' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  -g 
-O2
uname output: SunOS stealth 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-5_10
Machine Type: sparc-sun-solaris2.8

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

Description:

Seg fault when I paste in some utf8 chars. Here is the stack
trace:

#0  _rl_get_char_len (src=0x57a81a "?\205 ", ps=0x0) at mbutil.c:215
#1  0x8c0ac in _rl_compare_chars (buf1=0x57a81a "?\205 ", pos1=0, ps1=0x0, 
    buf2=0x57b01a "?\205 ?", pos2=0, ps2=0x0) at mbutil.c:234
#2  0x81eac in update_line (
    old=0x57a808 "$ ??\203?\201?\202?\213???\213?\205 ", 
    new=0x57b008 "$ ??\203?\201?\202?\213???\213?\205 ?", current_line=0, 
    omax=5744666, nmax=5746714, inv_botlin=0) at display.c:1210
#3  0x81080 in rl_redisplay () at display.c:799
#4  0x75334 in readline_internal_char () at readline.c:465
#5  0x753c8 in readline_internal_charloop () at readline.c:489
#6  0x753f4 in readline_internal () at readline.c:503
#7  0x74ef8 in readline (prompt=0x0) at readline.c:299
#8  0x263d0 in yy_readline_get () at /usr/homes/chet/src/bash/src/parse.y:1108
#9  0x262fc in yy_getc () at /usr/homes/chet/src/bash/src/parse.y:1042
#10 0x26da0 in shell_getc (remove_quoted_newline=1)
    at /usr/homes/chet/src/bash/src/parse.y:1803
#11 0x27b1c in read_token (command=0)
    at /usr/homes/chet/src/bash/src/parse.y:2414
#12 0x27450 in yylex () at /usr/homes/chet/src/bash/src/parse.y:2084
#13 0x24d84 in yyparse () at /usr/local/share/bison/bison.simple:573
#14 0x24b28 in parse_command () at eval.c:217
#15 0x24bfc in read_command () at eval.c:261
#16 0x24914 in reader_loop () at eval.c:128
#17 0x22bbc in main (argc=1, argv=0xffbef88c, env=0xffbef894) at shell.c:680


Repeat-By:

Run bash. Set LANG=en_US.UTF-8. At the prompt, paste in a
sequence of multibyte characters. Any sequence seems to
work, but just for example:  На берегу пустынных волн
(this is utf8).




reply via email to

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