dreamstalker / rehlds

Reverse-engineered HLDS
GNU General Public License v3.0
652 stars 167 forks source link

Crash ReHLDS + sXe Injected #256

Closed ivanmaxlogiudice closed 6 years ago

ivanmaxlogiudice commented 7 years ago

The server crash when an admin take a screenshot with the sxe injected. This did not happen when using default hlds.

Distro: CentOS release 6.8 (Final)

*** glibc detected *** ./hlds_linux: free(): invalid next size (normal): 0x0c8a6530 ***
======= Backtrace: =========
/lib/libc.so.6(+0x70c91)[0x537c91]
/lib/libc.so.6(+0x736f1)[0x53a6f1]
/home/server/cstrike/addons/sxei/dlls/sxei_mm_i386.so(+0x36c61)[0x18c9c61]
/home/server/./cstrike/addons/metamod/dlls/metamod.so(_Z22api_caller_void_args_pPKvS0_+0xa)[0x19d94a]
/home/server/./cstrike/addons/metamod/dlls/metamod.so(+0x578f)[0x19c78f]
/home/server/./cstrike/addons/metamod/dlls/metamod.so(+0x8fb6)[0x19ffb6]
/home/server/engine_i486.so(_Z9SV_RunCmdP9usercmd_si.+0x25a)[0x1007df2]
/home/server/engine_i486.so(_Z12SV_ParseMoveP8client_s+0x79e)[0x10067ce]
/home/server/engine_i486.so(_Z26SV_HandleClientMessage_apiP11IGameClientc+0x4a)[0x100d9aa]
/home/server/engine_i486.so(_ZN18IVoidHookChainImplIIP11IGameClientcEE8callNextES1_c+0x56)[0xf5d4a6]
/home/server/engine_i486.so(_Z14SV_ReadPacketsv+0x61c)[0xfc8dbc]
/home/server/engine_i486.so(_Z8SV_Framev..0+0x151)[0xfc3681]
/home/server/engine_i486.so(_Z11_Host_Framef.+0x88)[0xfc2e18]
/home/server/engine_i486.so(_Z10Host_FramefiPi.+0x6b)[0xfc2ba3]
/home/server/engine_i486.so(_ZN7CEngine12Frame_noVirtEv.+0xdd)[0xfc2a91]
/home/server/engine_i486.so(_ZN19CDedicatedServerAPI8RunFrameEv+0x20)[0xfd4760]
./hlds_linux[0x8049c65]
./hlds_linux[0x8049472]
/lib/libc.so.6(__libc_start_main+0xe6)[0x4ddd26]
./hlds_linux[0x8049589]
======= Memory map: ========
00168000-0016f000 r-xp 00000000 fd:00 266596                             /lib/librt-2.12.so
0016f000-00170000 r--p 00006000 fd:00 266596                             /lib/librt-2.12.so
00170000-00171000 rw-p 00007000 fd:00 266596                             /lib/librt-2.12.so
00171000-0018a000 r-xp 00000000 fd:02 1186620                            /home/server/filesystem_stdio.so
0018a000-0018b000 rw-p 00018000 fd:02 1186620                            /home/server/filesystem_stdio.so
0018b000-00191000 rw-p 00000000 00:00 0 
00191000-00197000 rwxp 00000000 00:00 0 
00197000-001be000 r-xp 00000000 fd:02 1316547                            /home/server/cstrike/addons/metamod/dlls/metamod.so
001be000-001c0000 r--p 00026000 fd:02 1316547                            /home/server/cstrike/addons/metamod/dlls/metamod.so
001c0000-001c1000 rw-p 00028000 fd:02 1316547                            /home/server/cstrike/addons/metamod/dlls/metamod.so
001c1000-001cb000 rw-p 00000000 00:00 0 
001cb000-001d1000 rwxp 00000000 00:00 0 
001d1000-001e8000 r-xp 00000000 fd:00 266592                             /lib/libpthread-2.12.so
001e8000-001e9000 r--p 00016000 fd:00 266592                             /lib/libpthread-2.12.so
001e9000-001ea000 rw-p 00017000 fd:00 266592                             /lib/libpthread-2.12.so
001ea000-001ec000 rw-p 00000000 00:00 0 
001ec000-001f8000 r-xp 00000000 fd:00 266584                             /lib/libnss_files-2.12.so
001f8000-001f9000 r--p 0000b000 fd:00 266584                             /lib/libnss_files-2.12.so
001f9000-001fa000 rw-p 0000c000 fd:00 266584                             /lib/libnss_files-2.12.so
001fa000-0020f000 r-xp 00000000 fd:00 266594                             /lib/libresolv-2.12.so
0020f000-00210000 ---p 00015000 fd:00 266594                             /lib/libresolv-2.12.so
00210000-00211000 r--p 00015000 fd:00 266594                             /lib/libresolv-2.12.so
00211000-00212000 rw-p 00016000 fd:00 266594                             /lib/libresolv-2.12.so
00212000-00214000 rw-p 00000000 00:00 0 
00214000-0021c000 rwxp 00000000 00:00 0 
0021c000-00230000 r-xp 00000000 fd:02 1186608                            /home/server/libgcc_s.so.1
00230000-00231000 rw-p 00013000 fd:02 1186608                            /home/server/libgcc_s.so.1
00231000-00299000 r-xp 00000000 fd:02 1315710                            /home/server/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
00299000-002a9000 rwxp 00068000 fd:02 1315710                            /home/server/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
002a9000-002b2000 r-xp 00078000 fd:02 1315710                            /home/server/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
002b2000-002b5000 rw-p 00081000 fd:02 1315710                            /home/server/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
002b5000-002e6000 rw-p 00000000 00:00 0 
002e6000-002ee000 r-xp 00000000 fd:02 1315681                            /home/server/cstrike/addons/amxmodx/modules/fun_amxx_i386.so
002ee000-002ef000 rw-p 00007000 fd:02 1315681                            /home/server/cstrike/addons/amxmodx/modules/fun_amxx_i386.so
002ef000-002f0000 rw-p 00000000 00:00 0 
002f0000-002fa000 rwxp 00000000 00:00 0 
002fa000-003c1000 r-xp 00000000 fd:02 1186600                            /home/server/libstdc++.so.6
003c1000-003c5000 r--p 000c6000 fd:02 1186600                            /home/server/libstdc++.so.6
003c5000-003c7000 rw-p 000ca000 fd:02 1186600                            /home/server/libstdc++.so.6
003c7000-003cd000 rw-p 00000000 00:00 0 
003cd000-003fe000 r-xp 00000000 fd:02 1316858                            /home/server/cstrike/addons/reunion/reunion_mm_i386.so
003fe000-003ff000 rw-p 00031000 fd:02 1316858                            /home/server/cstrike/addons/reunion/reunion_mm_i386.so
003ff000-00407000 rw-p 00000000 00:00 0 
00407000-0044d000 r-xp 00000000 fd:02 1315687                            /home/server/cstrike/addons/amxmodx/modules/fakemeta_amxx_i386.so
0044d000-0044e000 rw-p 00046000 fd:02 1315687                            /home/server/cstrike/addons/amxmodx/modules/fakemeta_amxx_i386.so
0044e000-00451000 rw-p 00000000 00:00 0 
00451000-00453000 rwxp 00000000 00:00 0 
00453000-00454000 rwxp 00000000 00:00 0 
00454000-0046c000 r-xp 00000000 fd:02 1315690                            /home/server/cstrike/addons/amxmodx/modules/cstrike_amxx_i386.so
0046c000-0046d000 rw-p 00017000 fd:02 1315690                            /home/server/cstrike/addons/amxmodx/modules/cstrike_amxx_i386.so
0046d000-0046e000 rw-p 00000000 00:00 0 
0046e000-004a7000 rwxp 00000000 00:00 0 
004a7000-004c5000 r-xp 00000000 fd:00 266561                             /lib/ld-2.12.so
004c5000-004c6000 r--p 0001e000 fd:00 266561                             /lib/ld-2.12.so
004c6000-004c7000 rw-p 0001f000 fd:00 266561                             /lib/ld-2.12.so
004c7000-00658000 r-xp 00000000 fd:00 266568                             /lib/libc-2.12.so
00658000-00659000 ---p 00191000 fd:00 266568                             /lib/libc-2.12.so.
/hlds_run: line 255:  4419 Aborted                 $HL_CMD

