php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43134 Apache2 crashes upon processing any php page.
Submitted: 2007-10-30 06:46 UTC Modified: 2007-11-09 01:00 UTC
Votes:23
Avg. Score:4.6 ± 0.8
Reproduced:18 of 19 (94.7%)
Same Version:9 (50.0%)
Same OS:14 (77.8%)
From: akujin at akujin dot com Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 5.2.4 OS: Vista 32-bit
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: akujin at akujin dot com
New email:
PHP Version: OS:

 

 [2007-10-30 06:46 UTC] akujin at akujin dot com
Description:
------------
This is a fresh install on Vista. I've installed the standard server setup (Apache2+Php+Mysql) I've been using for years, and everything seems to be going fine. The first time I attempt to load a .php page, apache2 crashes. I reboot, reload the page, and apache crashes again. I've tried writing test pages, loading standard functions (phpinfo()), and every process seems to crash apache. 

I'm at a loss as to the cause.

Apache 2.2.6, PHP 5.2.4, Vista 32-bit.

Reproduce code:
---------------
Any PHP code.

Expected result:
----------------
A page returned from the server.

Actual result:
--------------
Apache2 crashes. I've been unable to find a cause in the logs.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-30 11:00 UTC] jani@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2007-10-31 06:36 UTC] akujin at akujin dot com
Ok, Here are a few backtraces, to show reproduction:

Report for httpd__PID__6908__Date__10_30_2007__Time_11_30_23PM__571__Second_Chance_Exception_C0000005.dmp
Type of Analysis Performed   Crash Analysis 
Machine Name   ISUKA-PC 
Operating System   Windows Vista  
Number Of Processors   1 
Process ID   6908 
Process Image   C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe 
System Up-Time   1 day(s) 00:26:58 
Process Up-Time   00:00:36 


Thread 250 - System ID 8012
Entry point   msvcrt!_endthreadex+6f 
Create time   10/30/2007 23:29:47 
Time spent in user mode   0 Days 0:0:0.15 
Time spent in kernel mode   0 Days 0:0:0.15 






Function     Arg 1     Arg 2     Arg 3   Source 
php5ts!zend_hash_destroy+d     00000000     014904c8     00d278cc    
php_threads!zm_deactivate_threads+38     00000001     0000001d     01577ea0    
php5ts!module_registry_cleanup+1c     014884e8     01577ea0     01577ea0    
php5ts!zend_hash_apply+40     011d43c0     00d278b0     01577ea0    
php5ts!zend_deactivate_modules+62     0573ff88     00000000     56433230    
php5ts!zend_deactivate_modules+48     0155c301     00000000     0591a728    
php5ts!php_end_ob_buffers+26     0573fb90     01577ea0     00000004    
php5ts!execute+1c5     0573ff88     00000000     56433230    
php5ts!php_request_shutdown+137     015bc5f0     00001008     00ddb59c    
php5ts!_efree+39     0591aa30     00ca2560     01577ea0    
php5ts!php_execute_script+24c     00ce20c0     01577ea0     00000004    
php5apache2_2!php_handler+643     00000000     00000000     00000000    




PHP5TS!ZEND_HASH_DESTROY+DIn httpd__PID__6908__Date__10_30_2007__Time_11_30_23PM__571__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!zend_hash_destroy+d in C:\Program Files\PHP\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000014 on thread 250

Module Information 
Image Name: C:\Program Files\PHP\php5ts.dll   Symbol Type:  PDB 
Base address: 0x00d20000   Time Stamp:  Thu Aug 30 04:06:12 2007  
Checksum: 0x00000000   Comments:   
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  PHP Script Interpreter 
ISAPIFilter: False   File Version:  5.2.4.4 
Managed DLL: False   Internal Name:  php5ts.dll 
VB DLL: False   Legal Copyright:  Copyright ? 1997-2007 The PHP Group 
Loaded Image Name:  php5ts.dll   Legal Trademarks:  PHP 
Mapped Image Name:  C:\Program Files\PHP\php5ts.dll   Original filename:  php5ts.dll 
Module name:  php5ts   Private Build:   
Single Threaded:  False   Product Name:  PHP Script Interpreter 
Module Size:  4.86 MBytes   Product Version:  5.2.4 
Symbol File Name:  C:\Users\isuka\Downloads\php-debug-pack-5.2.4-Win32\php5ts.pdb   Special Build:  & 





 Report for httpd__PID__6400__Date__10_30_2007__Time_11_29_33PM__267__Second_Chance_Exception_C0000005.dmp




