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 1600210

Summary: strace-4.12-7.el7 FTBFS in rhel-7.6 x86_64 due to membarrier.test failure
Product: Red Hat Enterprise Linux 7 Reporter: Edjunior Barbosa Machado <emachado>
Component: straceAssignee: Eugene Syromiatnikov <esyr>
Status: CLOSED ERRATA QA Contact: Edjunior Barbosa Machado <emachado>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: law, ohudlick
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: strace-4.12-9.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 09:35:31 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:

Description Edjunior Barbosa Machado 2018-07-11 17:19:35 UTC
Description of problem:
strace-4.12-7.el7 fails to build from source in rhel-7.6 x86_64 due to membarrier.test failure.

The same testcase failure was previously addressed against rhel-alt-7.5 on bug #1540954

Version-Release number of selected component (if applicable):
strace-4.12-7.el7

How reproducible:
100%

Steps to Reproduce:
1. rpmbuild --rebuild ./strace-4.12-7.el7.src.rpm

Actual results:
(...)
SKIP: lstat64.test
PASS: mbind.test
FAIL: membarrier.test
PASS: memfd_create.test
PASS: migrate_pages.test
(...)
============================================================================
Testsuite summary for strace 4.12
============================================================================
# TOTAL: 253
# PASS:  211
# SKIP:  41
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to strace-devel.net
============================================================================
make[5]: *** [test-suite.log] Error 1
make[5]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12/tests'
make[4]: *** [check-TESTS] Error 2
make[4]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12/tests'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12/tests'
make[2]: Entering directory `/root/rpmbuild/BUILD/strace-4.12'
make[2]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12'
make: *** [check] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.ZIZhA2 (%check)



RPM build errors:
    ./strace-4.12-7.el7.src.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
(...)

from strace-4.12/tests/test-suite.log:
FAIL: membarrier
================

membarrier returned 0x7f, does the test have to be updated?
membarrier.test: failed test: ./membarrier failed


Expected results:
Successful build/no testcase failure

Additional info:
Linux qeos-41.lab.eng.rdu2.redhat.com 3.10.0-918.el7.x86_64 #1 SMP Mon Jul 2 15:26:01 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

Comment 1 Edjunior Barbosa Machado 2018-07-12 07:58:12 UTC
The membarrier.test failure is also reproducible on rhel-7.6 in ppc64, ppc64le and s390x, although it doesn't lead to FTBFS since the testsuite is currently not being run on %check for these architectures.

Comment 3 Edjunior Barbosa Machado 2018-07-20 14:27:50 UTC
Verified as fixed on strace-4.12-8.el7.src.rpm.

Comment 4 Edjunior Barbosa Machado 2018-07-20 17:41:57 UTC
I was too hasty: actually, membarrier.test from strace-4.12-8.el7.src.rpm still fails on rhel-7.6 x86_64 if the system provides -m32 compile and runtime support (libgcc.i686 and glibc*.i686, which are not build requirements but might be installed). The testcase was fixed for 'tests', but not yet for 'tests-m32', causing rpmbuild to fail.

Comment 5 Eugene Syromiatnikov 2018-07-21 21:35:20 UTC
(In reply to Edjunior Barbosa Machado from comment #4)
> I was too hasty: actually, membarrier.test from strace-4.12-8.el7.src.rpm
> still fails on rhel-7.6 x86_64 if the system provides -m32 compile and
> runtime support (libgcc.i686 and glibc*.i686, which are not build
> requirements but might be installed). The testcase was fixed for 'tests',
> but not yet for 'tests-m32', causing rpmbuild to fail.

It's fixed in 4.12-9; although, it's of limited use, as build repositories do not provide compat libraries, so these tests couldn't be run during normal package build.

Comment 6 Edjunior Barbosa Machado 2018-07-23 16:02:19 UTC
(In reply to Eugene Syromiatnikov from comment #5)
> It's fixed in 4.12-9; although, it's of limited use, as build repositories
> do not provide compat libraries, so these tests couldn't be run during
> normal package build.

Thanks for clarifying that.

Verified as fixed rebuilding strace-4.12-9.el7.src.rpm on rhel-7.6 x86_64 with compat libraries and running internal-tests in all architectures:

https://beaker.engineering.redhat.com/tasks/executed?recipe_task_id=75978647&recipe_task_id=75978697&recipe_task_id=75978745&recipe_task_id=75978791&recipe_task_id=75999916&recipe_task_id=75978244&recipe_task_id=75978289

Comment 8 errata-xmlrpc 2018-10-30 09:35:31 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://access.redhat.com/errata/RHBA-2018:3087