bash crashes with infinitive recursion

Bug #146746 reported by Stepan Koltsov
12
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Fix Released
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.

Tags: bash segfault
Matthias Klose (doko)
Changed in bash:
importance: Undecided → Wishlist
status: New → Confirmed
Mika Fischer (zoop)
Changed in bash:
status: Confirmed → Triaged
Revision history for this message
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  
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.