Segfaults under deep function recursion

Bug #882456 reported by Chris West
24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dash (Debian)
Fix Released
Unknown
dash (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

% dash
$ foo() { echo $1; foo $(($1+1)); }; foo 1
1
2
...
15402
15403
zsh: segmentation fault dash
%

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: dash 0.5.5.1-7.4ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
CheckboxSubmission: b0d31efda01870980e2e5a89390b685c
CheckboxSystem: 6ce041aeed0a2c17b3343b66d157175d
Date: Thu Oct 27 10:19:14 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: dash
UpgradeStatus: Upgraded to oneiric on 2011-05-03 (177 days ago)

Revision history for this message
Chris West (faux) wrote :
Revision history for this message
Chris West (faux) wrote :

Ignoring the one-character typo of "bash" instead of "dash", I do believe this is a separate bug; dash and bash have significantly different codebases, as I understand it?

dash /does/ segfault with an identical testcase to bash, just later.

description: updated
Revision history for this message
Robert Roth (evfool) wrote :

Sorry, apport sometimes reports the same bug twice, and as everything was the same (title, description, etc.) only the package was different, I thought it might be an apport mistake. Sorry for the confusion, my mistake, reverted, unduped issue. Thanks for the note.

Revision history for this message
Martin Pokorny (martin-truffulatree) wrote :

I can confirm that this bug is also present in the package "dash 0.5.5.1-7.2ubuntu1". Another way to reproduce this bug is:
$ dash -c 'x() { x; }; x'

This appears to be Debian bug #579815 (where it has a severity of "wishlist").

Changed in dash (Ubuntu):
status: New → Confirmed
Changed in dash (Debian):
status: Unknown → Confirmed
Changed in dash (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.