Bug 1562124

Summary: futex.test fails on rhel-7.5
Product: Red Hat Developer Toolset Reporter: Edjunior Barbosa Machado <emachado>
Component: straceAssignee: DJ Delorie <dj>
Status: CLOSED ERRATA QA Contact: Edjunior Barbosa Machado <emachado>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: DTS 7.1 RHEL 7CC: kanderso, mcermak, mnewsome
Target Milestone: alpha   
Target Release: 7.1   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: devtoolset-7-strace-4.17-7.el7 Doc Type: No Doc Update
Doc Text:
No doc text needed, internal only.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-03 05:27:04 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:
Attachments:
Description Flags
rpmbuild output on rhel-7.5 x86_64 none

Description Edjunior Barbosa Machado 2018-03-29 15:00:55 UTC
Created attachment 1414790 [details]
rpmbuild output on rhel-7.5 x86_64

Description of problem:
futex.test from devtoolset-7-strace-4.17-5.el7 internal testsuite is failing on RHEL-7.5-20180322.0 in all archs. The same testcase runs successfully on RHEL-7.4.

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

How reproducible:
100%

Steps to Reproduce:
1. rpmbuild --rebuild devtoolset-7-strace-4.17-5.el7.src.rpm

Actual results:
...
PASS: execve.test
PASS: fadvise64.test
FAIL: futex.test
PASS: getuid.test
PASS: ioctl.test
...

$ cat rpmbuild/BUILD/strace-4.17/tests/futex.log 
futex(0x7f7846cbeffc, 0x3, 0xfacefeed, 0xbadda7a0ca7b100d, 0x7f7846cbeffc, 0x9caffee1) = -1: Invalid argument
futex.test: failed test: ../futex failed with code 1
$ uname -a
Linux sheep-23.lab.eng.brq.redhat.com 3.10.0-862.el7.x86_64 #1 SMP Wed Mar 21 18:14:51 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

Comment 2 Edjunior Barbosa Machado 2018-03-29 16:48:50 UTC
FWIW, the failure is not reproducible on current upstream strace. Applying commit 79d10dfc20985225e4ea044d3875c4cea09053d7 on top of devtoolset-7-strace-4.17-5.el7.src.rpm seems to fix the issue.

Comment 4 Edjunior Barbosa Machado 2018-04-03 11:46:36 UTC
The testcase now passes on all archs except x86_64: it fails on strace-4.17/tests-m32/ apparently because the fix wasn't replicated into this directory (the original patch fixes only the original testcase in tests/ dir).
Manually applying the very same patch in strace-4.17/tests-m32/futex.c solves this issue.

Comment 10 errata-xmlrpc 2018-05-03 05:27:04 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:1287