Bug 690315

Summary: python occasionally fails to build on machines with more than one core
Product: Red Hat Enterprise Linux 6 Reporter: Dave Malcolm <dmalcolm>
Component: pythonAssignee: Dave Malcolm <dmalcolm>
Status: CLOSED ERRATA QA Contact: Petr Šplíchal <psplicha>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: ohudlick, psplicha
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-2.6.6-16.el6 Doc Type: Bug Fix
Doc Text:
A race condition was discovered in python Makefile.pre.in. The "make" command interprets a make rule with two dependents as two copies of the rule. On machines with more than one core, this could lead to race conditions in which the compiler attempted to read a partially-overwritten file. This resulted in syntax or link errors when attempting to build python on machines with multiple cores. A check has been added to prevent this issue.
Story Points: ---
Clone Of:
: 701277 (view as bug list) Environment:
Last Closed: 2011-05-19 11:35:50 UTC Type: ---
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: 681878    

Description Dave Malcolm 2011-03-23 21:08:47 UTC
Description of problem:
There's a race condition in python Makefile.pre.in, which sometimes leads to compile/link errors on machines with more than one core.

See e.g. http://bugs.python.org/issue10013

Fix is trivial and in Fedora:
  http://pkgs.fedoraproject.org/gitweb/?p=python.git;a=blob;f=python-2.7-fix-parallel-make.patch;h=c43e141f9afba45768af85593a2ff41b5a24e464;hb=b95f6cc2ca6a009f97436c6aa16cfd70547353d9

Comment 8 Laura Bailey 2011-05-10 05:56:27 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
A race condition was discovered in python Makefile.pre.in. The "make" command interprets a make rule with two dependents as two copies of the rule. On machines with more than one core, this could lead to race conditions in which the compiler attempted to read a partially-overwritten file. This resulted in syntax or link errors when attempting to build python on machines with multiple cores. A check has been added to prevent this issue.

Comment 9 errata-xmlrpc 2011-05-19 11:35:50 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0554.html

Comment 10 errata-xmlrpc 2011-05-19 13:07:54 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0554.html