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

Reply via email to