Report for httpd__PID__6400__Date__10_30_2007__Time_11_29_33PM__267__Second_Chance_Exception_C0000005.dmp
Type of Analysis Performed   Crash Analysis 
Machine Name   ISUKA-PC 
Operating System   Windows Vista  
Number Of Processors   1 
Process ID   6400 
Process Image   C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe 
System Up-Time   1 day(s) 00:26:12 
Process Up-Time   00:00:06 


Thread 2 - System ID 5884
Entry point   msvcrt!_endthreadex+6f 
Create time   10/30/2007 23:29:28 
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 
php5ts!zend_hash_destroy+d     00000000     014304c8     00d278cc    
php_threads!zm_deactivate_threads+38     00000001     0000001d     015a7b78    
php5ts!module_registry_cleanup+1c     014284e8     015a7b78     015a7b78    
php5ts!zend_hash_apply+40     011d43c0     00d278b0     015a7b78    
php5ts!zend_deactivate_modules+62     0123ff88     00000000     56433230    
php5ts!zend_deactivate_modules+48     0158c201     00000000     05b5a728    
php5ts!php_end_ob_buffers+26     00fe630c     000009dc     0123fdc8    
php5ts!php_body_write+1d     0123ff88     00000000     56433230    
php5ts!php_request_shutdown+137     0000001a     015a7b78     00dc23ba    
php5ts!ts_resource_ex+15     00000000     00000000     015a7b78    
php5ts!zend_file_handle_dtor+a     0123fe80     00ca2560     015a7b78    
php5ts!php_execute_script+59     00ce60d0     015a7b78     00000004    
php5apache2_2!php_handler+643     00000000     00000000     00000000    




PHP5TS!ZEND_HASH_DESTROY+DIn httpd__PID__6400__Date__10_30_2007__Time_11_29_33PM__267__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!zend_hash_destroy+d in C:\Program Files\PHP\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000014 on thread 2

Module Information 
Image Name: C:\Program Files\PHP\php5ts.dll   Symbol Type:  PDB 
Base address: 0x00d20000   Time Stamp:  Thu Aug 30 04:06:12 2007  
Checksum: 0x00000000   Comments:   
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  PHP Script Interpreter 
ISAPIFilter: False   File Version:  5.2.4.4 
Managed DLL: False   Internal Name:  php5ts.dll 
VB DLL: False   Legal Copyright:  Copyright ? 1997-2007 The PHP Group 
Loaded Image Name:  php5ts.dll   Legal Trademarks:  PHP 
Mapped Image Name:  C:\Program Files\PHP\php5ts.dll   Original filename:  php5ts.dll 
Module name:  php5ts   Private Build:   
Single Threaded:  False   Product Name:  PHP Script Interpreter 
Module Size:  4.86 MBytes   Product Version:  5.2.4 
Symbol File Name:  C:\Users\isuka\Downloads\php-debug-pack-5.2.4-Win32\php5ts.pdb   Special Build:  & 





 Report for httpd__PID__7396__Date__10_30_2007__Time_11_31_40PM__972__Second_Chance_Exception_C0000005.dmp




Report for httpd__PID__7396__Date__10_30_2007__Time_11_31_40PM__972__Second_Chance_Exception_C0000005.dmp
Type of Analysis Performed   Crash Analysis 
Machine Name   ISUKA-PC 
Operating System   Windows Vista  
Number Of Processors   1 
Process ID   7396 
Process Image   C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe 
System Up-Time   1 day(s) 00:28:16 
Process Up-Time   00:00:08 


