php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46736 crash when using FastCGI, but not with CGI
Submitted: 2008-12-03 11:09 UTC Modified: 2008-12-11 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: louis at steelbytes dot com Assigned:
Status: No Feedback Package: CGI/CLI related
PHP Version: 5.2.7RC5 OS: Vista SP1 x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: louis at steelbytes dot com
New email:
PHP Version: OS:

 

 [2008-12-03 11:09 UTC] louis at steelbytes dot com
Description:
------------
I have a large app that runs fine with all tested versions of PHP if I use CGI/IIS, but if I switch to FastCGI it crashes.

Reproduce code:
---------------
sorry, not yet available - it is part of a bit private projetc, I am trying to make a small code snippet to demo this crash.

Expected result:
----------------
.

Actual result:
--------------
>	php5ts.dll!zend_do_pass_param(_znode * param=0x00c0c69c, unsigned char op='B', int offset=0x00000001, void * * * tsrm_ls=0x003f2718)  Line 1609 + 0x11 bytes	C
 	php5ts.dll!zendparse(void * tsrm_ls=0x01c09f5a)  Line 749	C
 	php5ts.dll!zend_stream_stdio_reader(void * handle=0x003f2718, char * buf=0x003f2718, unsigned int len=0x012c1e48, void * * * tsrm_ls=0x00000004)  Line 28 + 0x17 bytes	C
 	php5ts.dll!zend_flush_buffer(yy_buffer_state * b=0x00c0ff88, void * * * tsrm_ls=0x00406259)  Line 6413 + 0x6 bytes	C
 	php-cgi.exe!main(int argc=0x7efde000, char * * argv=0x00c0ffd4)  Line 1318	C
 	kernel32.dll!@BaseThreadInitThunk@12()  + 0xe bytes	
 	ntdll.dll!___RtlUserThreadStart@8()  + 0x23 bytes	
 	ntdll.dll!__RtlUserThreadStart@8()  + 0x1b bytes	

		if (ARG_MAY_BE_SENT_BY_REF(function_ptr, (zend_uint) offset)) {
10014305  mov         eax,dword ptr [esi+1Ch] 
10014308  test        eax,eax 
1001430A  je          zend_do_pass_param+0DCh (1001431Ch) 
1001430C  cmp         edi,dword ptr [esi+14h] 
1001430F  ja          zend_do_pass_param+0DCh (1001431Ch) 
10014311  lea         edx,[edi+edi*2] 
10014314  xor         ecx,ecx 
10014316  mov         cl,byte ptr [eax+edx*8-6] 
1001431A  jmp         zend_do_pass_param+0E1h (10014321h) 
1001431C  xor         ecx,ecx 
1001431E  mov         cl,byte ptr [esi+20h] 
10014321  cmp         ecx,2 
10014324  jne         zend_do_pass_param+101h (10014341h) 

EAX = 71F4F120 EBX = 00C0C69C ECX = 00000000 EDX = 00000003 ESI = 01BE23E8 EDI = 00000001 EIP = 10014316 ESP = 00C0C4B4 EBP = 00000042 
EFL = 00010246 

71F4F132 = ?? 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-03 11:17 UTC] louis at steelbytes dot com
I suspect that it is related to me using dl() to load extensions (mysql,gd2,curl,sockets,mbstring)
 [2008-12-03 11:27 UTC] pajoye@php.net
Please try using the NTS version as you use FCGI. Be sure to have removed any DLL and extension from your path (or the old php.ini).
 [2008-12-03 11:59 UTC] louis at steelbytes dot com
NTS seems to fix it.  so is it just that TS is buggy? or that FastCGI is not compatible with TS?
 [2008-12-11 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 21:01:27 2024 UTC