Bug 1223557
| Summary: | 'find -execdir' opens too many file descriptors | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | benjaminmoody | |
| Component: | findutils | Assignee: | Kamil Dudka <kdudka> | |
| Status: | CLOSED ERRATA | QA Contact: | Branislav NĂ¡ter <bnater> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 6.6 | CC: | bnater, ovasik | |
| Target Milestone: | rc | Keywords: | Patch | |
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | findutils-4.4.2-8.el6 | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
If the -execdir option was given to find, it did not close file descriptors as they became unused.
Consequence:
The limit of open file descriptors was exceeded.
Fix:
An upstream patch has been applied to find source code to release file descriptors that become unused.
Result:
find -execdir no longer excessively consumes file descriptors.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1309633 (view as bug list) | Environment: | ||
| Last Closed: | 2016-01-14 17:24:49 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: | ||||
| Bug Depends On: | 1309633 | |||
| Bug Blocks: | ||||
|
Description
benjaminmoody
2015-05-20 20:52:47 UTC
Thank you for reporting the bug. I believe the following upstream commit will fix it: http://git.savannah.gnu.org/cgit/findutils.git/commit/?id=183115d0 diff --git a/find/pred.c b/find/pred.c index d6bbaea..2a89a37 100644 --- a/find/pred.c +++ b/find/pred.c @@ -681,14 +681,16 @@ impl_pred_exec (const char *pathname, 0); } /* Actually invoke the command. */ result = execp->ctl.exec_callback(&execp->ctl, &execp->state); } + if (local) + free_cwd (execp->wd_for_exec); if (target != pathname) { assert (local); free (target); } return result; } 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-0038.html |