Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1138751

Summary: shell hangs if setting variable from command that produces more than 120k and is piped
Product: Red Hat Enterprise Linux 6 Reporter: Filip Krska <fkrska>
Component: kshAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: Martin Kyral <mkyral>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.5CC: akarlsso, bnater, jkejda, jsvarova, kdudka, mkyral, ovasik, tlavigne
Target Milestone: rcKeywords: Regression, Reproducer, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ksh-20120801-22.el6 Doc Type: Bug Fix
Doc Text:
Previously, the KornShell became unresponsive when setting a variable from a command that produced more than 120 k and was then piped. A patch has been applied to fix this bug, and KornShell now executes commands correctly.
Story Points: ---
Clone Of:
: 1141243 1148830 1148831 (view as bug list) Environment:
Last Closed: 2015-07-22 06:55:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1148830, 1148831, 1159926    
Attachments:
Description Flags
patch to fix this
none
patch to fix this v2
none
patch to fix this v3 none

Description Filip Krska 2014-09-05 14:41:25 UTC
Description of problem:

release fixing Bug 1062296 hangs on reproducer with added pipe

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

ksh-20120801-10.el6_5.9

How reproducible:

Always

Steps to Reproduce:
1. HANG=`dd if=/dev/zero bs=1k count=117 2>/dev/null|cat`
2.
3.

Actual results:

Command hangs

Expected results:

Command executes correctly

Additional info:

ksh-20120801-10.el6 doesn't reproduce => regression

Comment 4 Michal Hlavinka 2014-09-12 13:51:54 UTC
reproducible, around one of eight times it hangs

Comment 5 Michal Hlavinka 2014-09-16 08:05:38 UTC
Created attachment 937901 [details]
patch to fix this

Comment 9 Michal Hlavinka 2014-09-16 14:38:11 UTC
Created attachment 938046 [details]
patch to fix this v2

Comment 10 Michal Hlavinka 2014-09-16 16:52:38 UTC
*** Bug 1138590 has been marked as a duplicate of this bug. ***

Comment 15 Michal Hlavinka 2014-09-18 13:47:20 UTC
Created attachment 938914 [details]
patch to fix this v3

Comment 22 Branislav NĂ¡ter 2014-10-02 11:43:54 UTC
Reproducer available qa_ack+

Comment 28 errata-xmlrpc 2015-07-22 06:55:57 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-2015-1450.html