[asterisk-bugs] [Asterisk 0011537]: [patch] fix for "possible deadlock" warning

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Dec 14 09:22:53 CST 2007


The following issue has been CLOSED 
====================================================================== 
http://bugs.digium.com/view.php?id=11537 
====================================================================== 
Reported By:                dimas
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11537
Category:                   Core-General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.15  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             12-13-2007 07:44 CST
Last Modified:              12-14-2007 09:22 CST
====================================================================== 
Summary:                    [patch] fix for "possible deadlock" warning
Description: 
I already reported this for 11080 but was advised to submit separately...

There is a minor bug in the __ast_pthread_mutex_lock when DETECT_DEADLOCKS
is used. The code pretend to display warning only every fifth second and it
does that but it can display A LOT of warnings because every second, lock
waiting loop does many iterations attempting to grab the lock. (With
usleep(200) I believe there will be 5000 iterations each second so 5000
warnings issued each fifth second).
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-14-07 09:22  Corydon76      Status                   new => closed       
12-14-07 09:22  Corydon76      Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list