Bug 1366677

Summary: Some rhel6 specific internal testsuite failures of devtoolset-6-strace-4.12-2.el6.src.rpm
Product: Red Hat Developer Toolset Reporter: Martin Cermak <mcermak>
Component: straceAssignee: DJ Delorie <dj>
Status: CLOSED ERRATA QA Contact: Martin Cermak <mcermak>
Severity: low Docs Contact:
Priority: low    
Version: DTS 6.0 RHEL 6CC: kanderso, mnewsome
Target Milestone: alpha   
Target Release: 6.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: devtoolset-6-strace-4.12-3.el{6,7} Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-15 10:15:34 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 Martin Cermak 2016-08-12 14:59:08 UTC
On rhel6, the internal testsuite of devtoolset-6-strace-4.12-2.el6.src.rpm shows (among others) 3 failures: setgit.test, setuid.test, setgroups.test. Same failures can be seen using upstream strace-4.13 sources, so this is not yet fixed upstream. Logs:

=======
 6.8 S x86_64 [-] # set -x; for i in setgid setuid setgroups; do cat tests/$i.log; cat tests/$i.trs;  cat tests/${i}32.log; cat tests/${i}32.trs; done; set +x
+ for i in setgid setuid setgroups
+ cat tests/setgid.log
setgid(0xffffffff) != -1
setgid.test: failed test: ./setgid failed
+ cat tests/setgid.trs
:test-result: FAIL
:global-test-result: FAIL
:recheck: yes
:copy-in-global-log: yes
+ cat tests/setgid32.log
undefined: __NR_setgid32
setgid32.test: skipped test: ./setgid32 exited with code 77
+ cat tests/setgid32.trs
:test-result: SKIP
:global-test-result: SKIP
:recheck: no
:copy-in-global-log: yes
+ for i in setgid setuid setgroups
+ cat tests/setuid.log
setuid(0xffffffff) != -1
setuid.test: failed test: ./setuid failed
+ cat tests/setuid.trs
:test-result: FAIL
:global-test-result: FAIL
:recheck: yes
:copy-in-global-log: yes
+ cat tests/setuid32.log
undefined: __NR_setuid32
setuid32.test: skipped test: ./setuid32 exited with code 77
+ cat tests/setuid32.trs
:test-result: SKIP
:global-test-result: SKIP
:recheck: no
:copy-in-global-log: yes
+ for i in setgid setuid setgroups
+ cat tests/setgroups.log
14c14
< setgroups(3, [0, 1]) = 0
---
> setgroups(3, [0, 1, ...]) = 0
setgroups.test: failed test: ../strace -e trace=setgroups -s2 -a17 ./setgroups output mismatch
+ cat tests/setgroups.trs
:test-result: FAIL
:global-test-result: FAIL
:recheck: yes
:copy-in-global-log: yes
+ cat tests/setgroups32.log
undefined: __NR_setgroups32
setgroups32.test: skipped test: ./setgroups32 exited with code 77
+ cat tests/setgroups32.trs
:test-result: SKIP
:global-test-result: SKIP
:recheck: no
:copy-in-global-log: yes
+ set +x
 6.8 S x86_64 [-] # 
=======

Note that all these tests pass (or get skipped) on rhel7:

=======
 7.3 S x86_64 [-] # set -x; for i in setgid setuid setgroups; do cat tests/$i.log; cat tests/$i.trs;  cat tests/${i}32.log; cat tests/${i}32.trs; done; set +x
+ for i in setgid setuid setgroups
+ cat tests/setgid.log
+ cat tests/setgid.trs
:test-result: PASS
:global-test-result: PASS
:recheck: no
:copy-in-global-log: no
+ cat tests/setgid32.log
undefined: __NR_setgid32
setgid32.test: skipped test: ./setgid32 exited with code 77
+ cat tests/setgid32.trs
:test-result: SKIP
:global-test-result: SKIP
:recheck: no
:copy-in-global-log: yes
+ for i in setgid setuid setgroups
+ cat tests/setuid.log
+ cat tests/setuid.trs
:test-result: PASS
:global-test-result: PASS
:recheck: no
:copy-in-global-log: no
+ cat tests/setuid32.log
undefined: __NR_setuid32
setuid32.test: skipped test: ./setuid32 exited with code 77
+ cat tests/setuid32.trs
:test-result: SKIP
:global-test-result: SKIP
:recheck: no
:copy-in-global-log: yes
+ for i in setgid setuid setgroups
+ cat tests/setgroups.log
+ cat tests/setgroups.trs
:test-result: PASS
:global-test-result: PASS
:recheck: no
:copy-in-global-log: no
+ cat tests/setgroups32.log
undefined: __NR_setgroups32
setgroups32.test: skipped test: ./setgroups32 exited with code 77
+ cat tests/setgroups32.trs
:test-result: SKIP
:global-test-result: SKIP
:recheck: no
:copy-in-global-log: yes
+ set +x
 7.3 S x86_64 [-] # 
=======


Note that the rhel6 kernel(s) where these issues were found are 2.6.32-642.3.1.el6 and 2.6.32-573.32.1.el6, whereas on rhel7 these tests pass on all the kernels under test (e.g. 3.10.0-484.el7).

Comment 4 errata-xmlrpc 2016-11-15 10:15:34 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://rhn.redhat.com/errata/RHBA-2016-2743.html