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 1235833 - strace dies on clone.
Summary: strace dies on clone.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: strace
Version: 7.1
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jeff Law
QA Contact: Michael Petlan
URL:
Whiteboard:
Depends On:
Blocks: 1235855 1235857
TreeView+ depends on / blocked
 
Reported: 2015-06-25 20:57 UTC by D. E. Evans
Modified: 2015-11-19 09:09 UTC (History)
7 users (show)

Fixed In Version: strace-4.8-11.el7
Doc Type: Bug Fix
Doc Text:
Previously, the strace utility contained a race condition in its handling of fork and clone calls when strace was in the "follow-fork" mode (using the "-f" option). As a consequence, strace could lose track of a traced process, and the traced process was incorrectly terminated. With this update, the race condition has been closed, and strace correctly handles the tracing of both the parent and child processes, regardless of which starts to be executed first. As a result, programs that fork or clone while under strace control no longer terminate prematurely.
Clone Of:
: 1235855 1235857 (view as bug list)
Environment:
Last Closed: 2015-11-19 09:09:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2145 0 normal SHIPPED_LIVE strace bug fix update 2015-11-19 09:21:45 UTC

Description D. E. Evans 2015-06-25 20:57:47 UTC
Description of problem:
strace dies on clone.

Version-Release number of selected component (if applicable):
tested with 4.8-7 on 7.1.

How reproducible:
Run ntpd (or chronyd) manually with strace.

Steps to Reproduce:
systemctl stop chronyd
strace -f ntpd -u ntp:ntp -g

Actual results:
When the process clones and drops its capabilities, strace disconnects.

Expected results:
strace output should show binding to port 123 as the ntp user and dropping its capabilities (see capset and setuid calls).

Additional info:
Works fine with a default build of 4.10 upstream (i.e. rpmbuild -ta, rpm -U of resulting RPM).

Comment 2 Jeff Law 2015-06-25 22:54:57 UTC
I'm confident this problem is due to a race which can cause the follow-fork option (-f) to not work properly in some cases.

strace is not scheduled to be updated in RHEL 7.2.  However I will make sure this gets fixed in the next version of DTS.

Comment 9 errata-xmlrpc 2015-11-19 09:09: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://rhn.redhat.com/errata/RHBA-2015-2145.html


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