[Home]

Summary:ASTERISK-11027: [patch] fix for "possible deadlock" warning
Reporter:Dmitry Andrianov (dimas)Labels:
Date Opened:2007-12-13 07:44:28.000-0600Date Closed:2007-12-14 09:22:53.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) lockrep.patch
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).

****** ADDITIONAL INFORMATION ******

Patch applies to both trunk and 1.4
Comments:By: Igor Goncharovsky (igorg) 2007-12-13 23:03:41.000-0600

This resolved in r92875, but not automatically closed.