Edit report at http://bugs.php.net/bug.php?id=51424&edit=1
ID: 51424
Comment by: thbley at gmail dot com
Reported by: laacz at laacz dot lv
Summary: crypt() function hangs after 3rd call
Status: Assigned
Type: Bug
Package: Strings related
Operating System: Ubuntu 9.04 x64
PHP Version: 5.3.2
Assigned To: pajoye
New Comment:
Same problem on windows (5.3.2 binary, php5apache2_2.dll):
Run 2 requests in parallel:
for ($i=0; $i<500000; $i++) {
crypt('a', '_');
}
ab -n 1 -c 1 http://localhost/test.php
=> ~1 second, ok
ab -n 2 -c 2 http://localhost/test.php
=> hangs
Previous Comments:
------------------------------------------------------------------------
[2010-03-29 14:40:38] laacz at laacz dot lv
Thank you. Provided fixes this exact bug.
------------------------------------------------------------------------
[2010-03-29 13:55:26] [email protected]
Can you try using the attached patch please? It should fix the dead
lock.
------------------------------------------------------------------------
[2010-03-29 13:54:56] [email protected]
The following patch has been added/updated:
Patch Name: Dead_lock_fix_attempt
Revision: 1269863696
URL:
http://bugs.php.net/patch-display.php?bug=51424&patch=Dead_lock_fix_attempt&revision=1269863696
------------------------------------------------------------------------
[2010-03-29 13:27:52] laacz at laacz dot lv
Updated backtrace (patch:).
------------------------------------------------------------------------
[2010-03-29 13:21:47] [email protected]
Stupid me, you did not call crypt php. Please do it again using:
gdb --args php crypt.php
or
gdb php
> run crypt.php
<break>
> bt
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=51424
--
Edit this bug report at http://bugs.php.net/bug.php?id=51424&edit=1