php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55234 Crash after second run of site in php-cgi
Submitted: 2011-07-18 13:40 UTC Modified: 2013-02-18 00:34 UTC
From: pietiatibia1 at gmail dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.4.0alpha2 OS: Win 7 x32
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pietiatibia1 at gmail dot com
New email:
PHP Version: OS:

 

 [2011-07-18 13:40 UTC] pietiatibia1 at gmail dot com
Description:
------------
After opening second time php script this happens.

Test script:
---------------
After opening second time php script this happens.

Expected result:
----------------
normal executing of script

Actual result:
--------------
Thread 0 - System ID 1636
Entry point   php_cgi+796d 
Create time   2011-07-18 19:25:17 
Time spent in user mode   0 Days 0:0:0.62 
Time spent in kernel mode   0 Days 0:0:0.31 






Function     Arg 1     Arg 2     Arg 3   Source 
php5ts!php_output_handler_started+6b     10480660     00000017     020fa090    
php5ts!php_output_handler_conflict+16     021050f0     0000000c     10480660    
php5ts!php_version_compare+b36b     021050f0     0000000c     02042d70    
php5ts!php_output_handler_start+7d     02d4102c     100df29b     021067a8    
php5ts!php_output_start_user+1f     021067a8     02d4106c     02dc2158    
php5ts!php_output_start_user+4b     021066f0     00000000     00000070    
php5ts!php_output_start_internal+706     00000001     02105250     00000000    
php5ts!execute+1005     020e20a8     02042d70     020e20a8    
php5ts!execute+4e93     02042d70     00c0fbc4     00000000    
php5ts!execute+31d     02102b20     02042d00     02042d70    
php5ts!zend_execute_scripts+fe     100d800c     00000008     02042d70    
php5ts!zend_set_timeout+5e     00c0ff78     00000000     56433230    
php5ts!php_execute_script+b8     00000003     02042cf0     02041af8    
php_cgi+7825     7ffff000     00c0ffd4     77f237f5    
kernel32!BaseThreadInitThunk+e     7ffff000     7d5ab217     00000000    
ntdll!__RtlUserThreadStart+70     0040796d     7ffff000     00000000    
ntdll!_RtlUserThreadStart+1b     0040796d     7ffff000     00000000    




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



In php-cgi__PID__5380__Date__07_18_2011__Time_07_26_17PM__226__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!php_output_handler_started+6b in C:\nginx-1.0.4\php 5.4.0\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x0200777b on thread 0

Module Information 
Image Name: C:\nginx-1.0.4\php 5.4.0\php5ts.dll   Symbol Type:  Export 
Base address: 0x10000000   Time Stamp:  Thu Jul 14 13:18:37 2011  
Checksum: 0x005ec013   Comments:   
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  PHP Script Interpreter 
ISAPIFilter: False   File Version:  5.4.0alpha2 
Managed DLL: False   Internal Name:  PHP Script Interpreter 
VB DLL: False   Legal Copyright:  Copyright © 1997-2010 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:  6,04 MBytes   Product Version:  5.4.0alpha2 
Symbol File Name:  php5ts.dll   Special Build:  & 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-18 13:45 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2011-07-18 13:45 UTC] pajoye@php.net
Two things:

Why do you a TS build to be used with FastCGI? NTS is what you should use.

How did you reproduce the crash? Do you have a script (and the config you use, 
php.ini)?
 [2011-07-18 14:07 UTC] pietiatibia at gmail dot com
http://pastebin.com/raw.php?i=tWnwzjbY
it is with nts well strange it is so much unstable that I can't even run my website twice ?xD
any php script.
.ini changes:=

extension_dir = "ext"



;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_exif.dll      ; Must be after mbstring as it depends on it
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
;extension=php_oci8_11g.dll  ; Use with Oracle 11g Instant Client
;extension=php_openssl.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll

;extension=php_soap.dll
extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sqlite3.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll



Even without any extension it still crashes php 5.3.6 works just fine I think for now I will stick with it :-)
 [2011-07-18 14:24 UTC] pajoye@php.net
It is not with NTS:

php5ts!php_output_handler_started+6b
    ^^
 [2011-07-18 14:32 UTC] pietiatibia at gmail dot com
I'm pretty sure it is I'm not sure why it wants a .pdb of php5ts.dll the file does not exist in my dir .

Something is definetly wrong , I'm assuming wrong compilation(I have taken the files from here http://windows.php.net/qa/).
 [2011-07-18 14:36 UTC] pajoye@php.net
no, it is not due to wrong compilation as the pdb are strongly linked to their 
respective binaries.
 [2011-07-18 14:51 UTC] pietiatibia at gmail dot com
Yes I know that I have even copied the files twice:
created new phpnts5.4.0 directory.
output;
http://pastebin.com/QZh3tawN

for some reason it still wants to get some files from old directory which is php 5.4.0.

C:\nginx-1.0.4\phpnts5.4.0>php-cgi.exe -b 127.0.0.1:9000

no idea what's going on ^^
 [2011-07-18 14:55 UTC] pietiatibia at gmail dot com
Sorry I think here are all crashes that happened to php5-cgi process
here is the proper :
 Please follow up with the vendor The PHP Group for C:\nginx-1.0.4\phpnts5.4.0\php5.dll
 [2011-07-18 15:00 UTC] pietiatibia at gmail dot com
It is the proper single log first time with debug diagnostic tools had to manually delete prevovious logs:
http://pastebin.com/raw.php?i=qKzJyApN
 [2011-07-20 10:58 UTC] pietiatibia at gmail dot com
So can anybody confirm that or it's just me?
 [2011-07-20 11:05 UTC] pajoye@php.net
As I told you, you are mixing the bins and using TS builds for fastcgi. Fixing 
your install should do it.
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue May 17 15:03:34 2022 UTC