From: busia at tiscali dot it
Operating system: Windows Vista
PHP version: 5.3.0
PHP Bug Type: Reproducible crash
Bug description: mysql_close() crash php
Description:
------------
This simple code crash php.
This is the Debug diagnostic tool output:
In
php__PID__5128__Date__07_01_2009__Time_02_22_25PM__909__Second_Chance_Exception_C0000005.dmp
the assembly instruction at php_mysql!zif_mysql_close+92 in C:\Program
Files\PHP\ext\php_mysql.dll from The PHP Group has caused an access
violation exception (0xC0000005) when trying to read from memory location
0x00000000 on thread 0
Report for
php__PID__5128__Date__07_01_2009__Time_02_22_25PM__909__Second_Chance_Exception_C0000005.dmp
Type of Analysis Performed Crash Analysis
Machine Name PC-UTENTE
Operating System Windows Vista Service Pack 1
Number Of Processors 2
Process ID 5128
Process Image C:\Program Files\PHP\php.exe
System Up-Time 00:13:11
Process Up-Time 00:00:02
Thread 0 - System ID 5132
Entry point php!mainCRTStartup
Create time 01/07/2009 14.22.23
Time spent in user mode 0 Days 0:0:0.31
Time spent in kernel mode 0 Days 0:0:0.62
Function Arg 1 Arg 2 Arg 3 Source
php_mysql!zif_mysql_close+92 00000000 02a0d350 00000000
php5ts!zend_do_fcall_common_helper_SPEC+946 00000000 02a40070
00052fd0
php5ts!ZEND_DO_FCALL_SPEC_CONST_HANDLER+130 00c0fbd4 00052fd0
00c0fe70
php5ts!execute+29e 02a40070 00052f00 00000000
php5ts!zend_execute_scripts+f6 00000008 00052fd0 00000000
php5ts!php_execute_script+22d 00c0fe70 00052fd0 00000000
php!main+bf1 00000002 00052f68 00051888
php!mainCRTStartup+e3 7ffdb000 00c0ffd4 77bee4b6
kernel32!BaseThreadInitThunk+e 7ffdb000 770bbeaf 00000000
ntdll!__RtlUserThreadStart+23 00402d78 7ffdb000 00000000
ntdll!_RtlUserThreadStart+1b 00402d78 7ffdb000 00000000
PHP_MYSQL!ZIF_MYSQL_CLOSE+92In
php__PID__5128__Date__07_01_2009__Time_02_22_25PM__909__Second_Chance_Exception_C0000005.dmp
the assembly instruction at php_mysql!zif_mysql_close+92 in C:\Program
Files\PHP\ext\php_mysql.dll from The PHP Group has caused an access
violation exception (0xC0000005) when trying to read from memory location
0x00000000 on thread 0
Module Information
Image Name: C:\Program Files\PHP\ext\php_mysql.dll Symbol Type: PDB
Base address: 0x01c30000 Time Stamp: Mon Jun 29 22:24:49 2009
Checksum: 0x00000000 Comments: Thanks to Zeev Suraski, Zak Greant,
Georg Richter
COM DLL: False Company Name: The PHP Group
ISAPIExtension: False File Description: MySQL
ISAPIFilter: False File Version: 5.3.0
Managed DLL: False Internal Name: MYSQL extension
VB DLL: False Legal Copyright: Copyright © 1997-2009 The PHP Group
Loaded Image Name: php_mysql.dll Legal Trademarks: PHP
Mapped Image Name: C:\Program Files\PHP\ext\php_mysql.dll Original
filename: php_mysql.dll
Module name: php_mysql Private Build:
Single Threaded: False Product Name: PHP
Module Size: 44,00 KBytes Product Version: 5.3.0
Symbol File Name:
C:\Users\utente\Desktop\php-debug-pack-5.3.0-Win32-VC6-x86\php_mysql.pdb
Special Build: &
Reproduce code:
---------------
<?php
sleep(2);
mysql_connect('127.0.0.1', 'root', 'root');
mysql_close();
?>
--
Edit bug report at http://bugs.php.net/?id=48754&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48754&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48754&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48754&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48754&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48754&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48754&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48754&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48754&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48754&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48754&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48754&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48754&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48754&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48754&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48754&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48754&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48754&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48754&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48754&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48754&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48754&r=mysqlcfg