Bug 1318806

Summary: Connections fail when process open file handles > 1024
Product: Red Hat Enterprise Linux 6 Reporter: Aaron Meriwether <ameriwether>
Component: libc-clientAssignee: Joe Orton <jorton>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.9Keywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-04 10:31:14 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:
Attachments:
Description Flags
The Debian patch adjusted for the RedHat libc-client-2007e-11 source
none
Patch to specfile none

Description Aaron Meriwether 2016-03-17 21:25:00 UTC
Created attachment 1137515 [details]
The Debian patch adjusted for the RedHat libc-client-2007e-11 source

When >1024 file handles are open in a process, the IMAP library refuses to create new TCP connections.

In our case it is the asterisk-voicemail package that is encountering issues with this library.

Basically the bus arises because the bit-vector data structure used for select() calls is limited to 1024 bits.  The fix is to move from select() calls to poll() calls.

This was originally discovered when using IMAP from within mod_php because Apache sometimes has a large number of file handles open, but I believe PHP's IMAP implementation has since switched to a different library.


Version-Release number of selected component (if applicable):
2007e-11 and presumably all previous


Discussed in depth on the Debian bug list here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478193


Original patch is here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?filename=uw-imap-poll.diff;att=1;msg=61;bug=478193


An adjusted patch which applies cleanly against the 2007e-11 RPM source is attached.

Comment 2 Joe Orton 2016-03-18 08:48:18 UTC
Thanks for the report.  We're not planning any updates to libc-client at the moment, so if this is an issue for you in production please contact Red Hat support.

Comment 3 Aaron Meriwether 2016-03-18 11:27:20 UTC
Created attachment 1137743 [details]
Patch to specfile


We've patched and rebuilt the current RPM from our end already - it would just be nice to see the patch included in future builds.

For anyone else who comes across this bug report and needs the fix before the next official build from RedHat, I've attached the necessary specfile diff.

Comment 5 Joe Orton 2016-07-28 10:55:35 UTC
Thanks for the patch, Aaron!  I've pushed this to Fedora.

http://pkgs.fedoraproject.org/cgit/rpms/uw-imap.git/diff/?id=6ed065237ac0e86f49eff758abcc34aa948eedc0

Again, we have no current plans to update libc-client in RHEL.  Please raise a ticket through the regular Red Hat support channels to ensure it receives the proper attention and prioritization to assure a timely resolution.

Comment 6 Red Hat Bugzilla Rules Engine 2017-10-04 10:31:14 UTC
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.