version

         Protocol version 48
         Exe version 1.1.2.7/Stdio (cstrike)
         Exe build: 21:15:26 Oct 19 2016 (921)
         ReHLDS API version 2.13

meta list

Currently loaded plugins:
               description      stat pend  file              vers      src   load  unlod
          [ 1] AMX Mod X        RUN   -    amxmodx_mm_i386.  v1.8.3-d  ini   Start ANY  
          [ 2] Reunion          RUN   -    reunion_mm_i386.  v0.1.73   ini   Start Never
          [ 3] VoiceTranscoder  RUN   -    VoiceTranscoder.  v2.0RC1   ini   ANY   ANY  
          [ 4] Injected         RUN   -    sxei_mm_i386.so   v9.8.1.5  ini   ANY   ANY  
          [ 5] FakeMeta         RUN   -    fakemeta_amxx_i3  v1.8.3-d  pl1   ANY   ANY  
          [ 6] Engine           RUN   -    engine_amxx_i386  v1.8.3-d  pl1   ANY   ANY  
          [ 7] Ham Sandwich     RUN   -    hamsandwich_amxx  v1.8.3-d  pl1   ANY   ANY  
          [ 8] CStrike          RUN   -    cstrike_amxx_i38  v1.8.3-d  pl1   ANY   ANY  
          [ 9] MySQL            RUN   -    mysql_amxx_i386.  v1.8.3-d  pl1   ANY   ANY  
          [10] Fun              RUN   -    fun_amxx_i386.so  v1.8.3-d  pl1   ANY   ANY  
          [11] ReAPI            RUN   -    reapi_amxx_i386.  v0.1.70   pl1   ANY   Never
          [12] CSX              RUN   -    csx_amxx_i386.so  v1.8.3-d  pl1   ANY   ANY  
         12 plugins, 12 running

