Presence of Kerberos tickets stalls Adium at launch

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
apm_
Harmless
Posts: 4
Joined: Thu Jan 14, 2010 6:39 pm

Presence of Kerberos tickets stalls Adium at launch

Post by apm_ »

After upgrading to Lion, I noticed that Adium would seemingly stall for 20-30 seconds on launch; beach ball spins and buddy list window appears but is blank. I ignored this for a while figuring it was a Lion bug that would eventually be squished. After several months, and numerous betas, I started to muck around with Adium a little more and think I may have found the root cause: Kerberos tickets.

My organization uses Kerberos tickets for single sign-on. I have Lion configured to automatically grab me Kerberos tickets at login.

From pam.d:

Code: Select all

auth       optional       pam_krb5.so use_first_pass use_kcminit default_principal
When a valid Kerberos ticket is present, Adium writes these two entries to the Console:

Code: Select all

2/15/12 9:32:41.281 AM Adium: gss_init_sec_context is called on main thread, its a blocking api
2/15/12 9:32:41.283 AM Adium: krb5_sendto_context is called on main thread, its a blocking api
The first time Adium is started after a reboot -- meaning OS X has not stashed Adium assets in memory -- the program takes 20-40 seconds to launch. After this, quitting and relaunching speeds up; my assumption is that OS X is still holding Adium in memory and thus it starts quickly.

Any ideas?

Andrew

EDIT: Per the suggestion below, I've attached a process sample of Adium while the behavior is occurring.
Attachments
Sample of Adium.zip
(83.48 KiB) Downloaded 145 times
Last edited by apm_ on Wed Feb 15, 2012 4:23 pm, edited 1 time in total.
sphynx
Latté
Posts: 75
Joined: Sun May 06, 2007 4:58 pm

Re: Presence of Kerberos tickets stalls Adium at launch

Post by sphynx »

This appears to be the same as http://trac.adium.im/ticket/14091, however, it's a bit sparse. It could help tracking down the problem if you could create a sample of Adium while this is happening, instructions are here: http://trac.adium.im/wiki/Sampling.
apm_
Harmless
Posts: 4
Joined: Thu Jan 14, 2010 6:39 pm

Re: Presence of Kerberos tickets stalls Adium at launch

Post by apm_ »

Thanks, @sphynx. The two reports do seem to be related.

Per your suggestion, I've included a sample in the original post.

APM
Post Reply