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 810559 - FTBFS: libvirt has parallel make race that can stop build
Summary: FTBFS: libvirt has parallel make race that can stop build
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Eric Blake
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-06 17:33 UTC by Eric Blake
Modified: 2012-06-20 06:52 UTC (History)
8 users (show)

Fixed In Version: libvirt-0.9.10-11.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 06:52:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0748 0 normal SHIPPED_LIVE Low: libvirt security, bug fix, and enhancement update 2012-06-19 19:31:38 UTC

Description Eric Blake 2012-04-06 17:33:24 UTC
Description of problem:
libvirt's docs/Makefile.am is not parallel-safe, and as a result, can cause spurious build failures.

Version-Release number of selected component (if applicable):
v0.9.10-10.el6

How reproducible:
50% or so - depends on the race condition

Steps to Reproduce:
1. make -j2
2.
3.
  
Actual results:
  GEN    html/index.html
  GEN    devhelp/index.html
Validating hvsupport.html
warning: failed to load external entity "hvsupport.html.tmp"
make[2]: *** [hvsupport.html] Error 1
rm formatdomain.html.tmp hooks.html.tmp formatstorage.html.tmp


Expected results:
clean build every time

Additional info:
Upstream patch available:
https://www.redhat.com/archives/libvir-list/2012-April/msg00163.html
no impact to the source code, so safe to backport

Comment 2 Daniel Veillard 2012-04-09 08:13:30 UTC
ACK this make rebuilds of the rpm fail randomly and happened a couple
of time in brew already, very painful !

Daniel

Comment 5 Alex Jia 2012-04-12 09:34:20 UTC
(In reply to comment #0)
> How reproducible:
> 50% or so - depends on the race condition
Eric, I want to know how to easily reproduce this issues?

I tried to run many make jobs to increase race condition such as ./configure && make -j20, but everything is okay on libvirt-0.9.10-10 source rpm package, maybe I can easy to reproduce it on some low profile machine, if so, I will change kernel cmdline to limit host cpu/memory resources, or I may increase cpu or memory stress on the host something like that?

Thanks,
Alex

Comment 6 Eric Blake 2012-04-12 11:56:43 UTC
I was hitting the problem about 50% of my time when doing './autobuild.sh' on my dual-core laptop, which invokes 'make -j2', with no special load or kernel tweaking.  I have no idea how to force the race.  It might be possible to inspect 'make --debug' output with appropriate make targets to see if the dependency chains are correct, but even then, I'm not sure what specifically to look for; maybe you can figure out how to have make tell you what the prerequisites of hvsupport.html and hvsupport.html.in are, then compare those lists pre- and post-patch to see that hvsupport.html has added more dependencies.

Comment 7 Alex Jia 2012-04-12 15:16:01 UTC
(In reply to comment #6)
> I was hitting the problem about 50% of my time when doing './autobuild.sh' on
> my dual-core laptop, which invokes 'make -j2', with no special load or kernel
> tweaking.  I have no idea how to force the race.  It might be possible to
> inspect 'make --debug' output with appropriate make targets to see if the
> dependency chains are correct, but even then, I'm not sure what specifically to
> look for; maybe you can figure out how to have make tell you what the
> prerequisites of hvsupport.html and hvsupport.html.in are, then compare those
> lists pre- and post-patch to see that hvsupport.html has added more
> dependencies.

I see, thanks for your nice comment, I will try to reproduce it again according to your advice, thanks a lot.

Comment 8 Alex Jia 2012-04-12 16:13:59 UTC
(In reply to comment #6)
> I was hitting the problem about 50% of my time when doing './autobuild.sh' on
> my dual-core laptop, which invokes 'make -j2', with no special load or kernel

I can also reproduce the issues on my dual-core laptop with libvirt-0.9.10-10.el6.src.rpm by run ./autobuild && make -j2:

Validating hvsupport.html
warning: failed to load external entity "hvsupport.html.tmp"
make[2]: *** [hvsupport.html] Error 1

And I can't reproduce it with libvirt-0.9.10-11.el6.src.rpm on the same test environment, so the bug has been verified.

Comment 10 errata-xmlrpc 2012-06-20 06:52:51 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.

http://rhn.redhat.com/errata/RHSA-2012-0748.html


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