Apache crash sometimes php5ts.dll

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache crash sometimes php5ts.dll

Postby jacob.dijkstra » 15. October 2010 14:45

Dear,

I am running XAMPP 1.7.2 (with SSL) on a Windows server 2008 standaard R2 editon. The server became active in March, without errors. Since August the 'event viewer' sometimes (max 3 times a day, each day on diverend times) gifs a error, see below. After the error Apache automatic restarts. I can normaly start en stop apache whenever I want, so the problem is there only where Apache is running.

I have tride many things like: viewtopic.php?p=154906 (and many more other sites)

But what I found, nothing worked the error still remains.

Please help? If you need more information let me know.

Thx!

Regards,
Jacob


Apache log:
[Thu Oct 14 05:41:13 2010] [notice] Parent: child process exited with status 255 -- Restarting.

Event viewer:
Faulting application name: httpd.exe, version: 2.2.12.0, time stamp: 0x4a66dd7b
Faulting module name: php5ts.dll, version: 5.3.0.0, time stamp: 0x4a4d06fc
Exception code: 0xc0000005
Fault offset: 0x0000c052
Faulting process id: 0x28d4
Faulting application start time: 0x01cb636c6b320d72
Faulting application path: C:\Program Files (x86)\xampp\apache\bin\httpd.exe
Faulting module path: C:\Program Files (x86)\xampp\php\php5ts.dll
Report Id: 76f4f892-cf67-11df-8a10-00155d653df8
jacob.dijkstra
 
Posts: 2
Joined: 15. October 2010 14:27

Re: Apache crash sometimes php5ts.dll

Postby JonB » 15. October 2010 17:28

I will attempt to corrctly answer this.

Its a PHP rpoblem NOT an Apache problem.

What is actually crashing is PHP which is running as a DLL under Apache's executable; httpd.exe -- which calls a dynamic liking library - php5ts.dll.

Apache crashes because a bug or condition in PHP has broken an Operting System rule - its usually memory corruption. SO, the Operating System (in this case Windows Server) dismisses httpd.exe

this is the real error "0xc0000005" - its Windows preventing PHP from accessing a protected Memory Address. BECAUSE PHP was loaded by Apache - Apache is flushed.

bottom line - you need to debug your script AND PHP. "good luck" on that. You could also run PHP as CGI, then Apache would not be flushed, only PHP, BUT you would also need a mechanism to re-instantiate PHP - I think, I'm not sure.

read down to the answer on Development
http://www.0xc0000005.com/

Its definitely NOT an Apache or XAMPP issue - its a call being made in PHP that causes an Access Denied memory condition,

Good Luck (not being a smart ass).
:shock:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Apache crash sometimes php5ts.dll

Postby jacob.dijkstra » 20. October 2010 08:52

I started with debuging. First I have tride to set the ThreadsPerChild to 250. After that php crashed more often, like 6 times. I did that back to 120 en php craches now 0-1 time a day. After this I have installed DebugDiag and get this error came up after a crash. (I am running XAMPP 1.7.2 (with SSL) on a Windows server 2008 standaard R2 editon)

Can someone explane what is happening en what now te best thing to do is to try to fix this? Please try to explane the debug step for step, I don't have many experience.

Thx!

Greets,
Jacob



Table Of Contents
httpd__PID__2772__Date__10_20_2010__Time_02_46_14AM__256__Second_Chance_Exception_C0000005.dmp

Faulting Thread

Faulting Module Information


Report for httpd__PID__2772__Date__10_20_2010__Time_02_46_14AM__256__Second_Chance_Exception_C0000005.dmp

Report for httpd__PID__2772__Date__10_20_2010__Time_02_46_14AM__256__Second_Chance_Exception_C0000005.dmp
Type of Analysis Performed Crash Analysis
Machine Name VPS-CBBSNNK8OHX
Operating System Unexpected
Number Of Processors 2
Process ID 2772
Process Image C:\Program Files (x86)\xampp\apache\bin\httpd.exe
System Up-Time 16:22:25
Process Up-Time 13:30:58

Thread 3 - System ID 2528
Entry point msvcrt!_endthreadex+6f
Create time 10/19/2010 1:15:20 PM
Time spent in user mode 0 Days 0:1:47.140
Time spent in kernel mode 0 Days 0:0:8.453

