From: pcdinh at gmail dot com Operating system: Windows XP PHP version: 5.2.12 PHP Bug Type: MySQLi related Bug description: mysqli caused Apache 2.2 Win32 crashed
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: & -- Edit bug report at http://bugs.php.net/?id=50705&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50705&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50705&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50705&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50705&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50705&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50705&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50705&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50705&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50705&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50705&r=support Expected behavior: http://bugs.php.net/fix.php?id=50705&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50705&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50705&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50705&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50705&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50705&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50705&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50705&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50705&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50705&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50705&r=mysqlcfg