Bug 681460 - bash -c 'TZ=UTC0 :' causes segfault
Summary: bash -c 'TZ=UTC0 :' causes segfault
Keywords:
Status: CLOSED DUPLICATE of bug 681462
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Roman Rakus
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-02 09:33 UTC by Jim Meyering
Modified: 2016-04-26 14:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-07 16:06:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jim Meyering 2011-03-02 09:33:46 UTC
Description of problem: 
bash -c 'TZ=UTC0 :' causes segfault

Version-Release number of selected component (if applicable): x86_64 0:4.2.5-1.fc15


How reproducible: always


Steps to Reproduce:
1. bash -c 'TZ=UTC0 :'
2.
3.
  
Actual results: 

$ bash -c 'TZ=UTC0 :'
zsh: segmentation fault  bash -c 'TZ=UTC0 :'

Expected results:

no segfault

Additional info:

This bug was introduced with patch bash42-005:
This function must accommodate v == NULL, since exported_p dereferences its argument.  Patch attached.

+ int
+ chkexport (name)
+      char *name;
+ {
+   SHELL_VAR *v;
+ 
+   v = find_variable (name);
+   if (exported_p (v))
+     {
+       array_needs_making = 1;
+       maybe_make_export_env ();
+       return 1;
+     }
+   return 0;
+ }

Comment 1 Roman Rakus 2011-03-07 16:06:52 UTC
Why triple report? :)

*** This bug has been marked as a duplicate of bug 681462 ***

Comment 2 Jim Meyering 2011-03-07 16:20:53 UTC
At first, I had no idea who you were asking, because AFAIK, I submitted only one report, the original.  Perhaps my browser (firefox 3.6.16pre) is somehow resubmitting a new report whenever I restart it?


Note You need to log in before you can comment on or make changes to this bug.