Bug 91627

Summary: Bash 'segmentation fault' with array subscripts of type: '<smt>[<smt>]<smt>'
Product: [Retired] Red Hat Linux Reporter: Kyriakos Sidiropoulos <ksidirop>
Component: bashAssignee: Tim Waugh <twaugh>
Status: CLOSED UPSTREAM QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-05-27 08:13:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kyriakos Sidiropoulos 2003-05-26 10:44:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; Hotbar 4.2.8.0)

Description of problem:
[Raptor@Sirca .tmp]$ a[d[c]d]=blahblah
bash: d[c]d: syntax error in expression (error token is "d")

Process shell segmentation fault


Version-Release number of selected component (if applicable):
bash-2.05b

How reproducible:
Always

Steps to Reproduce:
Just type something like : a[d[c]d]=e on the command line and press enter


Actual Results:

bash: d[c]d: syntax error in expression (error token is "d")

Process shell segmentation fault


Expected Results:
[Raptor@Sirca .tmp]$ a[d[c]d]=blahblah
bash: d[c]d: syntax error in expression (error token is "d")
[Raptor@Sirca .tmp]$



Additional info:

~> bash --version
... 2.03.0(1) ...
~>
~> a[d[c]d]=blahblah
bash: d[c]d: syntax error in expression (error token is "d")
~>

Comment 1 Tim Waugh 2003-05-27 08:13:26 UTC
Happens in 9 too.  Reported upstream.