Function Arg 1 Arg 2 Arg 3 Source
php5ts!zend_mm_shutdown+ec2 10e4d820 1542d224 00cc3477
php5ts!efree+2d 020954d0 00c4d0f0 11e12890
php5ts!zend_hash_destroy+27 11e17bb8 11e12890 015d1735
php5ts!zend_object_std_dtor+2b 11e12890 13ae8658 11e02e6c
php_mysqli_libmysql!mysqli_objects_new+165 11e12890 13ae8658 11e02e6c
php_mysqli_libmysql!mysqli_objects_new+2d2 11e12890 13ae8658 13ae8658
php5ts!zend_objects_store_del_ref_by_handle_ex+1b6 0475ff70 00000000 56433230
php5ts!zend_get_zval_ptr_ptr+707 13ae8658 13ae8658 75758cd5
php5ts!get_zend_version+1d0 13ae8658 00000000 13ae8658
php5ts!php_request_shutdown+32e 00000000 00382e84 0966c990
php5apache2_2+31f8 0966c990 0966c990 0966c990
libhttpd!ap_run_handler+21 0966c990 0966c990 0966c990
libhttpd!ap_invoke_handler+ae 014831b0 096a2d00 0475ff00
libhttpd!ap_die+29e 0966c990 00000001 0152f85c
libhttpd!ap_get_request_note+1ccc 096a2d00 096a2d00 096a2d00
libhttpd!ap_run_process_connection+21 096a2d00 014b2548 0475ff48
libhttpd!ap_process_connection+33 096a2d00 09662978 00000000
libhttpd!ap_regkey_value_remove+c85 096a2cf8 02df75d2 00000000
msvcrt!_endthreadex+44 0475ff94 75c13677 033ef2a0
msvcrt!_endthreadex+ce 033ef2a0 0475ffd4 77aa9d72
kernel32!BaseThreadInitThunk+e 033ef2a0 735e47a1 00000000
ntdll!__RtlUserThreadStart+70 757412e5 033ef2a0 ffffffff
ntdll!_RtlUserThreadStart+1b 757412e5 033ef2a0 00000000


PHP5TS!ZEND_MM_SHUTDOWN+EC2WARNING - DebugDiag was not able to locate debug symbols for php5ts.dll, so the information below may be incomplete.

In httpd__PID__2772__Date__10_20_2010__Time_02_46_14AM__256__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!zend_mm_shutdown+ec2 in C:\Program Files (x86)\xampp\php\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x174c26ec on thread 3

Module Information
Image Name: C:\Program Files (x86)\xampp\php\php5ts.dll Symbol Type: Export
Base address: 0x00c40000 Time Stamp: Thu Jul 02 21:14:04 2009
Checksum: 0x00000000 Comments:
COM DLL: False Company Name: The PHP Group
ISAPIExtension: False File Description: PHP Script Interpreter
ISAPIFilter: False File Version: 5.3.0
Managed DLL: False Internal Name: PHP Script Interpreter
VB DLL: False Legal Copyright: Copyright © 1997-2009 The PHP Group
Loaded Image Name: php5ts.dll Legal Trademarks: PHP
Mapped Image Name: Original filename: php5ts.dll
Module name: php5ts Private Build:
Single Threaded: False Product Name: PHP
Module Size: 5.36 MBytes Product Version: 5.3.0
Symbol File Name: php5ts.dll Special Build: &
jacob.dijkstra
 
Posts: 2
Joined: 15. October 2010 14:27

Re: Apache crash sometimes php5ts.dll

Postby JonB » 20. October 2010 14:04

This is your PHP bug - it should be reported. I think Kai may know the right thing on this as the PHP build may have been by the XAMPP developers OR the PHP group, I'm not sure.

In httpd__PID__2772__Date__10_20_2010__Time_02_46_14AM__256__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!zend_mm_shutdown+ec2 in C:\Program Files (x86)\xampp\php\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x174c26ec on thread 3


There is no more debugging to be done, as you have identified the error condition, good job. It is AFAIK, not somrthing you could fix.

Its exactly as expected - part of the PHP code is attempting to access a memory address it does not have rights to == Code Bug.

Way above my head for sure. (and to fix would require re-compiling from source).

Because of the nature of projects like PHP, the outcome could be a workaround, but it is almost 100% sure NOT to be a code fix - as that would require recompilation. As bugs are fixed, and known to be stable, they are incorporated into the next release of the code. This means upgrading to a later release IF the particular bug has been reported and fixed. (you will need to refer to the bug-tracking system for PHP).

http://bugs.php.net/

If there are no reports of this bug, follow their instructions on reporting.

Also try searching on your EXACT final error message - someone else may have a work-around. Check PHP-oriented forums for help also

Good debugging job, Jacob.

Good Luck, and sorry I don't have better news.

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Apache crash sometimes php5ts.dll

Postby jhatala » 01. December 2010 21:25

Hello,

Has there been any progress to a successful resolution to "faulting module php5ts.dll " with apache version 2.2.12.0?
thank you for your time and talents.
Jeff
jhatala
 
Posts: 1
Joined: 01. December 2010 21:20

Re: Apache crash sometimes php5ts.dll

Postby JonB » 01. December 2010 23:49

Ummm - its a PHP bug

- ergo -

http://bugs.php.net/ is the place to check is to see if the bug was actually reported. Only users who actually 'have' a bug can report it, as you need to be able to reproduce it. In bug-tracking there's often a developer to reporter dialogue that needs to be sustained over time...

Thanks for inquiring, but out of my/our hands - I see we need an explanation about how Open Source projects move forward vis-a-vis bugs, 'patches' or not!, and releases.

I need to do this, LOL - sure!, just another 6 or 8 hours a day :mrgreen:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 70 guests