Segmentation Fault on simple shell script (attached)

Bug #516974 reported by David
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: bash

The following 3-line shell script crashes Bash with segmentation fault:

----
#! /bin/bash

bug(){
    # this segfaults:
    local -A a=b
}

bug
----

ProblemType: Bug
Architecture: amd64
Date: Thu Feb 4 10:46:37 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelModules: nvidia
Package: bash 4.0-5ubuntu2
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
SourcePackage: bash
Uname: Linux 2.6.31-17-generic x86_64
XsessionErrors:
 (polkit-gnome-authentication-agent-1:2927): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (nautilus:2904): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (emacs22-gtk:3001): GLib-WARNING **: g_set_prgname() called multiple times
 (firefox:4324): GLib-WARNING **: g_set_prgname() called multiple times

Revision history for this message
David (dvdkhlng) wrote :
Revision history for this message
David (dvdkhlng) wrote :
Revision history for this message
Dennis van Dok (dvandok-gmail) wrote :

Confirmed, also on Karmic amd64. Is there an upstream notice?

Changed in bash (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthias Klose (doko) wrote :

fixed in bash-4.1 in lucid

Changed in bash (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Dennis van Dok (dvandok-gmail) wrote :
Revision history for this message
Dennis van Dok (dvandok-gmail) wrote :

The attached patch is basically a backport of the 4.1 code that fixes the problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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