OnRconCommand + PHP Rcon API crash
#1

Hey guys, I've noticed server crash after calling RconCommand from website. I was trying to reproduce and figured out point that when I spam my page with F5 crash occurs quickier (sometimes it crashes instantly, sometimes it gives stack underflow, invalid instruction and it's just doing interesting things). I did following to make sure that it's not related to script of the command (returned 1 in FS):

Код:
public OnRconCommand(cmd[])
{
	return 1;
}
PHP file
Код:
<?php
    require "main/SampRconAPI.php";
    $connection = new SampRcon("127.0.0.1", 5555, "topsecret");
    if($connection->connect()) {
    $connection->Call("coins");
    $connection->close();
    }
?>
Reply
#2

crashdetect..?
Reply
#3

When I procceed to certain rcon command in gamemode, it didn't even register him even with like 30 successful calls before.
Код:
[11:11:19] Rename rcon called!
[11:11:20] Rename rcon called!
[11:11:20] Rename rcon called!
[11:11:20] Unknown command or variable:
  rename
[11:11:20] [debug] Server crashed due to an unknown error
[11:11:20] [debug] Native backtrace:
[11:11:20] [debug] #0 6dc25e2e in ?? () from plugins\crashdetect.DLL
[11:11:21] [debug] #1 6dc3a7ac in ?? () from plugins\crashdetect.DLL
[11:11:21] [debug] #2 6dc3d65a in ?? () from plugins\crashdetect.DLL
[11:11:21] [debug] #3 6d7e4b39 in ?? () from plugins\streamer.DLL
[11:11:21] [debug] #4 0046ebb0 in ?? () from samp-server.exe
[11:11:21] [debug] #5 004950d8 in ?? () from samp-server.exe
[11:11:21] [debug] #6 77b74e1e in ?? () from C:\WINDOWS\SYSTEM32\ntdll.dll
[11:11:21] [debug] #7 76efebe9 in ?? () from C:\WINDOWS\System32\KERNELBASE.dll
[11:11:21] [debug] #8 77b453e2 in ?? () from C:\WINDOWS\SYSTEM32\ntdll.dll
[11:11:21] [debug] #9 77b1be64 in ?? () from C:\WINDOWS\SYSTEM32\ntdll.dll
[11:11:21] [debug] #10 0049690e in ?? () from samp-server.exe
[11:11:21] [debug] #11 004b1acc in ?? () from samp-server.exe
[11:11:21] [debug] #12 76928654 in ?? () from C:\WINDOWS\System32\KERNEL32.DLL
[11:11:21] [debug] #13 77b24a17 in ?? () from C:\WINDOWS\SYSTEM32\ntdll.dll
[11:11:21] [debug] #14 77b49eca in ?? () from C:\WINDOWS\SYSTEM32\ntdll.dll
[11:11:21] [debug] Registers:
[11:11:21] [debug] EAX: 0019fc10 EBX: 0000009f ECX: 63737265 EDX: 0d655d00
[11:11:21] [debug] ESI: 6dc69824 EDI: 00000000 EBP: ffffffff ESP: 0019ffec
[11:11:21] [debug] EIP: 77b49eca EFLAGS: 00010282
[11:11:21] [debug] Stack:
[11:11:21] [debug] ESP+00000000: 00000000 00000000 004a34d7 002b9000
[11:11:21] [debug] ESP+00000020: 00003318 000000dc 00000000 00000020
[11:11:21] [debug] ESP+00000040: 00000034 0000017c 00000001 00000000
[11:11:21] [debug] ESP+00000060: 00000002 1a26ef4e 00000298 00000044
[11:11:21] [debug] ESP+00000080: 0000053c 0000004a 00000588 00000342
[11:11:21] [debug] ESP+000000a0: 00000900 000002fa 00000000 32ceeacd
[11:11:21] [debug] ESP+000000c0: 00000000 38505fc8 00000f70 0000005e
[11:11:21] [debug] ESP+000000e0: 00001334 00000056 0000138c 00000392
[11:11:21] [debug] ESP+00000100: 00000001 0000017c 000015dc 00000001
[11:11:21] [debug] ESP+00000120: 00000003 00001ef8 00000e8c 00000001
[11:11:21] [debug] ESP+00000140: 00000005 00003098 00000098 00000002
[11:11:21] [debug] ESP+00000160: 00000007 000031fc 000000f0 00000001
[11:11:21] [debug] ESP+00000180: 0000000b 00003314 00000004 00000001
[11:11:21] [debug] ESP+000001a0: 00000001 00000006 0000008c 00000001
[11:11:21] [debug] ESP+000001c0: 00000000 00000000 00000000 00000000
[11:11:21] [debug] ESP+000001e0: 00000000 00000002 00000024 00000038
[11:11:21] [debug] ESP+00000200: 004f0044 00530057 0057005c 006e0069
[11:11:21] [debug] ESP+00000220: 0000011c 00000044 00000164 0000025c
[11:11:21] [debug] ESP+00000240: 0000040c 00000342 00000002 2d59495b
[11:11:21] [debug] ESP+00000260: 00000003 32ceeacd 00000a80 00000042
[11:11:21] [debug] ESP+00000280: 00000df4 0000005e 00000e54 00000362
[11:11:21] [debug] ESP+000002a0: 00001210 00000392 00000006 0069004d
[11:11:21] [debug] ESP+000002c0: 00690057 0064006e 0077006f 002e0073
[11:11:21] [debug] ESP+000002e0: 0070006d 00740061 00620069 0065006c
[11:11:21] [debug] ESP+00000300: 000001d0 00000002 0000002c 000002da
[11:11:21] [debug] ESP+00000320: 00000000 00000000 00000000 00000000
[11:11:21] [debug] ESP+00000340: 00000000 000000b6 00000308 00000000
[11:11:21] [debug] ESP+00000360: 0069004d 00720063 0073006f 0066006f
[11:11:21] [debug] ESP+00000380: 002e0073 00790053 00740073 006d0065
[11:11:21] [debug] ESP+000003a0: 0065006c 0070002c 006f0072 00650063
[11:11:21] [debug] ESP+000003c0: 00740069 00630065 00750074 00650072
[11:11:21] [debug] ESP+000003e0: 00620075 0069006c 004b0063 00790065
[11:11:21] [debug] Loaded modules:
[11:11:21] [debug] 00400000 - 0051f000 samp-server.exe
[11:11:21] [debug] 77ac0000 - 77c4d000 ntdll.dll
[11:11:21] [debug] 76910000 - 769e0000 KERNEL32.DLL
[11:11:21] [debug] 76e10000 - 76fe7000 KERNELBASE.dll
[11:11:21] [debug] 74e00000 - 76133000 SHELL32.dll
[11:11:21] [debug] 744e0000 - 7459d000 msvcrt.dll
[11:11:21] [debug] 749f0000 - 74a28000 cfgmgr32.dll
[11:11:21] [debug] 743c0000 - 744d7000 ucrtbase.dll
[11:11:21] [debug] 76330000 - 763b8000 shcore.dll
[11:11:21] [debug] 74a30000 - 74aee000 RPCRT4.dll
[11:11:21] [debug] 748f0000 - 74910000 SspiCli.dll
[11:11:21] [debug] 748e0000 - 748ea000 CRYPTBASE.dll
[11:11:21] [debug] 762d0000 - 76327000 bcryptPrimitives.dll
[11:11:21] [debug] 763c0000 - 76403000 sechost.dll
[11:11:21] [debug] 777e0000 - 77a26000 combase.dll
[11:11:21] [debug] 771c0000 - 77786000 windows.storage.dll
[11:11:21] [debug] 77050000 - 770c8000 advapi32.dll
[11:11:21] [debug] 765a0000 - 765e5000 shlwapi.dll
[11:11:21] [debug] 777b0000 - 777d2000 GDI32.dll
[11:11:21] [debug] 76150000 - 762ae000 gdi32full.dll
[11:11:21] [debug] 74d80000 - 74dfc000 msvcp_win.dll
[11:11:21] [debug] 76420000 - 76595000 USER32.dll
[11:11:21] [debug] 768f0000 - 76906000 win32u.dll
[11:11:21] [debug] 762b0000 - 762be000 kernel.appcore.dll
[11:11:21] [debug] 74d30000 - 74d75000 powrprof.dll
[11:11:21] [debug] 77a30000 - 77a44000 profapi.dll
[11:11:21] [debug] 6f140000 - 6f164000 WINMM.dll
[11:11:21] [debug] 6e3f0000 - 6e3f8000 WSOCK32.dll
[11:11:21] [debug] 74cc0000 - 74d26000 WS2_32.dll
[11:11:21] [debug] 6f080000 - 6f0a3000 winmmbase.dll
[11:11:21] [debug] 74af0000 - 74b15000 IMM32.DLL
[11:11:21] [debug] 6dc20000 - 6dc70000 crashdetect.DLL
[11:11:21] [debug] 6dd80000 - 6dde9000 MSVCP100.dll
[11:11:21] [debug] 6ddf0000 - 6deaf000 MSVCR100.dll
[11:11:21] [debug] 6d7e0000 - 6d842000 streamer.DLL
[11:11:21] [debug] 70230000 - 70244000 VCRUNTIME140.dll
[11:11:21] [debug] 6e500000 - 6e56c000 MSVCP140.dll
[11:11:21] [debug] 10000000 - 1000c000 Whirlpool.DLL
[11:11:21] [debug] 67f50000 - 67feb000 MSVCR80.dll
[11:11:21] [debug] 6d790000 - 6d7de000 mysql.DLL
[11:11:21] [debug] 77cb0000 - 77d7d000 libmariadb.dll
[11:11:21] [debug] 6e9d0000 - 6e9ea000 log-core.dll
[11:11:21] [debug] 74640000 - 747c2000 CRYPT32.dll
[11:11:21] [debug] 76410000 - 7641e000 MSASN1.dll
[11:11:21] [debug] 6e660000 - 6e66a000 Secur32.dll
[11:11:21] [debug] 6e640000 - 6e651000 napinsp.dll
[11:11:21] [debug] 6d070000 - 6d086000 pnrpnsp.dll
[11:11:21] [debug] 6cdd0000 - 6cde3000 NLAapi.dll
[11:11:21] [debug] 73700000 - 73755000 mswsock.dll
[11:11:21] [debug] 71f10000 - 71fa4000 DNSAPI.dll
[11:11:21] [debug] 76140000 - 76147000 NSI.dll
[11:11:21] [debug] 74290000 - 742c0000 IPHLPAPI.DLL
[11:11:21] [debug] 6cd30000 - 6cd3c000 winrnr.dll
[11:11:21] [debug] 6cd20000 - 6cd30000 wshbth.dll
[11:11:21] [debug] 71f00000 - 71f08000 rasadhlp.dll
[11:11:21] [debug] 02a70000 - 02a7f000 sscanf.DLL
[11:11:21] [debug] 6d780000 - 6d785000 nativechecker.DLL
[11:11:21] [debug] 71eb0000 - 71efe000 fwpuclnt.dll
[11:11:21] [debug] 73660000 - 73679000 bcrypt.dll
[11:11:21] [debug] 6f990000 - 6fa09000 uxtheme.dll
[11:11:21] [debug] 76680000 - 76777000 ole32.dll
[11:11:21] [debug] 73340000 - 734ba000 PROPSYS.dll
[11:11:21] [debug] 745a0000 - 74633000 OLEAUT32.dll
[11:11:21] [debug] 770d0000 - 77152000 clbcatq.dll
[11:11:21] [debug] 0c8f0000 - 0cbc7000 OneCoreUAPCommonProxyStub.dll
[11:11:21] [debug] 73540000 - 73556000 CLDAPI.dll
[11:11:21] [debug] 73530000 - 73538000 FLTLIB.DLL
[11:11:21] [debug] 734f0000 - 7352b000 AEPIC.dll
[11:11:21] [debug] 734c0000 - 734e8000 ntmarta.dll
[11:11:21] [debug] 736b0000 - 736c3000 cryptsp.dll
[11:11:21] [debug] 6ee50000 - 6ee8d000 edputil.dll
[11:11:21] [debug] 6d880000 - 6d904000 Windows.StateRepositoryPS.dll
[11:11:21] [debug] 6ab30000 - 6acbc000 urlmon.dll
[11:11:21] [debug] 77790000 - 777a9000 imagehlp.dll
[11:11:21] [debug] 6a080000 - 6a299000 iertutil.dll
[11:11:21] [debug] 64090000 - 640ee000 msiso.dll
Reply
#4

are you use you`ve got all the plugins updated?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)