[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trap "return 1" EXIT coredumps when tripped
From: |
bjh21 |
Subject: |
trap "return 1" EXIT coredumps when tripped |
Date: |
Fri, 07 Mar 2003 15:29:17 +0000 |
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/packages/bash/bash-2.05b -I/home/packages/bash/bash-2.05b/include
-I/home/packages/bash/bash-2.05b/lib -g -O2
uname output: Linux wraith 2.4.20 #2 Wed Jan 22 16:53:10 GMT 2003 i686 Pentium
II (Deschutes) GenuineIntel GNU/Linux
Machine Type: i386-pc-linux-gnu
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Description:
The following script causes bash to die with a segmentation fault:
--------8<--------
foo() {
trap "return 1" EXIT
exit
}
foo
-------->8--------
Repeat-By:
Run the script given above. This seems reproducible on a variety of
versions of Bash (tried current Red Hat and Debian releases, also the 2.03
shipped with Solaris 9).
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- trap "return 1" EXIT coredumps when tripped,
bjh21 <=