Bug 903540 - File descriptor leak when using bash-completion
Summary: File descriptor leak when using bash-completion
Keywords:
Status: CLOSED DUPLICATE of bug 903833
Alias: None
Product: Fedora
Classification: Fedora
Component: bash-completion
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-24 09:24 UTC by Giovanni Campagna
Modified: 2013-02-01 17:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-01 17:48:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Giovanni Campagna 2013-01-24 09:24:58 UTC
Description of problem:
Bash consistently leaks 2 file descriptors opened to /usr/share/bash-completion/completions when applying command completions.
The problem arises also when the directory is completely empty, so it's not related to scripts installed there.

Version-Release number of selected component (if applicable):
bash-4.2.42-1.fc18.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Press tab twice at the prompt. No command is needed.
2. Watch ls -l /proc/$$/fd become longer
3. Wait for Too many open files error

Expected results:
No additional file descriptors are kept open after completing the command.

Comment 1 Roman Rakus 2013-01-24 19:51:55 UTC
So it belongs to bash-completion package.

Comment 2 Ville Skyttä 2013-01-24 22:09:31 UTC
That seems to come from us trying to source the /usr/share/bash-completion/completions dir itself in some scenarios, and bash leaking a fd on each such try.

See bug 903833 for the bash one, candidate workaround applied in bash-completion upstream:

http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=fea1c17

Comment 4 Ville Skyttä 2013-02-01 17:48:13 UTC
Bug 903833 fixes the root cause so there's no need to wait for the bash-completion workaround.

*** This bug has been marked as a duplicate of bug 903833 ***


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