GNOME Bugzilla – Bug 305398
GAL lookup crashes exchange connector
Last modified: 2006-06-01 04:58:44 UTC
Steps to reproduce: 1. With autocompletion turned on, attempt to add a contact to an email in any "sender" field (i.e. To:, CC:, BCC:, etc.) or to a meeting notice such that a GAL lookup is attempted. 2. Stack trace: stack trace when it gets a SIGPIPE on the LDAP connection --------------------------------------------------------- Program received signal SIGPIPE, Broken pipe.
+ Trace 60144
Other information: The bug happens when the GC server times out the LDAP connection and then connector reconnects. (On his server, this happens after the LDAP connection is idle for 10 minutes, which you can tell by doing "netstat --inet -n | grep 3268" and waiting for the socket to change from ESTABLISHED to CLOSE_WAIT.) From looking at the two traces, the problem seems to be that one thread calls gal_reconnect() while another thread is using the LDAP connection. So we need to protect bl->priv->ldap with a mutex to keep that from happening.
Created attachment 46862 [details] [review] Patch for GAL mutex locks
*** Bug 305487 has been marked as a duplicate of this bug. ***
*** Bug 305957 has been marked as a duplicate of this bug. ***
Patch committed on May,25 in gnome-210 branch and HEAD. Closing this bug.
*** Bug 307986 has been marked as a duplicate of this bug. ***
*** Bug 319865 has been marked as a duplicate of this bug. ***
*** Bug 343520 has been marked as a duplicate of this bug. ***
according to bug 343520 this happens again in 2.6. reopening.
Removed bug 343520 and 319865, those are actually duplicates of bug #319865. Closing this bug.