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 1313259

Summary: Upstream tests cause building python package on brew stall and leave orphan processes that need manually kill
Product: Red Hat Enterprise Linux 7 Reporter: Xibo Ning <xning>
Component: pythonAssignee: Charalampos Stratakis <cstratak>
Status: CLOSED ERRATA QA Contact: Branislav NĂ¡ter <bnater>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.2CC: cstratak, isenfeld, lmiksik, ovasik, pviktori, torsava
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-2.7.5-36.el7 Doc Type: Bug Fix
Doc Text:
Cause: In TestForkInThread test case from test_thread.py upstream test suite, sys.exit(0) is used instead of os._exit(0). Consequence: Zombie processes are left behind which leave brew builds hanging. Fix: Apply upstream patch to change the TestForkInThread test case Result: Brew builds are not hanging.
Story Points: ---
Clone Of:
: 1365200 (view as bug list) Environment:
Last Closed: 2016-11-03 20:16:16 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: 1295829    
Attachments:
Description Flags
demo program emulate mock
none
demo program emulate rpmbuild none

Description Xibo Ning 2016-03-01 09:28:54 UTC
Description of problem:
The following upstream tests, because of bug 1313148, will cause building python package on brew stall and leave orphan processes that need manually kill
test___all__
test_asynchat
test_tcl
test_tk
test_ttk_guionly
test_ttk_textonly

Version-Release number of selected component (if applicable):
python >= 2.7
python >= 3.4



Additional info
The origin issue that report the problem is here
https://engineering.redhat.com/rt/Ticket/Display.html?id=374328

Comment 2 Xibo Ning 2016-03-01 12:25:01 UTC
Here is a demo to verify why the bug 1313148 make brew building python package trouble. The demo files in the attachment.

Please run the demo as following
1. need a rhel7/centos7/fedora23 system
2. install python2 tinter module
3. download the two program to temporary directory
4. have the two program executable
5. run the cntl.py
6. if emulate mock-1.1.16, you need manually kill the cntl.py process
7. verify that there is an orphan process

Comment 3 Xibo Ning 2016-03-01 12:27:52 UTC
Created attachment 1131897 [details]
demo program emulate mock

Comment 4 Xibo Ning 2016-03-01 12:28:36 UTC
Created attachment 1131898 [details]
demo program emulate rpmbuild

Comment 6 Charalampos Stratakis 2016-03-12 14:22:15 UTC
*** Bug 1313148 has been marked as a duplicate of this bug. ***

Comment 12 errata-xmlrpc 2016-11-03 20:16:16 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/RHSA-2016-2586.html