Ubuntu

bash crashes with infinitive recursion

Reported by Stepan Koltsov on 2007-09-29
12
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Wishlist
Unassigned

Bug Description

Binary package hint: bash

Steps to reproduce:

===
# cat crash.sh
f() {
    if true; then
        f xx
    fi
}

f xx

# bash crash.sh
segmentation fault bash crash.sh

# bash --version
GNU bash, version 3.2.13(1)-release (i486-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.

===

Expected behaviour: message "stack overflow in crash.sh" printed to stderr, nonzero exit code.

Matthias Klose (doko) on 2008-02-08
Changed in bash:
importance: Undecided → Wishlist
status: New → Confirmed
Mika Fischer (zoop) on 2008-06-07
Changed in bash:
status: Confirmed → Triaged
B Bobo (yout-bobo123) wrote :

Appears to have been fixed in bash 4.2.25

Changed in bash (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers