RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1072086 - mksh has another infinite recursion problem in PS4
Summary: mksh has another infinite recursion problem in PS4
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: mksh
Version: 6.5
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Michal Hlavinka
QA Contact: Jan Kepler
URL:
Whiteboard:
Depends On:
Blocks: 1075802 1172231 1269194 1359264 1413023
TreeView+ depends on / blocked
 
Reported: 2014-03-03 21:41 UTC by Thomas Gardner
Modified: 2018-12-05 17:30 UTC (History)
4 users (show)

Fixed In Version: mksh-39-10.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1413023 (view as bug list)
Environment:
Last Closed: 2017-03-21 11:15:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch file that for current (39-7.el6_4.1) mksh SRC RPM. (940 bytes, patch)
2014-03-03 21:41 UTC, Thomas Gardner
no flags Details | Diff
backported fix (5.09 KB, patch)
2014-03-04 20:56 UTC, Michal Hlavinka
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 739163 0 None None None Never
Red Hat Product Errata RHBA-2017:0727 0 normal SHIPPED_LIVE mksh bug fix update 2017-03-21 12:43:07 UTC

Internal Links: 1448950

Description Thomas Gardner 2014-03-03 21:41:40 UTC
Created attachment 870157 [details]
Patch file that for current (39-7.el6_4.1) mksh SRC RPM.

Description of problem:


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

mksh-39-7.el6_4.1 (latest 6.5), though it's probably been there pretty well forever.....

How reproducible:

Always.

Steps to Reproduce:
1. PS4='+ `date` '
2. set -x
3. <any command of your chosing>

Actual results:

$ export PS4='+ $(date) '
+ export PS4=+ $(date)
$ ls
/bin/mksh: too many files open in shell
+  date
+ Mon Feb 24 13:36:10 CET 2014 date
+ Mon Feb 24 13:36:10 CET 2014 date
+ Mon Feb 24 13:36:10 CET 2014 date
+ Mon Feb 24 13:36:10 CET 2014 date
+ Mon Feb 24 13:36:10 CET 2014 date
[output truncated]

Expected results:

$ PS4='+ `date` '
$ set -x
$ ls
+ Mon Mar  3 16:27:00 EST 2014 ls
BUILD  BUILDROOT  RPMS	SOURCES  SPECS	SRPMS  tmp
$ 

Additional info:

I have "a" patch that I tested and seems to work.  If you like it, it can just be slapped right in.

Comment 2 Michal Hlavinka 2014-03-04 20:56:24 UTC
Created attachment 870633 [details]
backported fix

This was fixed upstream in version R47.

Test packages can be found here:
https://brewweb.devel.redhat.com/taskinfo?taskID=7140850

Comment 3 Thomas Gardner 2014-03-05 15:22:43 UTC
That's great.  Will this be brought into the RHEL version?

Comment 5 Thomas Gardner 2014-03-05 15:25:55 UTC
Oh, yes it is.  Sorry.  I misunderstood your update.  Nevermind.

Comment 12 errata-xmlrpc 2017-03-21 11:15:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0727.html


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