[Home]

Summary:ASTERISK-11879: Deadlock on reload asterisk
Reporter:Igor Goncharovsky (igorg)Labels:
Date Opened:2008-04-18 10:23:03Date Closed:2008-04-18 11:07:35
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_config_ldap
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) res_ldap_lock.txt
Description:Asterisk locks in some situation with following error messages (core show locks attached):

[Apr 18 22:25:06] ERROR[17805]: /usr/src/voip/asterisk-trunk/projects/asterisk/trunk.patched-sip_noti:374 __ast_pthread_mutex_lock: res_config_ldap.c line 1358 (reload): Deadlock? waited 140 sec for mutex '&ldap_lock'?
[Apr 18 22:25:06] ERROR[17805]: /usr/src/voip/asterisk-trunk/projects/asterisk/trunk.patched-sip_noti:378 __ast_pthread_mutex_lock: res_config_ldap.c line 1358 (reload): '&ldap_lock' was locked here.


****** STEPS TO REPRODUCE ******

Start asterisk, then use 'reload' command. Exit from asterisk CLI with 'exit' then again reconnect asterisk and make 'reload'. Nothing happens
Comments:By: Igor Goncharovsky (igorg) 2008-04-18 10:25:39

Oops, marked res_ldap_lock.txt as code submission... Sorry.

By: Digium Subversion (svnbot) 2008-04-18 11:06:22

Repository: asterisk
Revision: 114254

U   trunk/res/res_config_ldap.c

------------------------------------------------------------------------
r114254 | file | 2008-04-18 11:06:22 -0500 (Fri, 18 Apr 2008) | 4 lines

If the parsing of the config file fails make sure we unlock ldap_lock.
(closes issue ASTERISK-11879)
Reported by: IgorG

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=114254

By: Digium Subversion (svnbot) 2008-04-18 11:07:35

Repository: asterisk
Revision: 114255

_U  branches/1.6.0/
U   branches/1.6.0/res/res_config_ldap.c

------------------------------------------------------------------------
r114255 | file | 2008-04-18 11:07:33 -0500 (Fri, 18 Apr 2008) | 12 lines

Merged revisions 114254 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r114254 | file | 2008-04-18 13:11:27 -0300 (Fri, 18 Apr 2008) | 4 lines

If the parsing of the config file fails make sure we unlock ldap_lock.
(closes issue ASTERISK-11879)
Reported by: IgorG

........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=114255