Bug 30550 - File descriptor 3 (pipe:[4422]) leaked on ... invocation.
File descriptor 3 (pipe:[4422]) leaked on ... invocation.
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: UCS Installer
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-22 08:57 CET by Philipp Hahn
Modified: 2020-07-04 11:56 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.029
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2013-02-22 08:57:59 CET
$ grep leak /tmp/installer.log 
=> File descriptor 3 (pipe:[4422]) leaked on vgreduce invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on vgremove invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on pvremove invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on pvremove invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on pvremove invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on pvcreate invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on vgcreate invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on pvremove invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on pvcreate invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on vgextend invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on lvcreate invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on pvdisplay invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on vgdisplay invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on vgdisplay invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on lvdisplay invocation. Parent PID 802: /bin/python2.6
=> File descriptor 3 (pipe:[4422]) leaked on vgchange invocation. Parent PID 802: /bin/python2.6

This is problematic, because especially with pipe() and process inheriting an opened pipe modifies the behavior of the pipe:
- inheriting the write-end of the pipe will prevent any reader from detecting EOF. A reader blocks until all write-ends are closed.
- inheriting the read-end of the pipe will prevent any writer from detecting that the real reader already closed the pipe. The writer is signaled with SIGPIPE, when all read-ends are closed.

pipe2(, O_CLOEXEC) oder subprocess.Popen(..., close_fds=True) should probably be used.
Comment 1 Stefan Gohmann univentionstaff 2017-06-16 20:37:07 CEST
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4.

If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
Comment 2 Stefan Gohmann univentionstaff 2017-08-08 07:09:49 CEST
This issue has been filed against UCS 3.1.

UCS 3.1 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.
Comment 3 Ingo Steuwer univentionstaff 2020-07-03 20:53:23 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
Comment 4 Philipp Hahn univentionstaff 2020-07-04 11:56:02 CEST
LVM still complains about inherited open file descriptors.