php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46532 Error 0xC0000005 in PHP5TS.DLL and PHP-CGI.EXE
Submitted: 2008-11-10 09:00 UTC Modified: 2008-11-13 16:28 UTC
From: artist at wavenet dot org Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.2.6 OS: Windows XP
Private report: No CVE-ID: None
 [2008-11-10 09:00 UTC] artist at wavenet dot org
Description:
------------
I am using Lighttpd from install file LightTPD-1.4.20-1-Win32-SSL.exe. This was tested with HTML files and it worked.

When I attempted to load a test PHP file in an error message box opened with the message PHP / Fast CGI had developed a problem and needed to close. So I invoked php-cgi.exe with Dependency Walker. Pasted below are the last few lines output in Dependency Walker's Log Window. The 0xC0000005 memory access violation errors are in the last few lines.

GetProcAddress(0x755C0000 [f:\windows\system32\MSCTFIME.IME], "NotifyIME") called from "f:\windows\system32\IMM32.DLL" at address 0x76397324 and returned 0x755D9507.
GetProcAddress(0x755C0000 [f:\windows\system32\MSCTFIME.IME], "ImeSetCompositionString") called from "f:\windows\system32\IMM32.DLL" at address 0x7639733C and returned 0x755D946D.
GetProcAddress(0x755C0000 [f:\windows\system32\MSCTFIME.IME], "ImeGetImeMenuItems") called from "f:\windows\system32\IMM32.DLL" at address 0x76397354 and returned NULL. Error: The specified procedure could not be found (127).
GetProcAddress(0x755C0000 [f:\windows\system32\MSCTFIME.IME], "CtfImeInquireExW") called from "f:\windows\system32\IMM32.DLL" at address 0x76397394 and returned 0x755D9548.
GetProcAddress(0x755C0000 [f:\windows\system32\MSCTFIME.IME], "CtfImeSelectEx") called from "f:\windows\system32\IMM32.DLL" at address 0x763973A8 and returned 0x755D92C5.
GetProcAddress(0x755C0000 [f:\windows\system32\MSCTFIME.IME], "CtfImeEscapeEx") called from "f:\windows\system32\IMM32.DLL" at address 0x763973BC and returned 0x755D96FE.
GetProcAddress(0x755C0000 [f:\windows\system32\MSCTFIME.IME], "CtfImeGetGuidAtom") called from "f:\windows\system32\IMM32.DLL" at address 0x763973D0 and returned 0x755D9737.
GetProcAddress(0x755C0000 [f:\windows\system32\MSCTFIME.IME], "CtfImeIsGuidMapEnable") called from "f:\windows\system32\IMM32.DLL" at address 0x763973E4 and returned 0x755D931A.
First chance exception 0xC0000005 (Access Violation) occurred in "f:\websites\servers\php-5.2.6\PHP5TS.DLL" at address 0x1009C51D.
Second chance exception 0xC0000005 (Access Violation) occurred in "f:\websites\servers\php-5.2.6\PHP5TS.DLL" at address 0x1009C51D.
Exited "f:\websites\servers\php-5.2.6\PHP-CGI.EXE" (process 0xAEC) with code -1073741819 (0xC0000005).


Reproduce code:
---------------
The batch file PHP and Lighttpd were invoked with:
@ECHO OFF
ECHO Starting LightTPD...
CD LightTPD
ECHO.
lighttpd.exe -v
ECHO.
lighttpd.exe -f conf\lighttpd-srv.conf -m lib
CD ..
ECHO Starting PHP FastCGI...
.\PHP-5.2.6\php-cgi.exe -e -b 127.0.0.1:521
EXIT

Expected result:
----------------
The php test file contained only the characters:
<?php phpinfo(); ?>
I expected to see a php info page.

Actual result:
--------------
PHP crashed.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-10 10:08 UTC] pajoye@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2008-11-10 16:42 UTC] artist at wavenet dot org
There are too many choices on page:
http://bugs.php.net/bugs-generating-backtrace-win32.php
for me to know what to download.

How can I tell whether the PHP version that crashed on me is thread safe?

If it is thread safe does the PHP pack also have to be thread safe and vice versa?

If the PHP is a snapshot version does the debug pack also have to be a snapshot? And if the PHP is a stable release does the Debug also have to be a stable release?
 [2008-11-10 17:16 UTC] jani@php.net
Please READ the instructions. It's not that hard. Only give the 
feedback that was asked, otherwise let this rot.
 [2008-11-11 16:43 UTC] artist at wavenet dot org
I have created the DebugDiag log files. The can be downloaded from:
 https://www.streamfile.com/id/YfmocWffOheRC7RPEozLTpy6bVfeZ/PHPCrashDump.zip

This stream will be available for next 24 hours.
 [2008-11-11 17:27 UTC] artist at wavenet dot org
On more thing that might of help to know. In version 5.2.6 I am using the extension php_pgsql.dll from version 5.2.5. This is because I have information that the version of this included in 5.2.6 does not work. This advisory is at the bottom of page:
http://drupal.org/requirements
 [2008-11-11 17:40 UTC] pajoye@php.net
php_pgsql was only missing the libpq.dll. You can have it in the last 5.2 snapshots or here:

http://downloads.php.net/pierre/libpq-php-4.4.9-5.2.6.zip

But the backtrace is not what we asked, see:

http://bugs.php.net/bugs-generating-backtrace-win32.php

The last image is what you should actually send :)
 [2008-11-12 20:58 UTC] jani@php.net
Please try using this CVS snapshot:

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

  http://windows.php.net/snapshots/


 [2008-11-13 16:02 UTC] artist at wavenet dot org
The snapshot did not crash. Thankyou.

But I think it not wise to use a snapshot version for production on my websites. So I am going to use the not thread safe version of 5.2.6 for now. I do not need thread safety because I am using fast cgi.
 [2008-11-13 16:28 UTC] pajoye@php.net
Bug fixed already > not a bug/bogus.

About using the non thread safe version, you can use it anyway, always, if you use the FCGI sapi.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 06:01:32 2024 UTC