Segfaults under deep function recursion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Debian) |
Confirmed
|
Unknown
|
|||
bash (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
% bash
$ foo() { echo $1; foo $(($1+1)); }; foo 1
1
2
...
7370
7371
zsh: segmentation fault bash
%
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: bash 4.2-0ubuntu4
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelMo
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
CheckboxSubmission: b0d31efda018709
CheckboxSystem: 6ce041aeed0a2c1
Date: Thu Oct 27 10:18:33 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/zsh
SourcePackage: bash
UpgradeStatus: Upgraded to oneiric on 2011-05-03 (177 days ago)
Changed in bash (Debian): | |
status: | Unknown → Confirmed |
I can confirm that this bug is also present in the package "bash 4.2-0ubuntu3". Another way to reproduce this bug is:
$ bash -c 'x() { x; }; x'