amxx version

AMX Mod X 1.8.3-dev+5073 (http://www.amxmodx.org)
         Authors:
         <TAB>David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
         <TAB>Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
         <TAB>Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
         <TAB>Borja "faluco" Ferrer, Scott "DS" Ehlert
         Compiled: Oct 12 2016 14:27:34
         Built from: https://github.com/alliedmodders/amxmodx/commit/4c8ef63
         Build ID: 5073:4c8ef63
         Core mode: JIT+ASM32
NewZMLife commented 7 years ago

yes please take a action to fix it, otherwise servers protected with sXe Injected anti-cheat can't use ReHLDS

theAsmodai commented 7 years ago

I'm checked sxe binary, but can't help you. You need to contact sxe developers.

ivanmaxlogiudice commented 7 years ago

@payas can u check this?

payas commented 7 years ago

que es eso ?

On Wed, Oct 26, 2016 at 1:06 PM, Iván Lo Giudice notifications@github.com wrote:

@payas https://github.com/payas can u check this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dreamstalker/rehlds/issues/256#issuecomment-256397165, or mute the thread https://github.com/notifications/unsubscribe-auth/AAfiGQR-Ig6EYNaYF2unmYA8AOFakCP0ks5q33qNgaJpZM4KgsZM .

theAsmodai commented 7 years ago

Usually this error happens when the program tries to free already freed memory.

In-line commented 6 years ago

Closing as non active