Bug #62234 [NEW]: PHP crashes if a load of code is loaded.
| From: | manchokapitancho at gmail dot com | Date: | Tue, 05 Jun 2012 16:00:33 +0000 |
| Subject: | Bug #62234 [NEW]: PHP crashes if a load of code is loaded. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-171047@lists.php.net to get a copy of this message | ||
From: manchokapitancho at gmail dot com
Operating system: win 7
PHP version: 5.4.3
Package: Scripting Engine problem
Bug Type: Bug
Bug description:PHP crashes if a load of code is loaded.
Description:
------------
I am using Apache 2.2 + PHP 5.4.
After several crash situations (from apache log "Parent: child process
exited
with status 1 -- Restarting."), I've managed to isolate a problem. Since I
don't
know what it is exactly, here I list the symptoms:
1. It's not related to a specific code fragment. I am able to reproduce the
crash by adding different code in different files.
2. Too much code leads to a crash. If I have a working code and I add for
example 30 more functions to a class, I get a crash.
3. Adding more data does not affect the situation. By data I mean actions
like
changing $a = [1,2,3] to $a=[1,2,3, ....1000].
4. The entire script is executed till the end and then the crash happens. I
asume this happen when the cleanup routines are executed.
5. The crashes are not memory related. I saw cases when the crash happens
at
around 612K and others when the script run ok at around 619K.
6. I've tested with xdebug on and off. No significant difference is
present. If
I don't have xdebug active, I need a few more empty functions into the code
in
order to reproduce the crash.
Here I've put some interesting observations that I've had.
http://crop-factor.net/php54crash.png
phpinfo says:
System Windows NT 6.1 build 7600 (Windows 7 Enterprise Edition) i586
Build Date May 8 2012 00:47:34
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
Configure Command cscript /nologo configure.js "--enable-snapshot-build"
"--disable-isapi" "--enable-debug-pack" "--without-mssql"
"--without-pdo-mssql"
"--without-pi3web"
"--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared"
"--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-
11g=C:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-
dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static"
"--disable-static-
analyze" "--with-pgo"
Server API Apache 2.0 Handler
PHP API 20100412
PHP Extension 20100525
Zend Extension 220100525
Zend Extension Build API220100525,TS,VC9
PHP Extension Build API20100525,TS,VC9
Debug Build no
Thread Safety enabled
--
Edit bug report at https://bugs.php.net/bug.php?id=62234&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62234&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62234&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62234&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62234&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62234&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62234&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62234&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62234&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62234&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62234&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62234&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62234&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62234&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62234&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62234&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62234&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62234&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62234&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62234&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62234&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62234&r=mysqlcfg