FS#33913 - [krb5] 1.11 breaks (at least) firefox and chrome in combination with HTTP proxy

Attached to Project: Arch Linux
Opened by Gertjan Zwartjes (gertjanzwartjes) - Monday, 18 February 2013, 08:56 GMT
Last edited by Stéphane Gaudreault (stephane) - Friday, 22 February 2013, 12:29 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Stéphane Gaudreault (stephane)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

With the latest krb5 bump from 1.10.x to 1.11, both Firefox and Chrome browsers break in combination with an HTTP proxy. For each browser proxy request a number (4?) of file descriptors are leaked. This will continue until the browser process has too many files open which will render both Firefox and Chrome unusable. They both stop loading internet pages. Firefox will also stop rendering fonts completely, even the user interface may degrade, where the tabs and menu's also don't show any fonts anymore.

I started noticing strange behavior with Firefox early this year. Both myself and a colleague have this issue on both i686 (my system) and x86_64 (colleague system). We've gone through great lengths figuring out what was going on, and ruled out anything else. Downgrading krb5 to 1.10.3-1 solves the issue.

It has something to do with the Kerberos credentials cache (the krb5cc_... file in /run/user), because another colleague using XFCE does not have this problem, because the credentials cache is not created at all for his system. The systems with the issue are running Gnome 3.

Another workaround is rm'ing the credentials cache directory before starting either Chrome or Firefox.

I've flagged this bug report as being critical as this issue basically renders your browser almost unusable, because each time after some 30 minutes of browsing so many file descriptors have leaked that crashes the browser. Although downgrading to krb5-1.10.3-1 makes my browser usable again.


Steps to reproduce:

Install Firefox and krb5 1.11. Configure a HTTP proxy. Browse to a few websites. Check lsof on /run/user/<userid>/krb5cc_<uuid> for handles from Firefox, and you will see the number increase with each proxy request.
This task depends upon

Closed by  Stéphane Gaudreault (stephane)
Friday, 22 February 2013, 12:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  krb5-1.11.1-1 in [testing]
Comment by Stéphane Gaudreault (stephane) - Monday, 18 February 2013, 16:52 GMT
This looks like something you should discuss with upstream devs.
Comment by Gertjan Zwartjes (gertjanzwartjes) - Wednesday, 20 February 2013, 11:16 GMT
I've just sent an email to krb5-bugs@mit.edu reporting the same issue. I'll report back if I get a useful response.
Comment by Gertjan Zwartjes (gertjanzwartjes) - Friday, 22 February 2013, 10:19 GMT
This was in fact a bug in krb5. It will be fixed in the upcoming 1.11.1 release.

Here's more information on the issue: http://krbdev.mit.edu/rt/Ticket/Display.html?id=7573

That ticket also contains a link to a github commit in case you want to already release a patched version of the krb5 1.11 package.

Loading...