php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72961 yaf框架中使用yar出现BUG
Submitted: 2016-08-29 07:15 UTC Modified: 2016-08-29 09:57 UTC
From: 252629505 at qq dot com Assigned:
Status: Open Package: yaf (PECL)
PHP Version: 7.0.10 OS: windows 7旗舰版64位
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: 252629505 at qq dot com
New email:
PHP Version: OS:

 

 [2016-08-29 07:15 UTC] 252629505 at qq dot com
Description:
------------
apache2.4.18 32位版本
php7.0.10 x86版本
yaf3.0.3 x86版本
yar2.0.0 x86版本

经测试在无任务框架的代码中使用yar_client来调用yar服务端功能一切正常,在yaf框架中调用则出现:
无法访问此网站
连接已重置。 
ERR_CONNECTION_RESET


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-29 07:45 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2016-08-29 07:45 UTC] laruence@php.net
看看coredump出来的backtrace是啥, 贴出来

thanks
 [2016-08-29 08:01 UTC] 252629505 at qq dot com
-Status: Feedback +Status: Open
 [2016-08-29 08:01 UTC] 252629505 at qq dot com
windows环境也可以coredump吗?
 [2016-08-29 08:38 UTC] 252629505 at qq dot com
以下是我从Microsoft Visual Studio 2008截取的调试信息,如果需要dump文件我可以发你邮箱
异常:
httpd.exe 中的 0x7362319d 处未处理的异常: 0xC0000005: 读取位置 0x00000008 时发生访问冲突

调用堆栈:
>	php_yaf.dll!6a5d319d() 	
 	[下面的框架可能不正确和/或缺失,没有为 php_yaf.dll 加载符号]	
 	php7ts.dll!ZEND_DO_FCALL_SPEC_HANDLER(_zend_execute_data * execute_data=0x00000000)  行854	C
 	php7ts.dll!execute_ex(_zend_execute_data * ex=0x510158d0)  行417 + 0x4 字节	C
 	php7ts.dll!zend_execute(_zend_op_array * op_array=0x050610c0, _zval_struct * return_value=0x0488d7fc)  行459	C
 	php7ts.dll!zend_execute_scripts(int type=8, _zval_struct * retval=0x00000000, int file_count=3, ...)  行1427 + 0x9 字节	C
 	php7ts.dll!php_execute_script(_zend_file_handle * primary_file=0x00fef6e8)  行2494 + 0x10 字节	C
 	php7apache2_4.dll!php_handler(request_rec * r=0x018b0ce0)  行678 + 0x1a 字节	C
 	libhttpd.dll!73ed41b5() 	
 	libhttpd.dll!73ed358d() 	
 	libhttpd.dll!73ee2d25() 	
 	mod_rewrite.so!73c7464d() 	
 	libhttpd.dll!73ed41b5() 	
 	libhttpd.dll!73ed358d() 	
 	libhttpd.dll!73ee2f24() 	
 	libhttpd.dll!73ee2fa1() 	
 	libhttpd.dll!73eddf67() 	
 	libhttpd.dll!73ed6485() 	
 	libhttpd.dll!73efe95e() 	
 	kernel32.dll!752e338a() 	
 	ntdll.dll!77d09a02() 	
 	ntdll.dll!77d099d5() 	




异常发生处十六进制:
73623141  movq        mmword ptr [esp+5Ch],xmm0 
73623147  mov         dword ptr [esp+34h],0 
7362314F  mov         dword ptr [esp+38h],0 
73623157  movq        mmword ptr [esp+3Ch],xmm0 
7362315D  mov         dword ptr [esp+64h],0 
73623165  mov         dword ptr [esp+68h],0 
7362316D  movq        mmword ptr [esp+6Ch],xmm0 
73623173  call        dword ptr ds:[73642234h] 
73623179  add         esp,10h 
7362317C  cmp         eax,0FFFFFFFFh 
7362317F  je          73623709 
73623185  push        1    
73623187  push        4    
73623189  push        73643880h 
7362318E  push        dword ptr ds:[7364AC1Ch] 
73623194  call        dword ptr ds:[73642248h] 
7362319A  add         esp,10h 
7362319D  cmp         byte ptr [eax+8],1    ----此处
736231A1  je          736231C5 
736231A3  push        736439C0h 
736231A8  push        200h 
736231AD  call        73629A40 
736231B2  mov         eax,dword ptr [esp+74h] 
736231B6  add         esp,8 
736231B9  mov         dword ptr [eax+8],2 
736231C0  pop         esi  
736231C1  add         esp,60h 
736231C4  ret              
736231C5  mov         ecx,dword ptr [esp+8] 
736231C9  lea         eax,[esi+10h] 
736231CC  push        ebx  
736231CD  push        ebp  
736231CE  xor         ebp,ebp 
736231D0  cmp         dword ptr [eax],ebp 
736231D2  push        edi  
736231D3  cmovne      ebp,eax
 [2016-08-29 09:03 UTC] laruence@php.net
你能给我讲下重现的方法么, 我试试本地重现, 如果有可以重现的小项目集, 也可以打包发到我的邮箱(我会对你的代码保密)

thanks
 [2016-08-29 09:54 UTC] 252629505 at qq dot com
用QQ邮箱和网易邮箱发给你都被退信啦,提示,未知原因 
host php-smtp2.php.net[72.52.91.12] said: 550 5.7.1 Looks like spam to me. (in reply to end of DATA command),有什么别的办法吗
 [2016-08-29 09:57 UTC] laruence@php.net
laruence at gmail.com
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 01:01:25 2019 UTC