Bug 1313259 - Upstream tests cause building python package on brew stall and leave orphan processes that need manually kill
Upstream tests cause building python package on brew stall and leave orphan p...
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python (Show other bugs)
Unspecified Unspecified
high Severity unspecified
: rc
: ---
Assigned To: Charalampos Stratakis
Branislav Náter
: Patch
: 1313148 (view as bug list)
Depends On:
Blocks: 1295829
  Show dependency treegraph
Reported: 2016-03-01 04:28 EST by Xibo Ning
Modified: 2016-11-03 16:16 EDT (History)
6 users (show)

See Also:
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)
Last Closed: 2016-11-03 16:16:16 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
demo program emulate mock (1.31 KB, text/x-python)
2016-03-01 07:27 EST, Xibo Ning
no flags Details
demo program emulate rpmbuild (656 bytes, text/x-python)
2016-03-01 07:28 EST, Xibo Ning
no flags Details

  None (edit)
Description Xibo Ning 2016-03-01 04:28:54 EST
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

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
Comment 2 Xibo Ning 2016-03-01 07:25:01 EST
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 07:27 EST
Created attachment 1131897 [details]
demo program emulate mock
Comment 4 Xibo Ning 2016-03-01 07:28 EST
Created attachment 1131898 [details]
demo program emulate rpmbuild
Comment 6 Charalampos Stratakis 2016-03-12 09:22:15 EST
*** Bug 1313148 has been marked as a duplicate of this bug. ***
Comment 12 errata-xmlrpc 2016-11-03 16:16:16 EDT
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.


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