Bug 1562124 - futex.test fails on rhel-7.5
Summary: futex.test fails on rhel-7.5
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Developer Toolset
Classification: Red Hat
Component: strace
Version: DTS 7.1 RHEL 7
Hardware: All
OS: Unspecified
unspecified
unspecified
Target Milestone: alpha
: 7.1
Assignee: DJ Delorie
QA Contact: Edjunior Barbosa Machado
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-29 15:00 UTC by Edjunior Barbosa Machado
Modified: 2018-05-03 05:27 UTC (History)
3 users (show)

Fixed In Version: devtoolset-7-strace-4.17-7.el7
Doc Type: No Doc Update
Doc Text:
No doc text needed, internal only.
Clone Of:
Environment:
Last Closed: 2018-05-03 05:27:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
rpmbuild output on rhel-7.5 x86_64 (1003.81 KB, text/plain)
2018-03-29 15:00 UTC, Edjunior Barbosa Machado
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:1287 0 None None None 2018-05-03 05:27:09 UTC

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


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