Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019RSS

46 replies

Last post Nov 20, 2014 04:10 PM by DropPhone

  • Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 21, 2009 06:32 PM|zwflss|LINK

    <div dir=ltr id=result_box>Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019, faulting module php_wincache.dll, version 1.0.1012.0, time stamp 0x4ad39bd7, exception code 0xc0000005, fault offset 0x0000294d, process ID 0x5ec, application startup Time 0x01ca527533907c77.</div>

    错误应用程序 php-cgi.exe,版本 5.2.11.11,时间戳 0x4ab13019,错误模块 php_wincache.dll,版本 1.0.1012.0,时间戳 0x4ad39bd7,异常代码 0xc0000005,错误偏移量 0x0000294d, 进程 ID 0x5ec,应用程序启动时间 0x01ca527533907c77。

     

    <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <System></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Provider Name="Application Error" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <EventID Qualifiers="0">1000</EventID> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Level>2</Level> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Task>100</Task> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Keywords>0x80000000000000</Keywords> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <TimeCreated SystemTime="2009-10-21T17:44:07.000Z" /> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <EventRecordID>1321083</EventRecordID> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Channel>Application</Channel> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Computer>WIN-CRGEDSMZFWC</Computer> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Security /> </div></div> <div>  </System></div></div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em" class=c>- <EventData></div> <div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Data>php-cgi.exe</Data> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Data>5.2.11.11</Data> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Data>4ab13019</Data> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Data>php_wincache.dll</Data> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Data>1.0.1012.0</Data> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Data>4ad39bd7</Data> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Data>c0000005</Data> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Data>0000294d</Data> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Data>5ec</Data> </div></div> <div class=e> <div style="TEXT-INDENT: -2em; MARGIN-LEFT: 1em">  <Data>01ca527533907c77</Data> </div></div> <div>  </EventData></div></div></div> <div>  </Event></div></div></div>
  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 21, 2009 07:18 PM|ksingla|LINK

    Hi,

    Thanks for reporting this crash in WinCache. Do you have the repro steps for this?

    Thanks,
    Kanwal

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 21, 2009 07:49 PM|zwflss|LINK

    windows2008sp2(64bit) 

     fastcgi

    VC6 x86 Non Thread Safe PHP 5.2.11

    ---------------------------------------------------

    After running for some time will get an error, and then automatically return to normal; error will not run PHP

    Thanks

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 21, 2009 07:52 PM|don.raman|LINK

    Can you tell us what aplication you are running? Is it some open source PHP application you are running?

    Please let us know some more details.

    Thanks,

    Don.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 22, 2009 02:52 AM|zwflss|LINK

    discuz7.0   discuz7.1  

    www.discuz.net

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 22, 2009 08:24 PM|don.raman|LINK

    <div class=ForumPostContentText>

    Hi,

    Thanks for reporting the problem. I tried installing Discuz but first it was my efficiency in Chinese and now I am facing a problem with permission where the install refuses to go any further complaining about file permissions on some folders. Is there a way we can get access to your machine. It will be easier for us to give you a fix. Please mail be back at don[dot]raman[at]microsoft[dot]com. Even you can help me setting up Discuz that will be helpful.

    Thanks,

    Don.

    </div>
  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 22, 2009 10:43 PM|don.raman|LINK

    Hi,

    Okay after some trick, I am able to install Discuz. The page is running perfectly fine for couple of hours. Can you let me know some typical steps you are doing which ends up stopping PHP to work.

    Thanks,

    Don.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 23, 2009 04:55 AM|zwflss|LINK

    <div dir=ltr id=result_box> <div dir=ltr id=result_box>I do not know when and in which step the operation error accures,it is only can seen in the system log.</div></div> <div dir=ltr>Thank you very much!</div> <div dir=ltr></div>
  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 23, 2009 12:39 PM|don.raman|LINK

    Okay, great. Yes we did fix some hang and crash post beta. Thanks for the confirmation.

    Please do let us know if the bug re-surfaces and thanks a lot for reporting this to us.

    Regards,

    Don.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 26, 2009 09:39 AM|zwflss|LINK

    <div dir=ltr id=result_box></div> <div dir=ltr> </div> <div dir=ltr> </div> <div dir=ltr>Today, suddenly an error occurred, PHP stopped working, discuz an error occurred 500。</div> <div dir=ltr> </div> <div dir=ltr>Thanks!</div>
  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 26, 2009 12:33 PM|don.raman|LINK

    Do you know what action led to this crash? I will try little bit more but it will be helpful if you can give us a sequence of steps which makes this happen? Or any other pointer.

    Thanks,

    Don.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 26, 2009 01:40 PM|zwflss|LINK

    It is unkonwn,I am also looking for the reasons and I will tell you if I find it.

    Thanks!

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 04, 2009 01:37 AM|yon|LINK

    Don,

    I am install Wincache1.0RC  v1.0.1012.0 , php5.2.11 nts and  IIS6.

    but it is often show wrong " 0x0244294d   0xf070000c    can't written"

    when i disable Wincache in php.ini , it is normal.

    I have seach in google and bing, but I have not find any informations.

     

    by the way, wincache has any config file ?

     

     

     

     

     

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 04, 2009 01:46 AM|don.raman|LINK

    Hi Yon,

    yon

    but it is often show wrong " 0x0244294d   0xf070000c    can't written"

    What do you mean by above statement? Can you mail me at don[dot]raman[at]microsoft[dot]com.

    Thanks,

    Don.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Dec 08, 2009 03:34 PM|louisgephardt|LINK

     I'm running Moodle 1.9 with PHP 5.2.11.11 and I'm getting a very similar error in my Event Log:

    Faulting application name: php-cgi.exe, version: 5.2.11.11, time stamp: 0x4ab13019
    Faulting module name: php_wincache.dll, version: 1.0.1117.0, time stamp: 0x4b046153
    Exception code: 0xc0000005
    Fault offset: 0x00012aba
    Faulting process id: 0x14c
    Faulting application start time: 0x01ca77c365cf2383
    Faulting application path: C:\Program Files (x86)\PHP\php-cgi.exe
    Faulting module path: C:\Program Files (x86)\PHP\ext\php_wincache.dll
    Report Id: baef7ace-e3b7-11de-ada9-00215a51d640

     It happens at random but is usually generated when someone attempts to login to Moodle.  The error generated to the client is a 500 or 505 error.

    Info on my config: Windows Server 2008 R2 x64, IIS7, PHP 5.2.11.11 on an HP Proliant DL320G5p w/ 8GB RAM 

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Dec 09, 2009 01:57 PM|ruslany|LINK

    This crash is caused by the wincache extension that is enabled by default when installing PHP via Web Platform Installer. We are investigating the cause of the crash. Meanwhile you can disable the extension to prevent further application crashes. To disable the extension, open the C:\Program Files (x86)\PHP\php.ini , find the line extension=php_wincache.dll and comment it out or remove it. After saving php.ini file recycle the IIS application pool for changes to take effect.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Jan 17, 2010 09:37 PM|chall3ng3r|LINK

    Thanks for the info, I was having same issue. Just commented it out and looking forward for a fix. Best, // chall3ng3r //
  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Jan 19, 2010 03:03 AM|ksingla|LINK

    Hi,

    We finally understood the crash and have a fix now. If you would like to try out the fix before we officially release wincache 1.0.1 pls send me email at ksingla at microsoft dot com and I will send you the private copy of php_wincache.dll. Pls indicate if you need a private for php 5.2 or 5.3 in email.

    Thanks,
    Kanwal

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    May 10, 2010 01:54 PM|blueroy81|LINK

    Please let me know when this fix will be available. We are also experiencing the same issues with Wincache and would like to see if this resolves it.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    May 10, 2010 02:31 PM|don.raman|LINK

    Hi,

    More dertails please. This bug is already resolved and please install latest stable WINCACHE 1.0.1. We also did Beta2 for WINCACHE1.1, you can try that too. It has also got the fix and lot of other good features. Details at http://www.ksingla.net/2010/05/whats-new-in-wincache-1-1-beta2-and-whats-next/.

    If you are still experiencing the crash (even after moving to latest bits) please provide the details in event log and a crash dump to help us understand it better.

    Thanks,

    Don.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    May 10, 2010 03:31 PM|blueroy81|LINK

    We are running 1.0.1. I verified we have the latest version. These are production systems so I will be unable to install Beta code onto production. We are a hosting company so I am not even sure what app(s) is causing our particualr issue. I have been unable to repro myself so would not be able to provide a dump at this time. I will continue to investigate on my end. Here is a sample of the events we are seeing:

    Faulting application php-cgi.exe, version 5.2.12.12, time stamp 0x4b291183, faulting module php_wincache.dll, version 1.0.1325.0, time stamp 0x4b590101, exception code 0xc0000005, fault offset 0x0000c65d, process id 0x533c, application start time 0x01caf076ff9bf6fa

     

    <div class=e> <div class=c style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"></div> <div> <div class=e> <div class=c style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">- <System></div> <div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Provider Name="Application Error" /> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <EventID Qualifiers="0">1000</EventID> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Level>2</Level> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Task>100</Task> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Keywords>0x80000000000000</Keywords> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <TimeCreated SystemTime="2010-05-10T19:28:54.000Z" /> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <EventRecordID>552942</EventRecordID> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Channel>Application</Channel> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Computer>P3NW8SHG121.phx3.gdhosting.gdg</Computer> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Security /> </div></div> <div>  </System></div></div></div> <div class=e> <div class=c style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">- <EventData></div> <div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data>php-cgi.exe</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data>5.2.12.12</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data>4b291183</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data>php_wincache.dll</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data>1.0.1325.0</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data>4b590101</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data>c0000005</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data>0000c65d</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data>533c</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data>01caf076ff9bf6fa</Data> </div></div> <div>  </EventData></div></div></div> <div>  </Event></div> <div> </div> <div> </div></div></div>
  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    May 10, 2010 04:05 PM|don.raman|LINK

    Hi,

    Thanks for providing the event logs. A dump will be more useful. So please keep trying for it.

    Regards,

    Don.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Jun 03, 2010 07:38 PM|don.raman|LINK

    Hi,

    We did some analysis on the information provided. This is happening in resolve path cache code. But we do not know what can cause this failure. Can you tell us how many entries are there in your resolve path cache and do you see anything odd there. You can use wincache.php to examine that.

    Also let us know if you got the crash again or how frequently you are getting these crashes.

    Thanks,

    Don.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Jan 29, 2014 05:16 AM|adrianford|LINK

    Hi -I reliase this post is over 3 years old, but we're getting a very similar problem now. Have recently upgraded PHP/wincache to try to stop the random "service not available" errors we were getting, to no effect. 

    We're running:

    Microsoft-IIS/7.5

    Intel64 Family 6 Model 15 Stepping 1, GenuineIntel

    And the error we get is:

    Faulting application name: php-cgi.exe, version: 5.5.8.0, time stamp: 0x52cde23c
    Faulting module name: php_wincache.dll, version: 1.3.5.0, time stamp: 0x51f7ead2
    Exception code: 0xc0000005
    Fault offset: 0x0000ad69
    Faulting process id: 0x1148
    Faulting application start time: 0x01cf1cb8cfb797e9
    Faulting application path: C:\Program Files (x86)\php-5.5.8\php-cgi.exe
    Faulting module path: C:\Program Files (x86)\php-5.5.8\ext\php_wincache.dll
    Report Id: 50773e59-88b1-11e3-87e0-00505693008b

    we have currently 2939 entries in the "resolve path cache" -what should we look for regarding anything 'odd'?

    many thanks -and apologies if I've posted this in the wrong place

  • DropPhone DropPhone

    358 Posts

    Microsoft

    Moderator

    Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Jan 29, 2014 05:12 PM|DropPhone|LINK

    If possible, could you get a crash dump at the point where php_wincache.dll AV's?  Without a dump, it's pretty hard to diagnose exactly what's going on.

    http://wiki.zimbra.com/wiki/Creating_a_Core_Dump_from_a_Running_Process_using_WinDbg 

    Thx!

        --E.

  • DropPhone DropPhone

    358 Posts

    Microsoft

    Moderator

    Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Aug 06, 2014 12:16 PM|DropPhone|LINK

    adrianford

    Faulting module name: php_wincache.dll, version: 1.3.5.0, time stamp: 0x51f7ead2
    Exception code: 0xc0000005
    Fault offset: 0x0000ad69

    FYI: This offset indicates an AV in the fcnotify_check function of php_Wincache.  This AV was fixed in Wincache version 1.3.5.3.

    If possible, please upgrade to the most recent Wincache version, which addresses many more AVs and crashes.  As of the time of this post, the current version is 1.3.6.1 (June 28th, 2014).

    Thx!

        --E.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 26, 2014 09:28 PM|VincentW|LINK

    I have also been experiencing the same error, but I am using wincache version 1.3.5.0.  

    What is the best and easiest way to upgrade wincache?  Does the WPI Launcher handle updates?  Or do I have to manually download an update, or download the latest version and uninstall the old version first?  Please advise.

  • DropPhone DropPhone

    358 Posts

    Microsoft

    Moderator

    Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 28, 2014 01:40 PM|DropPhone|LINK

    The WPI versions are a bit out of date.

    Your best bet would be to go out to SourceForge and pull down the self-extracting archive containing the most recent WinCache. 

    PHP v5.6: http://sourceforge.net/projects/wincache/files/development/wincache-1.3.6.3-dev-5.6-nts-vc11-x86.exe/download

    PHP v5.5: http://sourceforge.net/projects/wincache/files/development/wincache-1.3.6.3-dev-5.5-nts-vc11-x86.exe/download

    PHP v5.4: http://sourceforge.net/projects/wincache/files/development/wincache-1.3.6.3-dev-5.4-nts-vc9-x86.exe/download

    PHP v5.3: http://sourceforge.net/projects/wincache/files/development/wincache-1.3.6.3-dev-5.3-nts-vc9-x86.exe/download

    If you do that, you have to do the following from an admin command line:

    <extract the files in wincache-1.3.6.3-dev-<PHP Version>.exe to some temp directory>
    net stop w3svc <copy the new php_wincache.dll to the PHP ext directory where the existing php_wincache.dll resides> net start w3svc

    If you originally installed PHP using WPI, the PHP ext directory should be under:

    x64: %programfiles(x86)%\PHP\<PHP Version>\ext

    x86: %programfiles%\PHP\<PHP Version>\ext

    where <PHP Version> is one of { v5.3 | v5.4 | v5.5 | v5.6 }.

    Theoretically WPI would do the upgrade; however the versions in WPI are a bit out of date.  I'm working on updating the feed to WinCache 1.3.6.3 for PHP 5.5 & 5.6, but for PHP 5.3 & 5.4 the version is 1.3.4.0, and is unlikely to change for a while.

    Thx!

        --E.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 28, 2014 02:40 PM|VincentW|LINK

    Thank you.  I will do that this weekend.  

    Although it's a bit disconcerting that people have been having this issue since 2009.  I really hope this problem does not keep coming back in future releases because it's super embarrassing every time a customer calls to say the website is down.

  • DropPhone DropPhone

    358 Posts

    Microsoft

    Moderator

    Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 28, 2014 03:58 PM|DropPhone|LINK

    VincentW

    I really hope this problem does not keep coming back in future releases because it's super embarrassing every time a customer calls to say the website is down.

    Totally agree!

    I'm doing whatever I can to improve the quality and stability of WinCache.  If you can get crash dumps, it makes my job a lot easier.  These kinds of AV reports from the Windows Event Logs are also useful, but not nearly as good as crash dumps.

    Thx!

        --E.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 29, 2014 12:35 PM|VincentW|LINK

    I would gladly send you a crash dump but I'm not sure where to find that.  Besides, I believe that's something I have to enable before the crash occurs, correct?

  • DropPhone DropPhone

    358 Posts

    Microsoft

    Moderator

    Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Oct 29, 2014 01:07 PM|DropPhone|LINK

    Yes, you need to have something set up to capture crash dumps.   Here's my boiler-plate guidance on "how to gather crash dumps":

    Here are a couple of good blog/msdn articles:

     

    DebugDiag:

    http://www.microsoft.com/en-us/download/details.aspx?id=40336

     

    Steps to Catch a Simple “Crash Dump” of a Crashing Process:

    http://blogs.msdn.com/b/chaun/archive/2013/11/12/steps-to-catch-a-simple-crash-dump-of-a-crashing-process.aspx

     

    Collecting User-Mode Dumps:

    http://msdn.microsoft.com/en-us/library/windows/desktop/bb787181(v=vs.85).aspx

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 01, 2014 10:51 AM|VincentW|LINK

    I'm ready to install the new wincache but I don't have a service called w3wp running at all.  Is this the equivalent of "World Wide Web Publishing Service".  Cause that's the service I always restart when I run into the wincache issue and that solves it. 

    I am running Windows Server 2012 Standard.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 03, 2014 01:27 PM|VincentW|LINK

    I installed wincache 1.3.6.3 on Saturday and unfortunately the server crashed again.  Twice.

    Now, as I said in my previous post there was no w3wp service for me to stop, so I stopped World Wide Web Publishing Service, then copied the new wincache.dll and then restarted the World Wide Web Publishing Service.  My phpinfo page shows the new version of wincache.

    The next day (Sunday) at 12:30 in the afternoon I got this one:

    Faulting application name: php-cgi.exe, version: 5.5.11.0, time stamp: 0x53447407
    Faulting module name: php_wincache.dll, version: 1.3.6.3, time stamp: 0x543834bf
    Exception code: 0xc0000005
    Fault offset: 0x0000af84
    Faulting process id: 0x1488
    Faulting application start time: 0x01cff6b88006afcc
    Faulting application path: C:\Program Files (x86)\PHP\v5.5\php-cgi.exe
    Faulting module path: C:\Program Files (x86)\PHP\v5.5\ext\php_wincache.dll
    Report Id: 20728f49-62ce-11e4-93f9-80ee7353f7b5
    Faulting package full name:
    Faulting package-relative application ID:

    Then this morning around 7:00 am I got dozens of Application errors similar to this one.

    Faulting application name: php-cgi.exe, version: 5.5.11.0, time stamp: 0x53447407
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x00000000
    Faulting process id: 0x2150
    Faulting application start time: 0x01cff77e2bf22a17
    Faulting application path: C:\Program Files (x86)\PHP\v5.5\php-cgi.exe
    Faulting module path: unknown
    Report Id: 6caf2652-6371-11e4-93f9-80ee7353f7b5
    Faulting package full name:
    Faulting package-relative application ID:

    However, all of the Application errors from this morning do not show wincache, but instead "unknown" for the Faulting module name.

    I did install debugdiag but I hadn't set up a crash rule yet.  I have now, so the next time it happens I should get a crash dump for you.

  • DropPhone DropPhone

    358 Posts

    Microsoft

    Moderator

    Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 03, 2014 03:22 PM|DropPhone|LINK

    VincentW

    Faulting module name: php_wincache.dll, version: 1.3.6.3, time stamp: 0x543834bf
    Exception code: 0xc0000005
    Fault offset: 0x0000af84

    This indicates a failure in php_wincache!fcnotify_check, and it implies there's a corrupted chunk of shared memory.  To figure out exactly what's going on, I'll need a crash dump.

    As for the other errors, getting a crash dump will be the only way to figure out what's going on.

    Private message me when you have the dumps available.

    Thx!

        --E.

  • DropPhone DropPhone

    358 Posts

    Microsoft

    Moderator

    Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 03, 2014 03:24 PM|DropPhone|LINK

    VincentW

    but I don't have a service called
    w3wp running at all.

    Ah, yeah, my bad.  That should be:

    net stop w3svc
    ...
    net start w3svc

    Thx!

        --E.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 18, 2014 03:37 PM|sencia|LINK

    I have also been having this issue across multiple versions of PHP/wincache. 

    I am setting up debugdiag to try to get some more info

    Faulting application name: php-cgi.exe, version: 5.5.11.0, time stamp: 0x53447407

    Faulting module name: php_wincache.dll, version: 1.3.6.3, time stamp: 0x543834bf

    Exception code: 0xc0000005

    Fault offset: 0x0000af84

    Faulting process id: 0x70c

    Faulting application start time: 0x01d0035e03568c52

    Faulting application path: C:\Program Files (x86)\PHP\v5.5\php-cgi.exe

    Faulting module path: C:\Program Files (x86)\PHP\v5.5\ext\php_wincache.dll

    Report Id: 43b2fdc6-6f51-11e4-a6ec-000c29be655b

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 18, 2014 03:41 PM|VincentW|LINK

    Many times I get this error without a faulting module name.  Sometimes it says php_wincache, sometimes kernel32 and sometimes it says "unknown".  This leads me to believe the issue is not with the module, but the application itself which is php-cgi.exe.

    To that end I have been in contact with a PHP expert and he advised me that PHP 5.5 does not always play nicely with IIS and he recommended I downgrade to the most stable version of PHP which is 5.4.  I will do so tonight and hopefully that solves it.

  • DropPhone DropPhone

    358 Posts

    Microsoft

    Moderator

    Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 18, 2014 05:59 PM|DropPhone|LINK

    That offset in that version of Wincache indicates a failure in php_wincache!fcnotify_check.  I've seen a number of AVs related to this code, and it's puzzling.  The way the code is written, we're getting a non-NULL pointer, but deref'ing through that pointer triggers an AV.  That would indicate some kind of memory corruption in the shared memory, which is tricky to debug.

    Are you running different versions of PHP within the same Application Pool?

    When you get a crash dump of this AV, please let me know!  I'm unable to repro this crash in-house.

    Thx!

        --E.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 18, 2014 06:08 PM|VincentW|LINK

    I do have two versions of PHP installed, but I don't know how both could be "running" at the same time.  My PHP Manager in IIS forces me to choose a single PHP executable, and  I have just one website configured on this server. (plus one FTP server).

    When you say "memory corruption in the shared memory", are you talking about physical memory?  I had my host do a memory test and they said there is nothing wrong with my physical memory.

  • DropPhone DropPhone

    358 Posts

    Microsoft

    Moderator

    Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 18, 2014 07:09 PM|DropPhone|LINK

    Well, there are some voodoo ways of configuring IIS to have multiple versions of PHP within a single application pool, but doing so will cause horribly bad things to happen with Wincache, so I won't bother describing how to do it here.

    When I say memory corruption in shared memory, I need to explain a little bit about how Wincache works under-the-covers.

    IIS can launch multiple instances of FastCGI processes.  This allows IIS to serve multiple requests in parallel.  This means you can have many php-cgi.exe's running at the same time. 

    If you didn't care about compiling a php script for each instance of php-cgi.exe, an opcode cache could just have a chunk of memory in the current process to store the compiled opcodes , and things would be a lot simpler, if slightly less efficient.

    Wincache avoids re-compilations in each process by having a chunk of memory that's mapped into each instance of php-cgi.exe, such that a .php file will only be compiled once, and then shared by all the other instances.  This is the shared memory that I was talking about earlier.

    Now, there's a little bit of trickiness that comes from using shared memory.  You have to have synchronization between all of the php-cgi.exe's, otherwise you'll have an incoherent mess on your hands.  And that's where things can go horribly wrong.

    On IIS, the FastCGI manager can arbitrarily decide to kill a running php-cgi.exe if it thinks it's misbehaving.  PHP script taking too long?  Kill it.  Too much CPU for as single PHP script?  Kill it.  Smells like 2-day old yogurt left out in the sun?  Kill it...with Fire!

    If each php-cgi.exe was allowed to run until completion, and PHP scripts were well behaved, Wincache would never have a problem.  It has, what we like to refer to in Computer Science, as a cooperative locking mechanism.  It works well, if everything else works well.  However, when things get messy, your only option is to kill everything in sight and set it on fire...and then start over after the ashes have cooled a bit.

    Let's say Wincache is happily compiling and adding a new script to the opcode cache.  And for some reason compilation is taking a long time, and the FastCGI manager has decided enough is enough and shoots the poor php-cgi.exe in the head.  That happy little php-cgi.exe was holding a lock, and had written *some* of the data about that compilation it was working on into the shared memory, but hadn't finished writing *everything*.  So you have corrupt state sitting in shared memory.  And no one will ever figure out that it's corrupt; Wincache doesn't have a corruption detection mechanism.  And the lock that happy little php-cgi.exe was holding?  Yeah, it was suddenly released.  So the next php-cgi.exe that goes looking for the (partially) compiled file will find the corrupt entry, and will use it thinking that it's a completed entry.  And will dereference invalid pointers, stepping off the edge of the world....and other really bad stuff!

    And *that*, my friend, is (most likely) what just happened to you.

    Whenever this happens, it's tough.  You have to make sure all the php-cgi.exe's are killed off, and that the chunk of shared memory is completely gone.  And then you start over.  In this case, iisreset is your friend.

    Hope this helps!

        --E.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 18, 2014 07:23 PM|VincentW|LINK

    Thanks for that great explanation, but wouldn't it be possible for wincache to mark the partially compiled code until it's fully complete, so that other processes know not to use it if it's still marked?  

    Also, could a scenario such as you describe take down an entire site?  Because it seems to me it would only cause problems with a particular page.  Although I guess, a common file which is included on every page could also fall victim to this scenario, couldn't it?  And does this produce a 500 error?  Because that's the error I get on my site.

    EDIT:  One more question.  Could shorter scripts help to alleviate this problem?  Or perhaps a longer time out setting of some sort in php.ini?

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 19, 2014 08:39 AM|sencia|LINK

    VincentW

    Many times I get this error without a faulting module name.  Sometimes it says php_wincache, sometimes kernel32 and sometimes it says "unknown".  This leads me to believe the issue is not with the module, but the application itself which is php-cgi.exe.

    To that end I have been in contact with a PHP expert and he advised me that PHP 5.5 does not always play nicely with IIS and he recommended I downgrade to the most stable version of PHP which is 5.4.  I will do so tonight and hopefully that solves it.

    I have been experiencing this issue for quite some time.  I have tried PHP 5.3, 5.4, and 5.5.  I updated to 5.5 within the last week hoping it would be the solution, alas it is not.

    I had debugDiag running overnight but when I had the issues it didn't seem to create a dump, admittedly I am not familiar enough with debugDiag to know if I have it set up properly.

    I posted the error I received above, below is my current wincache phpinfo() if it helps

    wincache

    Opcode cache disabled
    File cache enabled
    Version 1.3.6.3
    Owner iisphp@microsoft.com
    Build Date Oct 10 2014 12:34:08
    Directive Local Value Master Value
    wincache.apppoolid no value no value
    wincache.chkinterval 30 30
    wincache.debuglevel 0 0
    wincache.enablecli Off Off
    wincache.fcachesize 24 24
    wincache.fcenabled On On
    wincache.fcenabledfilter no value no value
    wincache.fcndetect On On
    wincache.filecount 4096 4096
    wincache.ignorelist no value no value
    wincache.internedsize 4 4
    wincache.localheap 0 0
    wincache.maxfilesize 256 256
    wincache.namesalt no value no value
    wincache.ocachesize 96 96
    wincache.ocenabled Off Off
    wincache.ocenabledfilter no value no value
    wincache.scachesize 8 8
    wincache.srwlocks On On
    wincache.ttlmax 1200 1200
    wincache.ucachesize 8 8
    wincache.ucenabled On On

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 19, 2014 09:29 AM|sencia|LINK

    I found this in my event logs.  Would the files in C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_php-cgi.exe_ab50c9e42fa54c1ceeee5a8e3bb96762eb4db90_cab_13584e02 be of any use?

    Fault bucket , type 0 Event Name: APPCRASH Response: Not available Cab Id: 0

    Problem signature: P1: php-cgi.exe P2: 5.5.11.0 P3: 53447407 P4: php_wincache.dll P5: 1.3.6.3 P6: 543834bf P7: c0000005 P8: 00012ca7 P9: P10:

    Attached files: C:\Windows\Temp\WER4AA8.tmp.appcompat.txt C:\Windows\Temp\WER4B45.tmp.WERInternalMetadata.xml C:\Windows\Temp\WER4B46.tmp.hdmp C:\Windows\Temp\WER4D0B.tmp.mdmp

    These files may be available here: C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_php-cgi.exe_ab50c9e42fa54c1ceeee5a8e3bb96762eb4db90_cab_13584e02

    Analysis symbol: Rechecking for solution: 0 Report Id: e77de902-6f8d-11e4-a6ec-000c29be655b Report Status: 4

  • DropPhone DropPhone

    358 Posts

    Microsoft

    Moderator

    Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 19, 2014 02:19 PM|DropPhone|LINK

     

    sencia

    C:\Windows\Temp\WER4B46.tmp.hdmp C:\Windows\Temp\WER4D0B.tmp.mdmp

    The *.hdmp and *.mdump would be, yes.  Send me a private message to coordinate handing over the dump files. 

    Thx!

      --E.

  • Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 20, 2014 03:30 PM|jchambo|LINK

    I too am experiencing this issue.

    I am running WordPress of of Windows Server 2008 R2 and have the site running in IIS.

    I receive the following error frequently (pretty much daily):

    Faulting application name: php-cgi.exe, version: 5.4.24.0, time stamp: 0x52cdde63
    Faulting module name: php_wincache.dll, version: 1.3.4.0, time stamp: 0x4fd7737e
    Exception code: 0xc0000005
    Fault offset: 0x00007134
    Faulting process id: 0x2de0
    Faulting application start time: 0x01d004ff1e1eab6d
    Faulting application path: C:\Program Files (x86)\PHP\v5.4\php-cgi.exe
    Faulting module path: C:\Program Files (x86)\PHP\v5.4\ext\php_wincache.dll
    Report Id: 5c280d05-70f2-11e4-80b4-000c2911f487

    I've searched around and can't seem to find a concrete answer what to do.

    Any further ideas on this thread?

  • DropPhone DropPhone

    358 Posts

    Microsoft

    Moderator

    Re: Faulting application php-cgi.exe, version 5.2.11.11, time stamp 0x4ab13019

    Nov 20, 2014 04:10 PM|DropPhone|LINK

    jchambo

    Faulting module name: php_wincache.dll, version: 1.3.4.0, time stamp: 0x4fd7737e

    Wow, that's a fantastically old version of WinCache!  I've made several stability fixes to it since then, and the current version is 1.3.6.3.

    Updated bits:

    http://sourceforge.net/projects/wincache/files/development/wincache-1.3.6.3-dev-5.4-nts-vc9-x86.exe/download 

    FYI, looking at the offset in that version of php_wincache, it looks like the specific issue you're hitting was fixed in WinCache 1.3.5.3 (from March of 2014).  I would still suggest you upgrade your WinCache to 1.3.6.3, since there have been many other issues fixed since then.

    Thx!

        --E.