Re: [PHP4BETA] deadlock
| From: | Andi Gutmans | Date: | Sat, 25 Sep 1999 12:39:43 +0000 |
| Subject: | Re: [PHP4BETA] deadlock | ||
| References: | 1 2 3 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-4902@lists.php.net to get a copy of this message | ||
At 12:47 PM 9/25/99 +0200, Sascha Schumann wrote:
On Sat, Sep 25, 1999 at 12:37:12PM +0200, Andi Gutmans wrote:
Hi,
I think the .ctor in allocate_new_resource is the problem which is causing
it. It should probably not be mutexed. I'm not sure about the
tsrm_new_thread_(begin/end)_handlers handlers though.
Try and unlock the mutex call in TSRM.c before line 191 and re-lock it
after that line.
Since the deadlock was happening when
tsrm_new_thread_begin_handler() was called, I've also added
unlock/lock pairs around begin_handler and end_handler. Now,
the deadlock does not happen anymore.
OK. I'm waiting for Zeev to take a look at the code as he wrote TSRM. I think we can probably narrow the whole ts_resource() down to one pair of lock/unlock which will be the right way to fix it, but adding those unlock/lock's will at least allow you to continue development.
Yeah, it seems to be a network problem and not a problem with the host itself. Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/Btw, CVS on cvs.zend.com times out currently.