From:             pcdinh at gmail dot com
Operating system: Windows XP SP3
PHP version:      5.3CVS-2008-10-22 (CVS)
PHP Bug Type:     Reproducible crash
Bug description:  var_dump() on an array returned by a function can cause 
Apache 2.2 crashed

Description:
------------
var_dump() calls on an array returned by a method or function can cause
Apache 2.2.9 crashed and restarted immediately

Reproduce code:
---------------
<?php
function getArray()
{
        return array(1, 2, 3); 
}

var_dump(getArray());
?>

Expected result:
----------------
var_dump() should print out string representation of the array. Apache
2.2.x work as usual: no crash, no restart.

Actual result:
--------------
Report for
httpd__PID__5048__Date__10_23_2008__Time_02_52_51AM__593__Second_Chance_Exception_C0000005.dmp
Type of Analysis Performed   Crash Analysis 
Machine Name   G33K 
Operating System   Windows XP Service Pack 3 
Number Of Processors   2 
Process ID   5048 
Process Image   C:\server\Apache2.2\bin\httpd.exe 
System Up-Time   06:05:13 
Process Up-Time   00:12:29 


Thread 209 - System ID 4780
Entry point   msvcrt!_endthreadex+3a 
Create time   10/23/2008 2:40:23 AM 
Time spent in user mode   0 Days 0:0:0.15 
Time spent in kernel mode   0 Days 0:0:0.0 






Function     Arg 1     Arg 2     Arg 3   Source 
0x00000004     0809e38c     012380f0     00000001    
php5ts!zend_hash_apply_with_arguments+8a     0809daf0     012380f0    
00000004    
php_xdebug_2_0_3_5_3_0!xdebug_init_oparray+f98c     075cfa78     075cfa64 
   00000001    
php_xdebug_2_0_3_5_3_0!xdebug_init_oparray+ff27     00000000     0809fad8 
   075cfa9c    
php_xdebug_2_0_3_5_3_0!get_module+578f     00000001     0809e410    
00000000    
php5ts!execute_internal+53     080d0070     00000000     03d63f90    
php_xdebug_2_0_3_5_3_0!get_module+36cc     080d0070     00000000    
00000000    
php5ts!execute+a84     03d84350     0809fa48     00000001    
php5ts!zend_hash_quick_find+6c     03d63f90     080d0070     0809e1f8    
php5ts!execute+5d20     00000000     00000000     080d0070    
php5ts!execute+327     0809db20     03d63f90     03d5dfd0    
php_xdebug_2_0_3_5_3_0!get_module+283c     0809db20     03d63f90    
7e4277b0    
php5ts!zend_execute_scripts+152     00000000     00000000     00000000   





WARNING - DebugDiag was not able to locate debug symbols for
C:\server\Apache2.2\bin\php5ts.dll, so the information below may be
incomplete.



In
httpd__PID__5048__Date__10_23_2008__Time_02_52_51AM__593__Second_Chance_Exception_C0000005.dmp
the module C:\server\Apache2.2\bin\php5ts.dll has caused an access
violation exception (0xC0000005) when trying to read from memory location
0x00000004 on thread 209

Module Information 
Image Name: C:\server\Apache2.2\bin\php5ts.dll   Symbol Type:  Export 
Base address: 0x00780000   Time Stamp:  Fri Oct 17 16:41:11 2008  
Checksum: 0x00000000   Comments:   
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  PHP Script Interpreter 
ISAPIFilter: False   File Version:  5.3.0alpha3-dev 
Managed DLL: False   Internal Name:  PHP Script Interpreter 
VB DLL: False   Legal Copyright:  Copyright © 1997-2008 The PHP Group 
Loaded Image Name:  php5ts.dll   Legal Trademarks:  PHP 
Mapped Image Name:  C:\server\Apache2.2\bin\php5ts.dll   Original
filename:  php5ts.dll 
Module name:  php5ts   Private Build:   
Single Threaded:  False   Product Name:  PHP 
Module Size:  6.17 MBytes   Product Version:  5.3.0alpha3-dev 
Symbol File Name:  php5ts.dll   Special Build:  & 


-- 
Edit bug report at http://bugs.php.net/?id=46369&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46369&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46369&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46369&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=46369&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=46369&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=46369&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=46369&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=46369&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=46369&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=46369&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=46369&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=46369&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=46369&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46369&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=46369&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=46369&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=46369&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46369&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=46369&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=46369&r=mysqlcfg

Reply via email to