bug-bash
[Top][All Lists]
Advanced

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

pipe to return statement yields SEGV


From: Oleg Verych
Subject: pipe to return statement yields SEGV
Date: Tue, 6 Jun 2006 18:04:09 +0200

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include
-I../bash/lib   -g -O2
uname output: Linux deen 2.6.16-2-amd64-k8 #1 Mon May 22 14:00:22 UTC
2006 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 3.1
Patch Level: 14
Release Status: release

Maybe this is nice feature, meybe it isn't...

Description. Example script:

##
## Time-stamp: <Tue Nov  8 21:11:16 EET 2005>
## This is bash specific bug i found.
##
# address@hidden:/dev/shm$
# address@hidden:/dev/shm$ zsh bug.sh
# 0
# address@hidden:/dev/shm$ ksh bug.sh
# 0
# address@hidden:/dev/shm$ ash bug.sh
# 0
# address@hidden:/dev/shm$ pdksh bug.sh
# 0
# address@hidden:/dev/shm$ bash bug.sh
# bug.sh: line 18:  7899 Done                    echo "Test"
#       7900 Segmentation fault      | return
# 139
# address@hidden:/dev/shm$ uname -a
# Linux deen 2.6.11-9-amd64-k8 #1 Wed Jun 29 17:33:01 CEST 2005 x86_64 GNU/Linux
# address@hidden:/dev/shm$ bash --version
# GNU bash, version 2.05b.0(1)-release (x86_64-pc-linux-gnu)
# Copyright (C) 2002 Free Software Foundation, Inc.
# address@hidden:/dev/shm$ cat /etc/debian_version
# 3.1
# address@hidden:/dev/shm$
# address@hidden:/dev/shm$ cat bug.sh

bash_segv_test()
{
   echo "Test" | return
}
bash_segv_test
echo $?




reply via email to

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