php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38744 PHP5TS.DLL causes w3svc crash and application pool termination
Submitted: 2006-09-07 20:42 UTC Modified: 2006-09-15 01:00 UTC
Votes:24
Avg. Score:4.5 ± 0.8
Reproduced:22 of 22 (100.0%)
Same Version:16 (72.7%)
Same OS:20 (90.9%)
From: jneill at gamedaytv dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.1.6 OS: Windows 2003 SP 1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-09-07 20:42 UTC] jneill at gamedaytv dot com
Description:
------------
Description:
------------
We have been successfully using PHP 5.1.2 for several months in our server environment.

Only upgrading PHP to 5.1.6, with no other software upgrades, has resulted in frequent w3svc crashes and subsequent application pool terminations.

The system log includes such errors as:

---
A process serving application pool 'Site1' terminated unexpectedly. The process id was '5796'. The process exit code was '0xc0000005'.

A process serving application pool 'Site2' terminated unexpectedly. The process id was '5212'. The process exit code was '0xffffffff'.

A process serving application pool 'DefaultAppPool' terminated unexpectedly. The process id was '5824'. The process exit code was '0xc0000005'.
---

We have run the IIS Diagnostics Debug Diagnostics Tool on these crashes, which has resulted in the following report for each crash:

---
Type of Analysis Performed   Crash Analysis 
Machine Name   S76217 
Operating System   Windows Server 2003 Service Pack 1 
Number Of Processors   2 
Process ID   4736 
Process Image   c:\WINNT\system32\inetsrv\w3wp.exe 
System Up-Time   0 day(s) 04:18:05 
Process Up-Time   0 day(s) 00:31:08 

Thread 16 - System ID 2612
Entry point   msvcrt!_endthread+3b 
Create time   5/16/2006 5:31:43 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 
<Unloaded_php5ts.dll>+265c80     02a28890     00000000     00000000    
msvcrt!_endthread+ab     029e7580     00000000     00000000    
kernel32!BaseThreadStart+34     77bcb35a     029e7580     00000000    

In
w3wp__PID__4736__Date__05_16_2006__Time_05_31_45PM__95__Second_Chance_Ex
ception_C0000005.dmp an access violation exception (0xC0000005) occured
on thread 16 when another module attempted to call the following
unloaded module: php5ts.dll.

---


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-07 20:50 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2006-09-14 14:27 UTC] helder at hightechvision dot com
I'm getting precisely the same debug output from IIS Diagnostics Debug Diagnostics Tool running on a Windows Server 2003 SP1 with the build php5.2-win32-200609131430.zip

If you want I can provide you crash dumps.
 [2006-09-15 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".
 [2006-09-18 17:09 UTC] opa56 at myownnet dot ch
Same error here:

A process serving application pool 'mysite1' terminated unexpectedly. The process id was '2828'. The process exit code was '0xc0000005'.

A process serving application pool 'mysite2' terminated unexpectedly. The process id was '3132'. The process exit code was '0xc0000005'.

etc.

The error occurs
- each time, the w3svc is recycled because of idle-timeout (default 20 min.)or uptime 1740 min.
- sinze version 5.1.4 of php

If idle-timeout occurs, no script is running at this moment!
Only the isapi is loaded.

Same error, also if no php.ini exist, means no extensions are loaded
 [2006-10-31 10:41 UTC] ted at connectingsweden dot com
Im getting this exact error also... i have disabled the application pool recycle functions in the IIS server it stil happens this emm problem but it takes a couple of days before it does simple idiot fix is to just goto the server and do a load on a php page for the application pool and then it works again for a couple of days. If i reactivate the recycle functions ill end up with counltess of php page downtime sessions where i have to go and reload a php page localy on the server to fix it.. i run 5.1.6 as php rel ver my question is... Is there a older versions of the php releases that do not cause this effect? untill there is a permanent fix for it.
 [2006-11-23 11:04 UTC] robcw at hotmail dot com
Is this the same as bug report 37483?
http://bugs.php.net/bug.php?id=37483
 [2006-12-05 13:51 UTC] rlwhite at isgconsulting dot com
Does anyone know if this was ever solved or what the best workaround is?  I have a server that is showing this problem and need to fix it asap.

Thanks in advance.
 [2007-06-23 03:46 UTC] bsbll121 at hotmail dot com
Windows NT 6.0 build 6000 (VISTA) (Running as localhost for development while traveling)
PHP Version 5.2.3
Apache/2.2.4 (Win32) PHP/5.2.3

Error 

Problem Event Name:	APPCRASH
  Application Name:	httpd.exe
  Application Version:	2.2.4.0
  Application Timestamp:	45a476e3
  Fault Module Name:	php5ts.dll
  Fault Module Version:	5.2.3.3
  Fault Module Timestamp:	465ecf7f
  Exception Code:	c0000005
  Exception Offset:	0000675c
  OS Version:	6.0.6000.2.0.0.256.1
  Locale ID:	1033
  Additional Information 1:	ce16
  Additional Information 2:	66b0df064fd5c5f2376a115b922f4999
  Additional Information 3:	bf1a
  Additional Information 4:	e134ba01829a85f063948d03ab85a657


Most easiest way to reproduce:

access and loginto phpMyAdmin 2.10.2, select database, and attempt to browse a table (not structure, actual table)

Also re-produceable via attempting to browse a sql table through the mysql GUI application.
 [2008-02-08 11:28 UTC] smck74 at hotmail dot com
Had the same problem on Win2003SP1, tried this with the iisreset which seems to do the trick: http://support.microsoft.com/kb/842493
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 10:01:30 2024 UTC