Bug 1804334
Summary: | [RHEL 7 DTS] devtoolset-9 strace gets confused by PID namespaces | ||
---|---|---|---|
Product: | Red Hat Developer Toolset | Reporter: | Edjunior Barbosa Machado <emachado> |
Component: | strace | Assignee: | Eugene Syromiatnikov <esyr> |
Status: | CLOSED ERRATA | QA Contact: | Edjunior Barbosa Machado <emachado> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | DTS 9.1 RHEL 7 | CC: | berrange, dj, esyr, law, lmiksik, mjw, mnewsome, mpetlan |
Target Milestone: | alpha | Keywords: | Reopened |
Target Release: | 9.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | devtoolset-10-strace-5.7-3.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1035434 | Environment: | |
Last Closed: | 2020-12-01 12:13:27 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1035434, 1807458 | ||
Bug Blocks: | 1725113, 1780592, 1790836 |
Comment 4
Eugene Syromiatnikov
2020-09-10 10:09:08 UTC
This issue seems to be still reproducible with devtoolset-10-strace-5.7-3.el7: [root@ibm-p8-kvm-03-guest-12 tmp]# scl enable devtoolset-10 bash [root@ibm-p8-kvm-03-guest-12 tmp]# strace -f -ff -o s.log unshare --pid -- /bin/sh sh-4.2# /bin/sh sh-4.2# /bin/sh sh-4.2# /bin/sh sh-4.2# exit sh-4.2# exit sh-4.2# exit sh-4.2# exit [root@ibm-p8-kvm-03-guest-12 tmp]# ls s.log.3092 s.log.3095 s.log.3098 s.log.3101 [root@ibm-p8-kvm-03-guest-12 tmp]# grep clone s.log* s.log.3092:clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x3fffb3863ff0) = 3095 s.log.3095:clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x3fffaee93ff0) = 2 s.log.3098:clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x3fffae993ff0) = 3 [root@ibm-p8-kvm-03-guest-12 tmp]# rpm -qf $(which strace) devtoolset-10-strace-5.7-3.el7.ppc64le The feature is to be explicitly enabled with "--pidns-translation" option, as it incurs significant overhead and clutters the output (since both the original syscall arguments/return values and the translated ones to be displayed). Thanks Eugene for clarifying that, I overlooked your previous comment explaining the fix. On RHEL-7.9-20200917.0 (kernel 3.10), devtoolset-10-strace-5.7-3.el7 --pidns-translation returns "NS_* ioctl commands are not supported by the kernel": [root@kvm-02-guest16 tmp]# strace --pidns-translation -f -ff -o s.log unshare --pid -- /bin/sh sh-4.2# /bin/sh strace: NS_* ioctl commands are not supported by the kernel sh-4.2# /bin/sh sh-4.2# /bin/sh sh-4.2# exit sh-4.2# exit sh-4.2# exit sh-4.2# exit [root@kvm-02-guest16 tmp]# ls s.log.* s.log.18982 s.log.18985 s.log.18990 s.log.18991 [root@kvm-02-guest16 tmp]# grep clone s.log* s.log.18982:clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f68b74aba10) = 18985 s.log.18985:clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fb837c22a10) = 2 s.log.18990:clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fc8c25f3a10) = 3 [root@kvm-02-guest16 tmp]# uname -a Linux kvm-02-guest16.hv2.lab.eng.bos.redhat.com 3.10.0-1160.el7.x86_64 #1 SMP Tue Aug 18 14:50:17 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux On RHEL-ALT-7.6-updates-20190722.1 (kernel 4.14), devtoolset-10-strace --pidns-translation does work as expected: [root@ibm-p8-kvm-03-guest-01 tmp]# scl enable devtoolset-10 bash [root@ibm-p8-kvm-03-guest-01 tmp]# strace --pidns-translation -f -ff -o s.log unshare --pid -- /bin/sh sh-4.2# /bin/sh sh-4.2# /bin/sh sh-4.2# /bin/sh sh-4.2# exit sh-4.2# exit sh-4.2# exit sh-4.2# exit [root@ibm-p8-kvm-03-guest-01 tmp]# ls s.log.* s.log.15255 s.log.15260 s.log.15263 s.log.15264 [root@ibm-p8-kvm-03-guest-01 tmp]# grep clone s.log* s.log.15255:clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fffa8d13ff0) = 15260 s.log.15260:clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fffb3703ff0) = 2 /* 15263 in strace's PID NS */ s.log.15263:clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fff9db03ff0) = 3 /* 15264 in strace's PID NS */ [root@ibm-p8-kvm-03-guest-01 tmp]# uname -a Linux ibm-p8-kvm-03-guest-01.virt.pnr.lab.eng.rdu2.redhat.com 4.14.0-115.8.2.el7a.ppc64le #1 SMP Fri Jun 21 07:25:08 EDT 2019 ppc64le ppc64le ppc64le GNU/Linux 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 (new packages: devtoolset-10-strace), 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/RHEA-2020:5292 |