php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66902 WinCache Freeze php-cgi
Submitted: 2014-03-13 20:54 UTC Modified: 2014-10-09 22:40 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: lucio dot petrillo at hotmail dot it Assigned: ericsten (profile)
Status: Closed Package: WinCache (PECL)
PHP Version: 5.5.10 OS: Windows Server 2008
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lucio dot petrillo at hotmail dot it
New email:
PHP Version: OS:

 

 [2014-03-13 20:54 UTC] lucio dot petrillo at hotmail dot it
Description:
------------
WinCache version
1.3.5.0

PHP version
5.5.8 NTS

SugarCrm 6

FASTCGI Enabled

After some time iis stop serving php files.
There are about 40 php-cgi processes with no cpu activity.
Other files are still served by IIS.

Test script:
---------------
NA

Expected result:
----------------
IIS serving php files

Actual result:
--------------
All process dumped have this stack trace

 	php_wincache.dll!lock_readlock(lock_context * plock=0x019a0958)  Line 422	C
 	php_wincache.dll!fcnotify_check(fcnotify_context * pnotify=0x01b94078, const char * filepath=0x00000000, unsigned int * poffset=0x01b94148, unsigned int * pcount=0x01b9414c)  Line 1055	C
 	php_wincache.dll!aplist_fcache_get(aplist_context * pcache=0x019a4850, const char * filename=0x01602060, unsigned char usesopen=0, char * * ppfullpath=0x008afb68, fcache_value * * ppvalue=0x008afb6c)  Line 1754 + 0xc bytes	C
 	php_wincache.dll!wincache_resolve_path(const char * filename=0x01602060, int filename_len=29)  Line 1199 + 0x18 bytes	C
 	php5.dll!php_fopen_primary_script(_zend_file_handle * file_handle=0x008afbc8)  Line 431 + 0x16 bytes	C
 	php-cgi.exe!main(int argc=1, char * * argv=0x008ff4b8)  Line 2344 + 0xd bytes	C
>	php-cgi.exe!__tmainCRTStartup()  Line 536 + 0x17 bytes	C


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-05 23:29 UTC] ericsten@php.net
-Assigned To: +Assigned To: ericsten
 [2014-10-09 22:40 UTC] ericsten@php.net
-Status: Assigned +Status: Closed
 [2014-10-09 22:40 UTC] ericsten@php.net
To make things safer, I've added a configuration option in WinCache 1.3.6.2 to disable the Shared Reader/Writer (SRW) locks used in WinCache.  By default, the SRW locks are enabled.  To disable the locks, add the following to the system php.ini:

wincache.srwlocks=0

The updated WinCache 1.3.6.2 is available out on SourceForge, in the Developer directory.  

http://sourceforge.net/projects/wincache/files/development/wincache-1.3.6.2-dev-5.3-nts-vc9-x86.exe/download
http://sourceforge.net/projects/wincache/files/development/wincache-1.3.6.2-dev-5.4-nts-vc9-x86.exe/download
http://sourceforge.net/projects/wincache/files/development/wincache-1.3.6.2-dev-5.5-nts-vc11-x86.exe/download
http://sourceforge.net/projects/wincache/files/development/wincache-1.3.6.2-dev-5.6-nts-vc11-x86.exe/download

This change will be rolled into the next official release of WinCache.

Thx!
    --E.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jun 04 04:01:26 2025 UTC