bug-bash
[Top][All Lists]
Advanced

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

'set' dumps core in UTF-8 locale (solaris)


From: Noah Levitt
Subject: 'set' dumps core in UTF-8 locale (solaris)
Date: Tue, 5 Feb 2002 15:21:27 -0500 (EST)

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-05 sun4u sparc SUNW,Ultra-5_10
Machine Type: sparc-sun-solaris2.8

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

Description:

    If I start bash in UTF-8 locale, then run set, bash dies as shown below.
    This does not happen if I change to UTF-8 locale after I start bash, 
    but it does happen if I start bash in UTF-8 and change to another locale
    before running set.

    Program received signal SIGABRT, Aborted.
    0xff21a790 in _libc_kill () from /usr/lib/libc.so.1
    (gdb) bt
    #0  0xff21a790 in _libc_kill () from /usr/lib/libc.so.1
    #1  0xff1b555c in abort () from /usr/lib/libc.so.1
    #2  0x37850 in report_error ()
    #3  0x84220 in strmatch ()
    #4  0x84914 in strmatch ()
    #5  0x84df4 in sh_free ()
    #6  0x58f1c in sh_xfree ()
    #7  0x33de4 in print_var_value ()
    #8  0x33d5c in print_assignment ()
    #9  0x33c38 in print_var_list ()
    #10 0x62208 in set_minus_o_option ()
    #11 0x62638 in set_builtin ()
    #12 0x31bd0 in execute_command_internal ()
    #13 0x322d8 in execute_shell_function ()
    #14 0x318fc in execute_command_internal ()
    #15 0x2e6b0 in execute_command_internal ()
    #16 0x2e090 in execute_command ()
    #17 0x23914 in reader_loop ()
    #18 0x21afc in main ()
        
Repeat-By:

    $ LANG=en_US.UTF-8 bash
    $ set
    [...]
    
    malloc: variables.c:936: assertion botched
    *ap++ == 0x55
    last command: set
    Stopping myself...Abort (core dumped)




reply via email to

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