php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46369 var_dump() on an array returned by a function can cause Apache 2.2 crashed
Submitted: 2008-10-22 20:01 UTC Modified: 2009-02-11 21:22 UTC
From: pcdinh at gmail dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.3CVS-2008-10-22 (CVS) OS: Windows XP SP3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pcdinh at gmail dot com
New email:
PHP Version: OS:

 

 [2008-10-22 20:01 UTC] pcdinh at gmail dot com
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:  & 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-22 20:43 UTC] felipe@php.net
Please, disable Xdebug and try again.
 [2008-10-30 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-02-11 21:22 UTC] felipe@php.net
.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 19:01:37 2025 UTC