Thread 1 - System ID 2540
Entry point   msvcrt!_endthreadex+6f 
Create time   10/30/2007 23:31:34 
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 
php5ts!zend_hash_destroy+d     00000000     015b04c8     00dc78cc    
php_threads!zm_deactivate_threads+38     00000001     0000001d     01697ea0    
php5ts!module_registry_cleanup+1c     015a84e8     01697ea0     01697ea0    
php5ts!zend_hash_apply+40     012743c0     00dc78b0     01697ea0    
php5ts!zend_deactivate_modules+62     0018ff88     00000000     56433230    
php5ts!zend_deactivate_modules+48     0167c301     00000000     058ca728    
php5ts!php_end_ob_buffers+26     058cf5c0     0000000f     058cbdd8    
php5ts!zend_print_zval_ex+50     0018fb90     01697ea0     00000003    
php5ts!execute+1c5     0018ff88     00000000     56433230    
php5ts!php_request_shutdown+137     016e1618     00001008     00e7b59c    
php5ts!_efree+39     058caa30     00d42560     01697ea0    
php5ts!php_execute_script+24c     00d800b8     01697ea0     00000004    
php5apache2_2!php_handler+643     00000000     00000000     00000000    




PHP5TS!ZEND_HASH_DESTROY+DIn httpd__PID__7396__Date__10_30_2007__Time_11_31_40PM__972__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!zend_hash_destroy+d in C:\Program Files\PHP\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000014 on thread 1

Module Information 
Image Name: C:\Program Files\PHP\php5ts.dll   Symbol Type:  PDB 
Base address: 0x00dc0000   Time Stamp:  Thu Aug 30 04:06:12 2007  
Checksum: 0x00000000   Comments:   
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  PHP Script Interpreter 
ISAPIFilter: False   File Version:  5.2.4.4 
Managed DLL: False   Internal Name:  php5ts.dll 
VB DLL: False   Legal Copyright:  Copyright ? 1997-2007 The PHP Group 
Loaded Image Name:  php5ts.dll   Legal Trademarks:  PHP 
Mapped Image Name:  C:\Program Files\PHP\php5ts.dll   Original filename:  php5ts.dll 
Module name:  php5ts   Private Build:   
Single Threaded:  False   Product Name:  PHP Script Interpreter 
Module Size:  4.86 MBytes   Product Version:  5.2.4 
Symbol File Name:  C:\Users\isuka\Downloads\php-debug-pack-5.2.4-Win32\php5ts.pdb   Special Build:  & 





 Report for httpd__PID__304__Date__10_30_2007__Time_11_31_23PM__274__Second_Chance_Exception_C0000005.dmp




Report for httpd__PID__304__Date__10_30_2007__Time_11_31_23PM__274__Second_Chance_Exception_C0000005.dmp
Type of Analysis Performed   Crash Analysis 
Machine Name   ISUKA-PC 
Operating System   Windows Vista  
Number Of Processors   1 
Process ID   304 
Process Image   C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe 
System Up-Time   1 day(s) 00:27:58 
Process Up-Time   00:00:51 


Thread 1 - System ID 8056
Entry point   msvcrt!_endthreadex+6f 
Create time   10/30/2007 23:30:32 
Time spent in user mode   0 Days 0:0:0.0 
Time spent in kernel mode   0 Days 0:0:0.31 






Function     Arg 1     Arg 2     Arg 3   Source 
php5ts!zend_hash_destroy+d     00000000     014904c8     00e278cc    
php_threads!zm_deactivate_threads+38     00000001     0000001d     01577ea0    
php5ts!module_registry_cleanup+1c     014884e8     01577ea0     01577ea0    
php5ts!zend_hash_apply+40     012d43c0     00e278b0     01577ea0    
php5ts!zend_deactivate_modules+62     003cff88     00000000     56433230    
php5ts!zend_deactivate_modules+48     0155c301     00000000     059ba728    
php5ts!php_end_ob_buffers+26     059bf5c0     0000000f     059bbdd8    
php5ts!zend_print_zval_ex+50     003cfb90     01577ea0     00000003    
php5ts!execute+1c5     003cff88     00000000     56433230    
php5ts!php_request_shutdown+137     015c1618     00001008     00edb59c    
php5ts!_efree+39     059baa30     00922560     01577ea0    
php5ts!php_execute_script+24c     009600b8     01577ea0     00000004    
php5apache2_2!php_handler+643     00000000     00000000     00000000    




PHP5TS!ZEND_HASH_DESTROY+DIn httpd__PID__304__Date__10_30_2007__Time_11_31_23PM__274__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!zend_hash_destroy+d in C:\Program Files\PHP\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000014 on thread 1

