bug-bash
[Top][All Lists]
Advanced

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

SIGSEGV/core when sourcing erronous script


From: Christophe Blaess
Subject: SIGSEGV/core when sourcing erronous script
Date: Sat, 13 Dec 2003 13:25:29 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.2.1) Gecko/20030225

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: i386-redhat-linux-gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -D_GNU_SOURCE -O2 -march=i386 -mcpu=i686 -g uname output: Linux linux 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
Machine Type: i386-redhat-linux-gnu

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

Description:
        Bash get a SIGSEGV when sourcing a script containing a '((' string.

Repeat-By:

$ ulimit -c unlimited
$ echo 'a=((' > tmp.sh
$ sh
sh-2.05b$ . tmp.sh
sh: tmp.sh: line 1: syntax error near unexpected token `('
sh: tmp.sh: line 1: `a=(('
Segmentation fault (core dumped)
$ gdb /bin/sh core.4158
  [...]
(gdb) bt
#0  0x08098c02 in parse_and_execute ()
#1  0x080987a7 in eval_builtin ()
#2  0x080989e3 in source_file ()
#3  0x0809f0c2 in source_builtin ()
#4  0x0806b278 in execute_command_internal ()
#5  0x0806b9fb in execute_shell_function ()
#6  0x0806ad64 in execute_command_internal ()
#7  0x08067ffa in execute_command_internal ()
#8  0x08067b14 in execute_command ()
#9  0x0805cc69 in reader_loop ()
#10 0x0805afeb in main ()
#11 0x400395cd in __libc_start_main () from /lib/libc.so.6
(gdb) quit
$



--
Christophe Blaess
http://www.blaess.org/





reply via email to

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