This commit is contained in:
lq 2024-05-22 17:48:54 +08:00
parent 8938ce9cbe
commit 3729765d0e
3 changed files with 52 additions and 48 deletions

View File

@ -1 +1 @@
1940 1450

View File

@ -1,5 +1,7 @@
<?php <?php
namespace App\controller; namespace App\controller;
use App\model\User; use App\model\User;
use Core\annotations\Bean; use Core\annotations\Bean;
use Core\annotations\Value; use Core\annotations\Value;
@ -39,20 +41,22 @@ class UserController
//$this->db->select('select sleep(1)'); //$this->db->select('select sleep(1)');
//User::query('select sleep(3)'); //User::query('select sleep(3)');
$user = User::first(); $user = User::first();
return ['uid'=>33,'username'=>$user]; return ['uid' => 33, 'username' => $user];
} }
/** /**
* @RequestMapping(value="/user/{uid:\d+}") * @RequestMapping(value="/user/{uid:\d+}")
*/ */
public function user(int $uid,Request $request, Response $response) public function user(int $uid, Request $request, Response $response)
{ {
$user = $this->db->select('select * from eb_user where id = 1'); //$user = $this->db->select('select * from eb_user where id = 1');
return ['uid'=>$uid,'username'=>$user]; return ['code' => 1, 'uid' => $uid];
} }
/** /**
* @RequestMapping(value="/redirect") * @RequestMapping(value="/redirect")
*/ */
public function redirect(Request $request,Response $response) public function redirect(Request $request, Response $response)
{ {
$response->writeRedirect('http://www.baihand.com'); $response->writeRedirect('http://www.baihand.com');
} }
@ -71,7 +75,7 @@ class UserController
* @Lock(prefix="lock",key="#0") * @Lock(prefix="lock",key="#0")
* @RequestMapping(value="/user/lock/{uid:\d+}") * @RequestMapping(value="/user/lock/{uid:\d+}")
*/ */
public function lock( Request $request, $uid, Response $response) public function lock(Request $request, $uid, Response $response)
{ {
return $this->db->table('user')->get(); return $this->db->table('user')->get();
} }

View File

