On 06/02/2011 09:20 AM, Kartik Subbarao wrote:
Attached is the gdb stack trace from the hang state. It looks like the the threads are stuck in pthread_cond_wait() from send_ldap_ber(). Are there other relevant variables/structures to inspect for this scenario?
Looking at the source a bit more, this is the line that the threads are stuck on (line 372 in result.c, in the send_ldap_ber() function):
ldap_pvt_thread_cond_wait( &conn->c_write2_cv, &conn->c_write2_mutex );It would appear that there may be some deadlock around the c_write2_mutex that seems to be freed when the idletimeout processing kicks in and clears out the offending connection(s).
-Kartik