Edit report at http://bugs.php.net/bug.php?id=51424&edit=1
ID: 51424 Comment by: tallyce 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: Also confirmed third call hang on Win7/Apache2.2/PHP5.3.2. Can anyone suggest a workaround until the next release? Previous Comments: ------------------------------------------------------------------------ [2010-05-27 02:34:10] thbley at gmail dot com 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 ------------------------------------------------------------------------ [2010-03-29 14:40:38] laacz at laacz dot lv Thank you. Provided fixes this exact bug. ------------------------------------------------------------------------ [2010-03-29 13:55:26] paj...@php.net Can you try using the attached patch please? It should fix the dead lock. ------------------------------------------------------------------------ [2010-03-29 13:54:56] paj...@php.net 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:). ------------------------------------------------------------------------ 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