Module Information 
Image Name: C:\Program Files\PHP\php5ts.dll   Symbol Type:  PDB 
Base address: 0x00e20000   Time Stamp:  Thu Aug 30 04:06:12 2007  
Checksum: 0x00000000   Comments:   
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  PHP Script Interpreter 
ISAPIFilter: False   File Version:  5.2.4.4 
Managed DLL: False   Internal Name:  php5ts.dll 
VB DLL: False   Legal Copyright:  Copyright ? 1997-2007 The PHP Group 
Loaded Image Name:  php5ts.dll   Legal Trademarks:  PHP 
Mapped Image Name:  C:\Program Files\PHP\php5ts.dll   Original filename:  php5ts.dll 
Module name:  php5ts   Private Build:   
Single Threaded:  False   Product Name:  PHP Script Interpreter 
Module Size:  4.86 MBytes   Product Version:  5.2.4 
Symbol File Name:  C:\Users\isuka\Downloads\php-debug-pack-5.2.4-Win32\php5ts.pdb   Special Build:  & 





 Report for httpd__PID__6168__Date__10_30_2007__Time_11_32_12PM__160__Second_Chance_Exception_C0000005.dmp




Report for httpd__PID__6168__Date__10_30_2007__Time_11_32_12PM__160__Second_Chance_Exception_C0000005.dmp
Type of Analysis Performed   Crash Analysis 
Machine Name   ISUKA-PC 
Operating System   Windows Vista  
Number Of Processors   1 
Process ID   6168 
Process Image   C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe 
System Up-Time   1 day(s) 00:28:47 
Process Up-Time   00:00:21 


Thread 2 - System ID 3060
Entry point   msvcrt!_endthreadex+6f 
Create time   10/30/2007 23:31:52 
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 
php5ts!zend_hash_destroy+d     00000000     015804c8     00d878cc    
php_threads!zm_deactivate_threads+38     00000001     0000001d     016f7b78    
php5ts!module_registry_cleanup+1c     015784e8     016f7b78     016f7b78    
php5ts!zend_hash_apply+40     012343c0     00d878b0     016f7b78    
php5ts!zend_deactivate_modules+62     0135ff88     00000000     56433230    
php5ts!zend_deactivate_modules+48     016dc201     00000000     05a8a728    
php5ts!php_end_ob_buffers+26     0104630c     000009dc     0135fdc8    
php5ts!php_body_write+1d     0135ff88     00000000     56433230    
php5ts!php_request_shutdown+137     0000001a     016f7b78     00e223ba    
php5ts!ts_resource_ex+15     00000000     00000000     016f7b78    
php5ts!zend_file_handle_dtor+a     0135fe80     00922560     016f7b78    
php5ts!php_execute_script+59     009660d0     016f7b78     00000004    
php5apache2_2!php_handler+643     00000000     00000000     00000000    




PHP5TS!ZEND_HASH_DESTROY+DIn httpd__PID__6168__Date__10_30_2007__Time_11_32_12PM__160__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!zend_hash_destroy+d in C:\Program Files\PHP\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000014 on thread 2

Module Information 
Image Name: C:\Program Files\PHP\php5ts.dll   Symbol Type:  PDB 
Base address: 0x00d80000   Time Stamp:  Thu Aug 30 04:06:12 2007  
Checksum: 0x00000000   Comments:   
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  PHP Script Interpreter 
ISAPIFilter: False   File Version:  5.2.4.4 
Managed DLL: False   Internal Name:  php5ts.dll 
VB DLL: False   Legal Copyright:  Copyright ? 1997-2007 The PHP Group 
Loaded Image Name:  php5ts.dll   Legal Trademarks:  PHP 
Mapped Image Name:  C:\Program Files\PHP\php5ts.dll   Original filename:  php5ts.dll 
Module name:  php5ts   Private Build:   
Single Threaded:  False   Product Name:  PHP Script Interpreter 
Module Size:  4.86 MBytes   Product Version:  5.2.4 
Symbol File Name:  C:\Users\isuka\Downloads\php-debug-pack-5.2.4-Win32\php5ts.pdb   Special Build:  &
 [2007-10-31 10:18 UTC] jani@php.net
What extensions are you loading? And was this a fresh install?
 [2007-11-01 01:26 UTC] akujin at akujin dot com
This is a fresh install, and I included mysql, mysqli, threads and upload process, along with pear install and php manual extras. That's all, i tried to keep it minimal.
 [2007-11-01 10:49 UTC] jani@php.net
