#46736 [Com]: crash when using FastCGI, but not with CGI

From: Date: Wed, 03 Dec 2008 11:17:06 +0000
Subject: #46736 [Com]: crash when using FastCGI, but not with CGI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-131553@lists.php.net to get a copy of this message
ID: 46736 Comment by: louis at steelbytes dot com Reported By: louis at steelbytes dot com Status: Open Bug Type: CGI related Operating System: Vista SP1 x64 PHP Version: 5.2.7RC5 New Comment: I suspect that it is related to me using dl() to load extensions (mysql,gd2,curl,sockets,mbstring) Previous Comments: ------------------------------------------------------------------------ [2008-12-03 11:09:04] 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 = ?? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46736&edit=1

« previous php.bugs (#131553) next »