php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37127 Faulting Apache.exe php5apache.dll
Submitted: 2006-04-18 19:12 UTC Modified: 2006-04-19 12:13 UTC
From: tomed at tledwards dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 5.1.2 OS: Windows Server 2003
Private report: No CVE-ID: None
 [2006-04-18 19:12 UTC] tomed at tledwards dot com
Description:
------------
Apache is crashing and the only trace is found in the Windows eventlog with the type=error, source=application error. The actual error is: Faulting application Apache.exe, version 0.0.0.0, faulting module php5apache.dll, version 0.0.0.0, fault address 0x0002ed38.

I've searched hi and low on this crash and have found tons of people with this problem, and there is no resolution. The bug seems to have been around since early 2004.



Reproduce code:
---------------
<?php
print_r(apache_get_modules());
?>

Expected result:
----------------
I expect there not to be a webserver crash

Actual result:
--------------
Apache crashes: Faulting application Apache.exe, version 0.0.0.0, faulting module php5apache.dll, version 0.0.0.0, fault address 0x0002ed38.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-18 19:21 UTC] tony2001@php.net
Duplicate of #33292.
 [2006-04-19 10:29 UTC] tomed at tledwards dot com
To tony2001 at php.net. You say this is a duplicate of 33292, yet when I visit that bug, it's not fixed. I need a resolution to this. What can I expect?
 [2006-04-19 10:37 UTC] tony2001@php.net
You can do what I've already said to you - generate a valid backtrace as described here: http://bugs.php.net/bugs-generating-backtrace-win32.php
And there is no need to create 100 bug reports reporting the same issue - it won't help in fixing it.
 [2006-04-19 10:43 UTC] tomed at tledwards dot com
Not a problem. Do you have instructions to compile PHP that you could sendor post as I have Microsoft Visual Studio .NET 2003, not 6.0?
 [2006-04-19 10:49 UTC] tony2001@php.net
.
 [2006-04-19 11:06 UTC] tomed at tledwards dot com
Could you send me instructions on how to compile PHP? That appears to be my only option as I have Microsoft Visual Studio .NET 2003, not 6.0.

This would be extremely helpful. Thx
 [2006-04-19 11:09 UTC] tony2001@php.net
I've replied by mail, but it looks like you don't get my mails at all.

You don't need to compile it yourself, just get a snapshot at http://php.emini.dk/snaps/win32/
The only thing you need is debug pack. which is currently available at http://php.emini.dk/snaps/win32/ either.
All further instructions are here http://bugs.php.net/bugs-generating-backtrace-win32.php
 [2006-04-19 11:48 UTC] tomed at tledwards dot com
This appears to be the backtrace you need.

>	php5apache.dll!zif_apache_get_modules(int ht=22222040, _zval_struct * return_value=0x006df315, _zval_struct * * return_value_ptr=0x0174fac0, _zval_struct * this_ptr=0x0153c038, int return_value_used=93769108, void * * * tsrm_ls=0x0153c038)  Line 529 + 0x8	C
 	php5ts.dll!ZEND_DO_FCALL_SPEC_CONST_HANDLER(_zend_execute_data * execute_data=0x059b8e68, void * * * tsrm_ls=0x00764430)  Line 1635 + 0x28	C
 	php5ts.dll!_efree(void * ptr=0x0596ccb8)  Line 275 + 0xc	C
 	php5ts.dll!zend_execute_scripts(int type=8, void * * * tsrm_ls=0x0153c038, _zval_struct * * retval=0x00000000, int file_count=3, ...)  Line 1110	C
 	php5ts.dll!php_execute_script(_zend_file_handle * primary_file=0x05960178, void * * * tsrm_ls=0x0000686f)  Line 1732 + 0x12	C
 	msvcrt.dll!77bc5a8e() 	
 	ntdll.dll!7c82fb23() 	
 	php5ts.dll!_emalloc(unsigned int size=6625712)  Line 182 + 0x1d	C
 	php_msql.dll!0108119b() 	
 	php5ts.dll!module_registry_request_startup(_zend_module_entry * module=0x0174ffa8, void * * * tsrm_ls=0x00000000)  Line 1835 + 0x11	C
 	php5apache.dll!send_php(request_rec * r=0x0174fddc, int display_source_mode=22265912, char * filename=0x00000000)  Line 597 + 0x5b	C
 	php5apache.dll!apache_php_module_main(request_rec * r=0x01452e08, int display_source_mode=0, void * * * tsrm_ls=0x0153c038)  Line 53 + 0x1b	C
 	php5apache.dll!send_php(request_rec * r=0x01452e08, int display_source_mode=0, char * filename=0x01454ac8)  Line 661 + 0xb	C
 	php5apache.dll!send_parsed_php(request_rec * r=0x01452e08)  Line 675 + 0xe	C
 	ApacheCore.dll!6ff64be7() 	
 	ApacheCore.dll!6ff746a4() 	
 	ApacheCore.dll!6ff74416() 	
 	ApacheCore.dll!6ff6be2b() 	
 	msvcrt.dll!77bcb530() 	
 	kernel32.dll!77e66063()
 [2006-04-19 12:13 UTC] tomed at tledwards dot com
