ID: 26665
User updated by: fschaper at intux dot org
Reported By: fschaper at intux dot org
Status: Open
Bug Type: Reproducible crash
-Operating System: Linux only / Apache 1.3.28
+Operating System: Linux / Win32
-PHP Version: 4.3.3
+PHP Version: 4.3.3 / CVS
New Comment:
This Bug can be repoduduced under Window's as well, only the file-size
has to be larger (will depend on system memory etc.). I have tried it
with an 8MB version (might as well take less than that) of the script
(the one I added the link to) and PHP crashes under Windows as well.
Previous Comments:
------------------------------------------------------------------------
[2003-12-19 09:59:05] fschaper at intux dot org
This time I ran the script via the shell without apache
(gdb) bt
#0 0x0811f8f6 in execute (op_array=0x819841c)
at
/usr/src/debug/php4-STABLE-200312191430/Zend/zend_execute.c:1758
#1 0x0810fa28 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /usr/src/debug/php4-STABLE-200312191430/Zend/zend.c:884
#2 0x080ed1d3 in php_execute_script (primary_file=0xbffffcf8)
at /usr/src/debug/php4-STABLE-200312191430/main/main.c:1729
#3 0x08125eb3 in main (argc=2, argv=0xbffffd74)
at
/usr/src/debug/php4-STABLE-200312191430/sapi/cgi/cgi_main.c:1578
(gdb) frame 0
#0 0x0811f8f6 in execute (op_array=0x819841c)
at
/usr/src/debug/php4-STABLE-200312191430/Zend/zend_execute.c:1758
1758 ALLOC_ZVAL(valptr);
------------------------------------------------------------------------
[2003-12-19 07:56:32] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-12-19 04:41:26] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
And please provide a _short_ (10-20 lines) script, that reproduces the
problem.
------------------------------------------------------------------------
[2003-12-19 04:36:10] fschaper at intux dot org
Description:
------------
While working with "many" array's (around 2MB of code) we encountered a
crash on linux-systems while everything works fine under windows. PHP
silently fails - only error log is the apache segfault.
Apache 1.3.28
PHP 4.3.3
Reproduce code:
---------------
http://www.intux.org/tmp/php_segf_test.tar.gz
100 Lines of code works
Around 103 lines and more and it starts to break down
Expected result:
----------------
The last PHP command should write an "done" on the page.
Actual result:
--------------
An empty document should be returned since apache simply crashes
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26665&edit=1