php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50705 mysqli caused Apache 2.2 Win32 crashed
Submitted: 2010-01-09 05:44 UTC Modified: 2013-02-18 00:34 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: pcdinh at gmail dot com Assigned: mysql (profile)
Status: No Feedback Package: MySQLi related
PHP Version: 5.2.12 OS: win32 only - Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-01-09 05:44 UTC] pcdinh at gmail dot com
Description:
------------
mysqli caused Apache 2.2 crashed

Reproduce code:
---------------
http://gist.github.com/272742

Expected result:
----------------
Apache 2.2.14 will not crash

Actual result:
--------------
Apache 2.2.14 crashes

----------------------
Windows backtrace

In httpd__PID__200__Date__01_09_2010__Time_12_32_03PM__562__Second_Chance_Exception_C0000005.dmp the assembly instruction at php_mysqli!php_mysqli_fetch_into_hash+2cb in C:\server\php52\ext\php_mysqli.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000000 on thread 57

In httpd__PID__1296__Date__01_09_2010__Time_12_34_09PM__484__Second_Chance_Exception_C0000005.dmp the assembly instruction at php_mysqli!php_mysqli_fetch_into_hash+2cb in C:\server\php52\ext\php_mysqli.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000000 on thread 43


Report for httpd__PID__1296__Date__01_09_2010__Time_12_34_09PM__484__Second_Chance_Exception_C0000005.dmp
Type of Analysis Performed   Crash Analysis 
Machine Name   PCDINH 
Operating System   Windows XP Service Pack 2 
Number Of Processors   2 
Process ID   1296 
Process Image   C:\server\Apache2.2\bin\httpd.exe 
System Up-Time   02:57:32 
Process Up-Time   00:02:05 


Thread 43 - System ID 272
Entry point   msvcrt!endthreadex+3a 
Create time   1/9/2010 12:32:05 PM 
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 
php_mysqli!php_mysqli_fetch_into_hash+2cb     02b1c930     02b1c960     00000000    
php_mysqli!zif_mysqli_fetch_assoc+27     00000001     02b1c960     00000000    
php5ts!zend_do_fcall_common_helper_SPEC+7ab     0254fbb0     00fc3f00     02b1bb48    
php5ts!ZEND_DO_FCALL_SPEC_CONST_HANDLER+e5     00000000     00fc3f70     00fc3f70    
php5ts!execute+1c5     02b1ba90     00fc3f70     00000000    
php5ts!zend_execute_scripts+107     00000008     00fc3f70     00000000    
php5ts!php_execute_script+21d     0254fea0     00fc3f70     00000004    
php5apache2_2!php_handler+5cd     00fbbfb0     00679ad0     00fbbfb0    
libhttpd!ap_run_handler+21     00fbbfb0     00fbbfb0     00fbbfb0    
libhttpd!ap_invoke_handler+ae     00000000     00fb6f58     0254ff38    
libhttpd!ap_die+29e     00fbbfb0     00000000     00687860    
libhttpd!ap_get_request_note+1ccc     00fb6f58     00fb6f58     00fb6f58    
libhttpd!ap_run_process_connection+21     00fb6f58     005c2e98     0254ff80    
libhttpd!ap_process_connection+33     00fb6f58     00faff28     00d90050    
libhttpd!ap_regkey_value_remove+c7c     00fb6f50     00d90050     7c91849f    
msvcrt!endthreadex+a9     00faee70     00d90050     7c91849f    
kernel32!GetModuleFileNameA+1b4     77c3a341     00faee70     00000000    




PHP_MYSQLI!PHP_MYSQLI_FETCH_INTO_HASH+2CBIn httpd__PID__1296__Date__01_09_2010__Time_12_34_09PM__484__Second_Chance_Exception_C0000005.dmp the assembly instruction at php_mysqli!php_mysqli_fetch_into_hash+2cb in C:\server\php52\ext\php_mysqli.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000000 on thread 43

Module Information 
Image Name: C:\server\php52\ext\php_mysqli.dll   Symbol Type:  PDB 
Base address: 0x01750000   Time Stamp:  Thu Dec 17 00:06:44 2009  
Checksum: 0x00000000   Comments:  Thanks to Zak Greant, Georg Richter, Andrey Hristov, Ulf Wendel 
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  MySQLi 
ISAPIFilter: False   File Version:  5.2.12.12 
Managed DLL: False   Internal Name:  php_mysqli.dll 
VB DLL: False   Legal Copyright:  Copyright ? 1997-2007 The PHP Group 
Loaded Image Name:  php_mysqli.dll   Legal Trademarks:  PHP 
Mapped Image Name:  C:\server\php52\ext\php_mysqli.dll   Original filename:  php_mysqli.dll 
Module name:  php_mysqli   Private Build:   
Single Threaded:  False   Product Name:  PHP php_mysqli.dll 
Module Size:  84.00 KBytes   Product Version:  5.2.12 
Symbol File Name:  C:\server\php52\php-debug-pack-5.2.12-Win32-VC6-x86\php_mysqli.pdb   Special Build:  & 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-09 05:54 UTC] pcdinh at gmail dot com
Formatted crash report

http://rapidshare.com/files/332517691/CrashHang_Report__PID_1296__PID_200__010920101234160.mht.html
 [2010-01-09 11:19 UTC] pajoye@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2010-01-09 12:41 UTC] pcdinh at gmail dot com
Hi Pierre,

I already posted the sample code. You can see it at the section

Reproduce code:
---------------
http://gist.github.com/272742

The script contains 2 parts: MySQL sample data and PHP script
 [2010-10-01 10:59 UTC] kalle@php.net
Have you tried with the latest 5.3? or is this an only 5.2 issue?
 [2010-10-01 11:14 UTC] pajoye@php.net
-Status: Assigned +Status: Feedback
 [2010-10-01 11:14 UTC] pajoye@php.net
ah right, sorry. Please try using 5.3.3.
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 20:01:30 2024 UTC