When I produce the crash here's what happens:

1. VS.Net opens and I point it to php_apache.c.
2. Then I get a dialog with Break and Continue buttons.
3. It won't continue and is stuck on Line 529 of php_apache.c which is:
	if ((p = strchr(s, '.'))) {

and the error in the MSDE dialog says:

Unhandled exception at 0x10002ec4 (php5apache.dll) in Apache.exe: 0xC0000005: Access violation reading location 0x400c25ff


4. When I click Break, the Call Stack window has a yellow error pointing to the following line:
>	php5apache.dll!zif_apache_get_modules(int ht=21758312, _zval_struct * return_value=0x006df315, _zval_struct * * return_value_ptr=0x0164fac0, _zval_struct * this_ptr=0x014ceac8, int return_value_used=84987284, void * * * tsrm_ls=0x014ceac8)  Line 529 + 0x8	C

5. When I highlight the entire callstack window and copy below are the contents:


	php5apache.dll!zif_apache_get_modules(int ht=21758312, _zval_struct * return_value=0x006df315, _zval_struct * * return_value_ptr=0x0164fac0, _zval_struct * this_ptr=0x014ceac8, int return_value_used=84987284, void * * * tsrm_ls=0x014ceac8)  Line 529 + 0x8	C
>	php5ts.dll!ZEND_DO_FCALL_SPEC_CONST_HANDLER(_zend_execute_data * execute_data=0x014fc3d0, void * * * tsrm_ls=0x00764430)  Line 1635 + 0x28	C
 	php5ts.dll!_efree(void * ptr=0x0510ccb8)  Line 275 + 0xc	C
 	php5ts.dll!zend_execute_scripts(int type=8, void * * * tsrm_ls=0x014ceac8, _zval_struct * * retval=0x00000000, int file_count=3, ...)  Line 1110	C
 	php5ts.dll!php_execute_script(_zend_file_handle * primary_file=0x05100178, void * * * tsrm_ls=0x0000686f)  Line 1732 + 0x12	C
 	msvcrt.dll!77bc5a8e() 	
 	ntdll.dll!7c82fb23() 	
 	php5ts.dll!_emalloc(unsigned int size=6625792)  Line 182 + 0x1d	C
 	php_msql.dll!0108119b() 	
 	php5ts.dll!module_registry_request_startup(_zend_module_entry * module=0x0164ffa8, void * * * tsrm_ls=0x00000000)  Line 1835 + 0x11	C
 	php5apache.dll!send_php(request_rec * r=0x0164fddc, int display_source_mode=21818056, char * filename=0x00000000)  Line 597 + 0x5b	C
 	php5apache.dll!apache_php_module_main(request_rec * r=0x01453308, int display_source_mode=0, void * * * tsrm_ls=0x014ceac8)  Line 53 + 0x1b	C
 	php5apache.dll!send_php(request_rec * r=0x01453308, int display_source_mode=0, char * filename=0x01454fc8)  Line 661 + 0xb	C
 	php5apache.dll!send_parsed_php(request_rec * r=0x01453308)  Line 675 + 0xe	C
 	ApacheCore.dll!6ff64be7() 	
 	ApacheCore.dll!6ff746a4() 	
 	ApacheCore.dll!6ff74416() 	
 	ApacheCore.dll!6ff6be2b() 	
 	msvcrt.dll!77bcb530() 	
 	kernel32.dll!77e66063()
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 13:01:30 2024 UTC