Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1344860 - Flushing channels can caused leaked file-descriptors
Summary: Flushing channels can caused leaked file-descriptors
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: tcl
Version: 6.9
Hardware: x86_64
OS: Linux
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: BaseOS QE - Apps
Depends On:
TreeView+ depends on / blocked
Reported: 2016-06-11 19:42 UTC by Jeremy Sowden
Modified: 2016-06-14 07:48 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1344866 (view as bug list)
Last Closed: 2016-06-14 07:48:29 UTC
Target Upstream Version:

Attachments (Terms of Use)
Tcl patch. (5.43 KB, patch)
2016-06-11 19:42 UTC, Jeremy Sowden
no flags Details | Diff

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:


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.

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