[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
segfault when declaring shell variables as array
From: |
Pieter Wuille |
Subject: |
segfault when declaring shell variables as array |
Date: |
Thu, 20 Dec 2001 23:29:28 +0100 |
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/swt/doko/export/packages/bash/bash-2.05a
-I/home/swt/doko/export/packages/bash/bash-2.05a/include
-I/home/swt/doko/export/packages/bash/bash-2.05a/lib -g -O2
uname output: Linux wuille 2.4.14pw #1 Fri Nov 16 17:32:17 CET 2001 i686 unknown
Machine Type: i386-pc-linux-gnu
Bash Version: 2.05a
Patch Level: 0
Release Status: release
Description:
Bash causes a segmentation fault when some special shell variables
are declared as array
Repeat-By:
in bash, declare one of the shell variables RANDOM,SECONDS,HISTCMD or
LINENO as an array by executing eg. 'declare -a RANDOM', and then try
to read its contents by executing eg. 'echo $RANDOM'.
The shell will immediately quit because of a segfault
- segfault when declaring shell variables as array,
Pieter Wuille <=