Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510320 - dev-libs/cyrus-sasl-2.1.26-r3 - saslauthd/auth_rimap.c keeps reading buffer when remote has closed the connection
Summary: dev-libs/cyrus-sasl-2.1.26-r3 - saslauthd/auth_rimap.c keeps reading buffer w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL: https://bugs.debian.org/cgi-bin/bugre...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-14 15:03 UTC by T. S.
Modified: 2014-05-15 22:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description T. S. 2014-05-14 15:03:11 UTC
hi

dev-libs/cyrus-sasl-2.1.26-r3 shows the exact behviour described here:
https://bugs.launchpad.net/ubuntu/+source/cyrus-sasl2/+bug/997217
and here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708552

The fix/patch suggested in the above links to saslauthd/auth_rimap.c (https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=0034-fix_dovecot_authentication.patch;att=1;bug=708552) is actually working pretty fine for me.
Looking at the source after patching phase it appears like the patch to is not part of the current ebuild.

For me the problem that occurred frequently (at least once a day) is gone for two weeks now since I patched and recompiled it.

Shouldn't the gentoo ebuild include this patch as well? 


Reproducible: Always

Steps to Reproduce:
Operate a mail relay with courier-imap and postfix having USE=sasl, add multiple vhosts/domains, set up a couple of mailboxes per domain, operate for a few days
Actual Results:  
Once or twice a day the saslauthd processes resp. threads run in circles consuming 100% CPU each, e-mail end-users cannot authenticate due to timeouts. 
Workaround: saslauthd restart

Trace of the hanging processes looks like in links from the description:
[...]
select(9, [8], NULL, NULL, {0, 0})      = 1 (in [8], left {0, 0})
read(8, "", 951)                        = 0
select(9, [8], NULL, NULL, {0, 0})      = 1 (in [8], left {0, 0})
read(8, "", 951)                        = 0
select(9, [8], NULL, NULL, {0, 0})      = 1 (in [8], left {0, 0})
read(8, "", 951)                        = 0
select(9, [8], NULL, NULL, {0, 0})      = 1 (in [8], left {0, 0})
[...]

Expected Results:  
This procesese/thread shouldn't go berzerk.
Comment 1 Eray Aslan gentoo-dev 2014-05-15 05:46:26 UTC
Thanks for the detailed report.  Should be fixed in the tree.

+*cyrus-sasl-2.1.26-r5 (15 May 2014)
+
+  15 May 2014; Eray Aslan <eras@gentoo.org> +cyrus-sasl-2.1.26-r5.ebuild,
+  +files/cyrus-sasl-2.1.26-fix_dovecot_authentication.patch:
+  Fix authentication loop - bug #510320
+