@ -1,19 +1,19 @@
Exception: STATUS_ACCESS_VIOLATION at rip=0001008C745A Exception: STATUS_ACCESS_VIOLATION at rip=0001008C745A
rax=00000001008308E0 rbx=0000000A00535CD0 rcx=0000000000000000 rax=00000001008308E0 rbx=0000000A00535FF0 rcx=0000000000000000
rdx=0000000000000000 rsi=00000007FFFF8F10 rdi=0000000000000060 rdx=0000000000000000 rsi=00000007FFFF8F10 rdi=0000000000000068
r8 =0000000000000000 r9 =0000000A0012EEA8 r10=0000000800000000 r8 =0000000000000000 r9 =0000000A0012EEA8 r10=0000000800000000
r11=00000003FF76D542 r12=0000000000000000 r13=00006FFFFFDD0008 r11=00000003FF76D542 r12=0000000000000000 r13=00006FFFFFDD0008
r14=00000007FFFF8FA0 r15=0000000100B7F110 r14=00000007FFFF8FA0 r15=0000000100B7F110
rbp=00000001015C881F rsp=00000007FFFF8E20 rbp=00000001015C881F rsp=00000007FFFF8E20
program=D:\software\swoole-cli\bin\swoole-cli.exe, pid 354, thread main program=D:\software\swoole-cli\bin\swoole-cli.exe, pid 1450, thread main
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace: Stack trace:
Frame Function Args Frame Function Args
0001015C881F 0001008C745A (000000000058, 0001015C881F, 0001015C87F0, 6FFFFFDD0008) swoole-cli.exe+0x4C745A 0001015C881F 0001008C745A (000000000050, 0001015C881F, 0001015C87F0, 6FFFFFDD0008) swoole-cli.exe+0x4C745A
0001015C881F 0001008CED83 (000A00000012, 000000000226, 000A0052DEE8, 000000000000) swoole-cli.exe+0x4CED83 0001015C881F 0001008CED83 (000A00000012, 000000000020, 000A0052E018, 000000000000) swoole-cli.exe+0x4CED83
0001015C881F 00010090A9F4 (7FFDE0E60453, 000000000088, 000000002028, 000100911940) swoole-cli.exe+0x50A9F4 0001015C881F 00010090A9F4 (7FFDE0E60453, 000000000088, 000000002028, 000100911940) swoole-cli.exe+0x50A9F4
00010171FBA0 000100922BC9 (000100922940, 00000000000C, 6FFFFFE134C0, 6FFFFF601B78) swoole-cli.exe+0x522BC9 00010171FBA0 000100922BC9 (000100922940, 00000000000C, 6FFFFFE134C0, 6FFFFF617C58) swoole-cli.exe+0x522BC9
000000200308 0001009231A2 (000100B7F030, 000A003C49E0, 000100A6A343, 000A00416668) swoole-cli.exe+0x5231A2 000000200308 0001009231A2 (000100B7F030, 000A003C49E0, 000100A6A343, 000A00416798) swoole-cli.exe+0x5231A2
000000200308 00010091AA75 (6FFFFFFB4710, 6FFFFFE132C0, 6FFFFFF04008, 6FFFFFE13350) swoole-cli.exe+0x51AA75 000000200308 00010091AA75 (6FFFFFFB4710, 6FFFFFE132C0, 6FFFFFF04008, 6FFFFFE13350) swoole-cli.exe+0x51AA75
000000200308 0001008A4A4A (0007FFFF9320, 000000000003, 000000000008, 6FFFFFE13330) swoole-cli.exe+0x4A4A4A 000000200308 0001008A4A4A (0007FFFF9320, 000000000003, 000000000008, 6FFFFFE13330) swoole-cli.exe+0x4A4A4A
000000200308 000100A4BA74 (0001017238E0, 6FFFFFE77D00, 0001009F00C6, 000000000000) swoole-cli.exe+0x64BA74 000000200308 000100A4BA74 (0001017238E0, 6FFFFFE77D00, 0001009F00C6, 000000000000) swoole-cli.exe+0x64BA74
@ -21,65 +21,65 @@ Frame Function Args
0007FFFF9320 0001009E2A2B (0001009CA40D, 000000000000, 000000000000, 0007FFFFB810) swoole-cli.exe+0x5E2A2B 0007FFFF9320 0001009E2A2B (0001009CA40D, 000000000000, 000000000000, 0007FFFFB810) swoole-cli.exe+0x5E2A2B
0007FFFFA380 00010097E3E3 (00010097C6F0, 000100BBCEE8, 00010097C6E0, 000700000000) swoole-cli.exe+0x57E3E3 0007FFFFA380 00010097E3E3 (00010097C6F0, 000100BBCEE8, 00010097C6E0, 000700000000) swoole-cli.exe+0x57E3E3
000000000000 000100AC434D (0007FFFFCC30, 000000000025, 0000FF52424B, 0007FFFFCA84) swoole-cli.exe+0x6C434D 000000000000 000100AC434D (0007FFFFCC30, 000000000025, 0000FF52424B, 0007FFFFCA84) swoole-cli.exe+0x6C434D
000000000000 000100BDD758 (0007FFFFCC30, 000000000000, 7FFD301A8035, 0007FFFFCC50) swoole-cli.exe+0x7DD758 000000000000 000100BDD758 (0007FFFFCC30, 000000000000, 7FFD30088035, 0007FFFFCC50) swoole-cli.exe+0x7DD758
0007FFFFCD30 7FFD301A80A1 (000000000000, 000000000000, 000000000000, 000000000000) cygwin1.dll+0x80A1 0007FFFFCD30 7FFD300880A1 (000000000000, 000000000000, 000000000000, 000000000000) cygwin1.dll+0x80A1
0007FFFFFFF0 7FFD301A5C86 (000000000000, 000000000000, 000000000000, 000000000000) cygwin1.dll+0x5C86 0007FFFFFFF0 7FFD30085C86 (000000000000, 000000000000, 000000000000, 000000000000) cygwin1.dll+0x5C86
0007FFFFFFF0 7FFD301A5D34 (000000000000, 000000000000, 000000000000, 000000000000) cygwin1.dll+0x5D34 0007FFFFFFF0 7FFD30085D34 (000000000000, 000000000000, 000000000000, 000000000000) cygwin1.dll+0x5D34
End of stack trace End of stack trace
Loaded modules: Loaded modules:
000100400000 swoole-cli.exe 000100400000 swoole-cli.exe
7FFDE0E50000 ntdll.dll 7FFDE0E50000 ntdll.dll
7FFDDF570000 KERNEL32.DLL 7FFDDF570000 KERNEL32.DLL
7FFDDE170000 KERNELBASE.dll 7FFDDE170000 KERNELBASE.dll
0003F3540000 cygbrotlienc-1.dll
0003F38F0000 cygMagickWand-7.Q16HDRI-7.dll
0003F3A30000 cygMagickCore-7.Q16HDRI-7.dll 0003F3A30000 cygMagickCore-7.Q16HDRI-7.dll
0003F38F0000 cygMagickWand-7.Q16HDRI-7.dll
0003FFE60000 cygbrotlidec-1.dll 0003FFE60000 cygbrotlidec-1.dll
0003F3540000 cygbrotlienc-1.dll
7FFDDF190000 ADVAPI32.dll 7FFDDF190000 ADVAPI32.dll
7FFDE05C0000 msvcrt.dll
0003F33C0000 cygcares-2.dll
0003FFB60000 cygcrypto-1.1.dll
7FFDDF410000 sechost.dll
0003FFE40000 cygbz2-1.dll 0003FFE40000 cygbz2-1.dll
7FFDDE520000 bcrypt.dll 0003F33C0000 cygcares-2.dll
7FFDDEB80000 RPCRT4.dll 7FFDE05C0000 msvcrt.dll
0003FFAB0000 cygcurl-4.dll 0003FFAB0000 cygcurl-4.dll
7FFDE03D0000 GDI32.dll 7FFDDF410000 sechost.dll
7FFD301A0000 cygwin1.dll 7FFDDE520000 bcrypt.dll
0003FFB60000 cygcrypto-1.1.dll
7FFDDEB80000 RPCRT4.dll
0003F41C0000 cygexslt-0.dll 0003F41C0000 cygexslt-0.dll
7FFDE03D0000 GDI32.dll
7FFDDE550000 win32u.dll 7FFDDE550000 win32u.dll
7FFD30080000 cygwin1.dll
7FFDDE580000 gdi32full.dll 7FFDDE580000 gdi32full.dll
7FFDDE7C0000 msvcp_win.dll
0003F2980000 cygfreetype-6.dll 0003F2980000 cygfreetype-6.dll
0003FF580000 cyggmp-10.dll 0003FF580000 cyggmp-10.dll
0003F23D0000 cygiconv-2.dll 7FFDDE7C0000 msvcp_win.dll
7FFDDE6A0000 ucrtbase.dll 7FFDDE6A0000 ucrtbase.dll
0003F23D0000 cygiconv-2.dll
7FFDDEF30000 USER32.dll 7FFDDEF30000 USER32.dll
0003F20F0000 cygicui18n72.dll
0003FF4F0000 cygicuio72.dll 0003FF4F0000 cygicuio72.dll
0003F20F0000 cygicui18n72.dll
0003F1F30000 cygicuuc72.dll 0003F1F30000 cygicuuc72.dll
0003EEAE0000 cygjpeg-8.dll
0003EE7B0000 cygonig-5.dll 0003EE7B0000 cygonig-5.dll
0003EE570000 cygpng16-16.dll 0003EEAE0000 cygjpeg-8.dll
0003FE600000 cygreadline7.dll
0003F5940000 cygsqlite3-0.dll 0003F5940000 cygsqlite3-0.dll
0003FE470000 cygssl-1.1.dll 0003FE600000 cygreadline7.dll
0003EE570000 cygpng16-16.dll
0003FDF20000 cygxml2-2.dll 0003FDF20000 cygxml2-2.dll
0003FE470000 cygssl-1.1.dll
0003F4180000 cygxslt-1.dll 0003F4180000 cygxslt-1.dll
0003EDC80000 cygyaml-0-2.dll
0003FDF00000 cygz.dll 0003FDF00000 cygz.dll
0003EDC80000 cygyaml-0-2.dll
0003ED690000 cygzip-5.dll 0003ED690000 cygzip-5.dll
0003FF760000 cyggcc_s-seh-1.dll 0003FF760000 cyggcc_s-seh-1.dll
0003FF540000 cyggomp-1.dll 0003FF540000 cyggomp-1.dll
0003FE290000 cygstdc++-6.dll
0003F37B0000 cygX11-6.dll 0003F37B0000 cygX11-6.dll
0003FFE80000 cygbrotlicommon-1.dll 0003FE290000 cygstdc++-6.dll
0003F3730000 cygXext-6.dll 0003F3730000 cygXext-6.dll
0003F3420000 cygcairo-2.dll 0003F3420000 cygcairo-2.dll
0003F3380000 cygcgraph-6.dll 0003F3380000 cygcgraph-6.dll
0003F3160000 cygdjvulibre-21.dll 0003F3160000 cygdjvulibre-21.dll
0003F2F20000 cygfftw3-3.dll 0003F2F20000 cygfftw3-3.dll
0003F2B80000 cygfontconfig-1.dll 0003F2B80000 cygfontconfig-1.dll
0003FFE80000 cygbrotlicommon-1.dll
0003F2AE0000 cygfpx-1.dll 0003F2AE0000 cygfpx-1.dll
0003F2590000 cygglib-2.0-0.dll 0003F2590000 cygglib-2.0-0.dll
0003F2520000 cyggobject-2.0-0.dll 0003F2520000 cyggobject-2.0-0.dll
@ -100,40 +100,40 @@ Loaded modules:
0003EDD10000 cygwebpmux-3.dll 0003EDD10000 cygwebpmux-3.dll
0003FF730000 cyggsasl-18.dll 0003FF730000 cyggsasl-18.dll
0003FF4A0000 cyggssapi_krb5-2.dll 0003FF4A0000 cyggssapi_krb5-2.dll
0003FEF80000 cyglber-2.dll
0003FE750000 cygidn2-0.dll 0003FE750000 cygidn2-0.dll
0003FEE60000 cygldap-2.dll 0003FEF80000 cyglber-2.dll
0003FE710000 cygnghttp2-14.dll 0003FE710000 cygnghttp2-14.dll
0003FE6B0000 cygpsl-5.dll 0003FE6B0000 cygpsl-5.dll
0003FE500000 cygssh2-1.dll
0003FEE60000 cygldap-2.dll
0003FDE50000 cygzstd-1.dll 0003FDE50000 cygzstd-1.dll
0003FF640000 cyggcrypt-20.dll 0003FF640000 cyggcrypt-20.dll
0003FE500000 cygssh2-1.dll
0003EA300000 cygicudata72.dll 0003EA300000 cygicudata72.dll
0003FE9B0000 cygncursesw-10.dll 0003FE9B0000 cygncursesw-10.dll
0003ED720000 cygcrypto-1.0.0.dll 0003ED720000 cygcrypto-1.0.0.dll
0003EDCE0000 cygxcb-1.dll 0003EDCE0000 cygxcb-1.dll
0003EDCC0000 cygxcb-render-0.dll
0003EE5D0000 cygpixman-1-0.dll 0003EE5D0000 cygpixman-1-0.dll
0003F3670000 cygXrender-1.dll 0003EDCC0000 cygxcb-render-0.dll
0003EDCB0000 cygxcb-shm-0.dll 0003EDCB0000 cygxcb-shm-0.dll
0003F33A0000 cygcdt-5.dll 0003F33A0000 cygcdt-5.dll
0003F3670000 cygXrender-1.dll
0003FF810000 cygexpat-1.dll 0003FF810000 cygexpat-1.dll
0003FF2E0000 cygintl-8.dll 0003FF2E0000 cygintl-8.dll
0003FE0A0000 cyguuid-1.dll 0003FE0A0000 cyguuid-1.dll
0003FE7B0000 cygpcre-1.dll 0003FE7B0000 cygpcre-1.dll
0003EE680000 cygpathplan-4.dll
0003FF7A0000 cygffi-6.dll 0003FF7A0000 cygffi-6.dll
0003F3FE0000 cygltdl-7.dll
0003F3610000 cygXt-6.dll 0003F3610000 cygXt-6.dll
0003FF370000 cygidn-12.dll
0003EE6A0000 cygpaper-1.dll 0003EE6A0000 cygpaper-1.dll
0003FF370000 cygidn-12.dll
0003F5E50000 cygtiff-7.dll 0003F5E50000 cygtiff-7.dll
0003EDE90000 cygthai-0.dll 0003EE680000 cygpathplan-4.dll
0003F3FE0000 cygltdl-7.dll
0003EE6C0000 cygpangoft2-1.0-0.dll 0003EE6C0000 cygpangoft2-1.0-0.dll
0003EDE90000 cygthai-0.dll
0003F2960000 cygfribidi-0.dll 0003F2960000 cygfribidi-0.dll
0003F5ED0000 cygharfbuzz-0.dll 0003F5ED0000 cygharfbuzz-0.dll
0003EEBC0000 cygjasper-4.dll
0003F3330000 cygcroco-0.6-3.dll 0003F3330000 cygcroco-0.6-3.dll
0003EEBC0000 cygjasper-4.dll
0003F2820000 cyggdk_pixbuf-2.0-0.dll 0003F2820000 cyggdk_pixbuf-2.0-0.dll
0003F2690000 cyggio-2.0-0.dll 0003F2690000 cyggio-2.0-0.dll
0003F3300000 cygdeflate-0.dll 0003F3300000 cygdeflate-0.dll