From: Operating system: Windows XP, Windows Server 2003 PHP version: 5.2.14 Package: Apache2 related Bug Type: Bug Bug description:child process exited with status 3221225477 (*or 128) -- Restarting.
Description: ------------ This script causes apache crash. In CLI this script works well, so I put it as apache related bug. Bug is reproducable with php versions: 5.2.14 5.2.13 Bug is NOT exists in php 5.2.6 Bug is reproducable with any php.ini config, including my own configuration, "php.ini-dist" and "php.ini-recommended" I'm using Apache/2.2.8 on Windows XP SP3 and Apache/2.2.11 on Windows Server 2003 Bug is reproducable on both. PHP is configured as php5_module with php5apache2_2.dll (dll is from original PHP zip package for win32). Summary: PHP 5.2.14 + Apache/2.2.8 + Windows XP = CRASH PHP 5.2.14 + Apache/2.2.11 + Windows Server 2003 = CRASH PHP 5.2.13 + Apache/2.2.8 + Windows XP = CRASH PHP 5.2.6 + Apache/2.2.8 + Windows XP = OK PHP 5.2.6 + Apache/2.2.11 + Windows Server 2003 = OK Test script: --------------- <? $preg="\<td\>((?<!\<\/td\>).)*"; $str="<td>bug appears only with a long text here bug appears only with a long text here bug appears only with a long text here bug appears only with a long text here bug appearsbug appears only with a long text here bug appears only with a long text here bug appears only with a long text here bug appears only with a long... exactly this size.</td>"; //at least 343 bytes (334 bytes without tags) preg_match_all("/$preg/", $str, $m); ?> Actual result: -------------- on Windows XP SP3: [notice] Parent: child process exited with status 3221225477 -- Restarting. [notice] Apache/2.2.8 (Win32) PHP/5.2.14 configured -- resuming normal operations on Windows Server 2003: [notice] Parent: child process exited with status 128 -- Restarting. [notice] Apache/2.2.11 (Win32) DAV/2 PHP/5.2.14 configured -- resuming normal operations ---------- here is backtrace for Windows XP SP3: Thread 64 - System ID 1284 Entry point msvcrt!_endthreadex+3a Create time 2010/08/15 4:39:20 Time spent in user mode 0 Days 0:0:0.0 Time spent in kernel mode 0 Days 0:0:0.0 Function Arg 1 Arg 2 Arg 3 Source php5ts!php_pcre_exec+d16 8e255000 00001902 00000100 0x00016100 00001902 00000100 00000600 0x80000000`00000000 00000100 00000600 00001900 PHP5TS!PHP_PCRE_EXEC+D16WARNING - DebugDiag was not able to locate debug symbols for php5ts.dll, so the information below may be incomplete. In httpd__PID__2492__Date__08_15_2010__Time_04_40_10AM__584__Second_Chance_Exception_C00000FD.dmp the assembly instruction at php5ts!php_pcre_exec+d16 in C:\Apache\php\php5ts.dll from The PHP Group has caused a stack overflow exception (0xC00000FD) when trying to write to memory location 0x02812f38 on thread 64 -- Edit bug report at http://bugs.php.net/bug.php?id=52608&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52608&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52608&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52608&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52608&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52608&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52608&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52608&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52608&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52608&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52608&r=support Expected behavior: http://bugs.php.net/fix.php?id=52608&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52608&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52608&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52608&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52608&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52608&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52608&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52608&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52608&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52608&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52608&r=mysqlcfg