[asterisk-commits] russell: branch 1.4 r91074 - /branches/1.4/main/utils.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 4 18:48:47 CST 2007


Author: russell
Date: Tue Dec  4 18:48:47 2007
New Revision: 91074

URL: http://svn.digium.com/view/asterisk?view=rev&rev=91074
Log:
When DEBUG_THREADS is enabled, we only have the details about who is holding
a lock that we are waiting on for a mutex, not rwlocks.  This should fix the
problem where people have reported "core show locks" crashing sometimes.

Modified:
    branches/1.4/main/utils.c

Modified: branches/1.4/main/utils.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/utils.c?view=diff&rev=91074&r1=91073&r2=91074
==============================================================================
--- branches/1.4/main/utils.c (original)
+++ branches/1.4/main/utils.c Tue Dec  4 18:48:47 2007
@@ -743,6 +743,10 @@
 			if (!lock_info->locks[i].pending)
 				continue;
 
+			/* We only have further details for mutexes right now */
+			if (lock_info->locks[i].type != AST_MUTEX)
+				continue;
+
 			lock = lock_info->locks[i].lock_addr;
 
 			ast_reentrancy_lock(lock);




More information about the asterisk-commits mailing list