Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1344860

Summary: Flushing channels can caused leaked file-descriptors
Product: Red Hat Enterprise Linux 6 Reporter: Jeremy Sowden <jeremy>
Component: tclAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1344866 (view as bug list) Environment:
Last Closed: 2016-06-14 07:48:29 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:
Attachments:
Description Flags
Tcl patch. none

Description Jeremy Sowden 2016-06-11 19:42:55 UTC
Created attachment 1167021 [details]
Tcl patch.

Description of problem:

It turns out that under some Linux kernels (including rhel5 and rhel6), select(2) does not return as writable sockets which have been closed from the other end, even though calls to sendmsg (which is what POSIX gives as the implied output function for sockets) would not block.  This can result in Tcl's leaking socket-descriptors.

I reported this bug upstream two years ago:

http://core.tcl.tk/tcl/info/1758a0b603

but forgot to raise it here.

I've attached a patch derived from upstream's fix.

Comment 2 Jaroslav Škarvada 2016-06-14 07:48:29 UTC
Closing according to bug 1344866 comment 8. If the problem persist, feel free to reopen.