What is "threads" extension? Try without loading any extensions first..
 [2007-11-09 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".
 [2007-11-14 17:00 UTC] tcunderline at gmx dot ch
I've had the same Problem her, but with different OS (XP) and Versions (see below).

After some try and error, i can confirm this bug. Here are my results:

Tested with Apache 2.2.6

PHP   / MySQL  / LIBMYSQL / Result
5.2.4 / 5.0.45 / 5.0.45   / works
5.2.4 / 5.0.45 / 5.1.22   / crash
5.2.4 / 5.0.45 / 6.0.2b   / php_mysql.dll Invalid access to memory
5.2.4 / 5.1.22 / 5.0.45   / ??
5.2.4 / 5.1.22 / 5.1.22   / ??
5.2.4 / 5.1.22 / 6.0.2b   / ??
5.2.4 / 6.0.2b / 5.0.45   / ??
5.2.4 / 6.0.2b / 5.1.22   / ??
5.2.4 / 6.0.2b / 6.0.2b   / ??

5.2.5 / 5.0.45 / 5.0.45   / works
5.2.5 / 5.0.45 / 5.1.22   / crash
5.2.5 / 5.0.45 / 6.0.2b   / php_mysql.dll Invalid access to memory
5.2.5 / 5.1.22 / 5.0.45   / works
5.2.5 / 5.1.22 / 5.1.22   / crash
5.2.5 / 5.1.22 / 6.0.2b   / php_mysql.dll Invalid access to memory
5.2.5 / 6.0.2b / 5.0.45   / works
5.2.5 / 6.0.2b / 5.1.22   / crash
5.2.5 / 6.0.2b / 6.0.2b   / php_mysql.dll Invalid access to memory

Like you can see, that seems to be an incompatibility between php_mysql.dll and mysqllib.dll > 5.0.45.

I would say that 50% of the bug is caused by PHP and 50% by MySQL, since the newest versions don't work at all.
 [2007-11-21 19:33 UTC] rodrigo dot mazzilli at gmail dot com
I have just installed PHP 5.2.5 on top of Apache 2.2.
Apache simply crashes whenever I call phpinfo()!
Any resolution to this in sight???
BTW, I am running the application on Windows XP.
 [2008-01-03 15:51 UTC] Acar132 at hotmail dot com
Hello,

I've got the same problem.

Installed:  PHP 5.2.5  , Apache 2.2.6  on WinVista.
Apache crashes when php function/page called.

Installed: PHP 5.2.5  , Apache 2.2.6 on WinXP
Apache crasches when php function page called.


Still no solutions ???
 [2008-01-19 09:41 UTC] sebastian dot a dot schaefer at gmail dot com
I had the same error on my vista machine but could resolve it by deactivating the threads module in php.ini:

[PHP_THREADS]
;extension=php_threads.dll

PHP version is 5.2.5
Apache is 2.2.8

fresh download/install today...
 [2008-02-24 22:14 UTC] andrejs at gmail dot com
Disabled threads, overall things seem to run ok, however phpinfo() fails with a WSOD. Apache error log is not helpful.
 [2008-02-27 14:22 UTC] dev at glossword dot info
I've got the same problem, Windows XP.

PHP   / MySQL  / LIBMYSQL / Result
5.2.5 / 5.1.22 / 5.0.45   / works
5.2.5 / 5.1.22 / 5.1.22   / crash
5.3.0-dev / 5.1.23 / 5.0.45   / works
5.3.0-dev / 5.1.23 / 5.1.23   / crash

> Like you can see, that seems to be an incompatibility 
> between php_mysql.dll and mysqllib.dll > 5.0.45.
 [2008-10-30 05:30 UTC] electraincome at yahoo dot com
Removing the threading support in PHP's extensions removed the problem. Although this does not prove where the conflict is exactly, it shows that there seems to be an issue between different extensions with the current build.

? Apache 2.2
? PHP 5.2.6 (Module Installation)
 [2008-11-26 15:13 UTC] cognito at freeuk dot com
I had exactly the same problem with VISTA 32bit (SP1) and Apache 2.2.10 with PHP 5.2.6.

Turning off thread support cured both httpd and CLI crashes.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 22 12:01:29 2024 UTC