Mutex deadlock problem?

From: Date: Tue, 26 Feb 2002 09:01:05 +0000
Subject: Mutex deadlock problem?
Groups: php.dev 
Request: Send a blank email to php-dev+get-80406@lists.php.net to get a copy of this message
Hi. There seems to be a mutex deadlock problem in TSRM / Zend. ts_free_thread() function locks the tsmm_mutex mutex and calls functions through function pointers in resource_types_table[i].dtor. One such function is alloc_globals_dtor(), which in turn calls shutdown_memory_manager(), which does a TSRMLS_FETCH(). This calls ts_resource_ex(), which again locks the same tsmm_mutex mutex. So, this function has to wait forever for the mutex to get unlocked. Is there something wrong I am doing? Can anyone help? Thanx in advance, Venkat

« previous php.dev (#80406) next »