Raised This Month: $12 Target: $400
 3% 

SteamTools (v1.2.0)


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-11-2015 , 05:09   Re: SteamTools (v1.0.0)
Reply With Quote #11

In the server log, are you sure you don't have message starting with [STEAMTOOLS], like "[STEAMTOOLS] Failed to get steamclient interface" ?

Looks like it crashes when it adds a new hook, and at this point, this is likely iSteamClient pointer could not be retrieved.

Will post here a debug version.

EDIT: Ah, I might know why, using a wrong interface version for ISteamClient and unless you use a more recent API, it will crash under linux. I should have used the default version (will fix soon)
__________________

Last edited by Arkshine; 04-11-2015 at 10:18.
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-11-2015 , 11:55   Re: SteamTools (v1.0.1)
Reply With Quote #12

A small update.

Essentially module was using a newer interface of ISteamGameServer and this could lead to a crash under linux. It uses now the default version.
Don't forget to stop server before updating.

https://github.com/Arkshine/SteamToo...ses/tag/v1.0.1

zeus, tell me if it crashes again with 1.0.1.
__________________
Arkshine is offline
zeus
Senior Member
Join Date: Jul 2008
Old 04-11-2015 , 12:19   Re: SteamTools (v1.0.1)
Reply With Quote #13

Will test after the Easter passes.

Happy Easter !
zeus is offline
zeus
Senior Member
Join Date: Jul 2008
Old 04-14-2015 , 07:34   Re: SteamTools (v1.0.1)
Reply With Quote #14

v1.0.1 Also crashes

Code:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./hlds_linux -console -master +ip 192.168.2.99 +port 27010 -game cstrike -dir .'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf6ecbc3f in SourceHook::CSourceHookImpl::AddHookNew(int, SourceHook::ISourceHook::AddHookMode, void*, int, int (*)(SourceHook::HookManagerAction, SourceHook::IHookManagerInfo*), SourceHook::ISHDelegate*, bool) () from cstrike/addons/amxmodx/modules/steamtools_amxx_i386.so
#0  0xf6ecbc3f in SourceHook::CSourceHookImpl::AddHookNew(int, SourceHook::ISourceHook::AddHookMode, void*, int, int (*)(SourceHook::HookManagerAction, SourceHook::IHookManagerInfo*), SourceHook::ISHDelegate*, bool) () from cstrike/addons/amxmodx/modules/steamtools_amxx_i386.so
#1  0x00000000 in ?? ()
No symbol table info available.
From        To          Syms Read   Shared Object Library
0xf76c7914  0xf770dc78  Yes         ./libstdc++.so.6
0xf7662ad0  0xf766396c  Yes (*)     /lib/i386-linux-gnu/libdl.so.2
0xf7649840  0xf76564a7  Yes (*)     /lib/i386-linux-gnu/libpthread.so.0
0xf74ae420  0xf75dfb6e  Yes (*)     /lib/i386-linux-gnu/libc.so.6
0xf7455600  0xf748370b  Yes (*)     /lib/i386-linux-gnu/libm.so.6
0xf7757860  0xf776f7ac  Yes (*)     /lib/ld-linux.so.2
0xf743de04  0xf744d490  Yes         ./libgcc_s.so.1
0xf6f21490  0xf6fa524c  Yes         /media/george/67cb252d-6346-4a75-992f-5deed92450ee/SteamCMD/HLDS/engine_i486.so
0xf76705c0  0xf767ad74  Yes (*)     ./libsteam_api.so
0xf6eb69b0  0xf6eba0ca  Yes (*)     /lib/i386-linux-gnu/librt.so.1
0xf6e9da00  0xf6eaa1b8  Yes         /media/george/67cb252d-6346-4a75-992f-5deed92450ee/SteamCMD/HLDS/filesystem_stdio.so
0xf5df8f80  0xf69f94f0  Yes (*)     /home/george/.local/share/Steam/linux32/steamclient.so
0xf5cc6f90  0xf5cec230  Yes (*)     /home/george/.local/share/Steam/linux32/crashhandler.so
0xf33ccd00  0xf3471ebc  Yes (*)     /media/george/67cb252d-6346-4a75-992f-5deed92450ee/SteamCMD/HLDS/./cstrike/addons/metamod/metamod.so
0xf316e350  0xf3292340  Yes         /media/george/67cb252d-6346-4a75-992f-5deed92450ee/SteamCMD/HLDS/cstrike/dlls/cs.so
0xf302e420  0xf3081ad8  Yes (*)     /media/george/67cb252d-6346-4a75-992f-5deed92450ee/SteamCMD/HLDS/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
0xf6ec84a0  0xf6ed4288  Yes (*)     cstrike/addons/amxmodx/modules/steamtools_amxx_i386.so
(*): Shared library is missing debugging information.
Stack level 0, frame at 0xff960d44:
 eip = 0xf6ecbc3f in SourceHook::CSourceHookImpl::AddHookNew(int, SourceHook::ISourceHook::AddHookMode, void*, int, int (*)(SourceHook::HookManagerAction, SourceHook::IHookManagerInfo*), SourceHook::ISHDelegate*, bool); saved eip = 0x0
 called by frame at 0x0
 Arglist at 0xff960d3c, args: 
 Locals at 0xff960d3c, Previous frame's sp is 0xff960d44
 Saved registers:
  ebx at 0xff960d38, ebp at 0xff960d3c, esi at 0xff960d30, edi at 0xff960d34, eip at 0xff960d40
End of crash report
zeus is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-14-2015 , 08:07   Re: SteamTools (v1.0.1)
Reply With Quote #15

I've no idea why SourceHook crashes, it works fine for me.

Can you try this one. It's compiled with debug and with some more flags.

Ideally you would launch server like this, based on your current command: LD_LIBRARY_PATH=:. gdb --args hlds_linux -console -master +ip 192.168.2.99 +port 27010 -game cstrike -debug -dir .

When it crashes; do: bt full and paste here the while output.
Attached Files
File Type: so steamtools_amxx_i386.so (580.3 KB, 142 views)
__________________
Arkshine is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 04-14-2015 , 08:28   Re: SteamTools (v1.0.1)
Reply With Quote #16

Quote:
Originally Posted by Arkshine View Post

When it crashes; do: bt full and paste here the while output.
mmm
This is the backtrace Arkshine!

Quote:
#0 0xf6ecbc3f in SourceHook::CSourceHookImpl::AddHookNew(int, SourceHook::ISourceHook::AddHookMode, void*, int, int (*)(SourceHook::HookManagerAction, SourceHook::IHookManagerInfo*), SourceHook::ISHDelegate*, bool) () from cstrike/addons/amxmodx/modules/steamtools_amxx_i386.so
#0 0xf6ecbc3f in SourceHook::CSourceHookImpl::AddHookNew(int, SourceHook::ISourceHook::AddHookMode, void*, int, int (*)(SourceHook::HookManagerAction, SourceHook::IHookManagerInfo*), SourceHook::ISHDelegate*, bool) () from cstrike/addons/amxmodx/modules/steamtools_amxx_i386.so
#1 0x00000000 in ?? ()
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
zeus
Senior Member
Join Date: Jul 2008
Old 04-14-2015 , 08:35   Re: SteamTools (v1.0.1)
Reply With Quote #17

PS : Still noob at linux, still learning.

Still crashes but having a hard time with the terminal, will update asap with bt full trace

Last edited by zeus; 04-14-2015 at 08:45. Reason: i'm an idiot
zeus is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-14-2015 , 08:48   Re: SteamTools (v1.0.1)
Reply With Quote #18

@joropito, I wanted to see the full output to get more debug around param value as it doesn't help really showing it crashes when a hook is added.

@zeus, Glad it works, I'm happy it's not related to the module!
__________________
Arkshine is offline
zeus
Senior Member
Join Date: Jul 2008
Old 04-14-2015 , 08:52   Re: SteamTools (v1.0.1)
Reply With Quote #19

It loaded the first time because I did not start the server with all the params....without the +map and +maxplayers the server does not fully start. I will do the things right this time. Sorry
zeus is offline
zeus
Senior Member
Join Date: Jul 2008
Old 04-14-2015 , 09:01   Re: SteamTools (v1.0.1)
Reply With Quote #20

This is the bt full

Code:
Program received signal SIGSEGV, Segmentation fault.
0xf3887a51 in SourceHook::CSourceHookImpl::CVfnPtr::CVfnPtr (this=0xfffebf60, ptr=0xb968c456, pOneIgnore=0xf389cdc0 <g_SourceHook+44>)
    at /srv/d_cs-amx/sdk/SteamTools/public/sourcehook/sourcehook.cpp:1036
1036	/srv/d_cs-amx/sdk/SteamTools/public/sourcehook/sourcehook.cpp: No such file or directory.
(gdb) bt full
#0  0xf3887a51 in SourceHook::CSourceHookImpl::CVfnPtr::CVfnPtr (this=0xfffebf60, ptr=0xb968c456, pOneIgnore=0xf389cdc0 <g_SourceHook+44>)
    at /srv/d_cs-amx/sdk/SteamTools/public/sourcehook/sourcehook.cpp:1036
No locals.
#1  0xf3883d70 in SourceHook::CSourceHookImpl::AddHookNew (this=0xf389cd94 <g_SourceHook>, plug=0, 
    mode=SourceHook::ISourceHook::Hook_Normal, iface=0xf3838364 <TaoCrypt::AES::Td+964>, thisptr_offs=0, 
    myHookMan=0xf3893870 <__SourceHook_FHCls_ISteamClientGetISteamGameServer0::HookManPubFunc(SourceHook::HookManagerAction, SourceHook::IHookManagerInfo*)>, handler=0x8d17d30, post=false) at /srv/d_cs-amx/sdk/SteamTools/public/sourcehook/sourcehook.cpp:366
        vfp = {<SourceHook::IVfnPtr> = {_vptr$IVfnPtr = 0xf3899e38 <vtable for SourceHook::CSourceHookImpl::CVfnPtr+8>}, 
          m_Ptr = 0xb968c456, m_OrigEntry = 0x8, m_Ifaces = {m_Head = 0xf7d92708 <malloc+88>, m_Size = 0}, m_pOneIgnore = 0x77}
        adjustediface = 0xf3838364 <TaoCrypt::AES::Td+964>
        cur_vtptr = 0xb968c43e
        cur_vfnptr = 0xb968c456
        tmp = {<SourceHook::IHookManagerInfo> = {
            _vptr$IHookManagerInfo = 0xf3899e18 <vtable for SourceHook::CSourceHookImpl::CHookManagerInfo+8>}, m_Plug = 0, 
          m_Func = 0xf3893870 <__SourceHook_FHCls_ISteamClientGetISteamGameServer0::HookManPubFunc(SourceHook::HookManagerAction, SourceHook::IHookManagerInfo*)>, m_VtblOffs = 0, m_VtblIdx = 6, 
          m_Proto = 0xf389ce6c <__SourceHook_FHCls_ISteamClientGetISteamGameServer0::ms_Proto> "", 
          m_HookfuncVfnptr = 0xf389a6c8 <vtable for __SourceHook_FHCls_ISteamClientGetISteamGameServer0+8>, m_VfnPtrs = {
            m_Head = 0x8d0f5e8, m_Size = 0}, m_HookManVersion = 1}
        hmci = {m_Proto = {m_Proto = 0x8cf34d0 ""}, m_VtableOffset = 0, m_VtableIndex = 6}
        hmcl_iter = {m_This = 0x8d194c0}
        hookman = {m_This = 0x8d0fbc0}
        vfnptr_iter = {m_This = 0x8d11080}
        iface_iter = {m_This = 0x28}
        hookinfo = {handler = 0x0, paused = false, plug = 0, thisptr_offs = 0, hookid = 0}
#2  0xf3892553 in __SourceHook_FHAddISteamClientGetISteamGameServer (iface=0xf3838364 <TaoCrypt::AES::Td+964>, post=false, handler=...)
    at /srv/d_cs-amx/sdk/SteamTools/module/sw_gameserver.cpp:56
        mfi = {isVirtual = true, thisptroffs = 0, vtblindex = 6, vtbloffs = 0}
#3  0xf38932bd in SteamToolsGameServer::AddHooks (this=0x8071540) at /srv/d_cs-amx/sdk/SteamTools/module/sw_gameserver.cpp:85
---Type <return> to continue, or q <return> to quit---
No locals.
#4  0xf389155e in Hook_SteamGameServer_Init (unIP=3232236131, usPort=26900, usGamePort=27010, usSpectatorPort=65535, usQueryPort=1, 
    eServerMode=4152934016, pchGameDir=0xf3d361a4 " \240\020", pchVersionString=0xf3c6b819 "\211D$\034\213\253\254\377\377\377\213m")
    at /srv/d_cs-amx/sdk/SteamTools/module/sw_detours.cpp:22
        result = false
#5  0xf7819252 in CSteam3Server::Activate (this=0x8cfaf90) at ../engine/sv_steam3.cpp:448
        usPort = <optimized out>
        iPort = <optimized out>
        unIP = 3232236131
        unFlags = 31
        gamedir = "cstrike\000l\302\376\377\f_\221\363YӦ��\363\000\000\000\000\004\303\376\377\260\230\320\b\321\006\000\000H=\320\bz\000\000\000H=\320\bz\000\000\000z\000\000\000\360\317\316\b\000`\354\367 d\354\367f\000\000\000\350\302\376\377\b'\331\367OM\262\363\377\a\000\000\266\247\261\363\000\000\200?\267&\331\367\364\017\375\367\030\000\000\000\250\342\370\367\030\000\000\000\020'\000\000\250\000\000\000@~\005\b\350\302\376\377\255\227\365\367\002\000\000\000(J\360\367`\217\321\bf\000\000\000(\303\376\377\301\214\357\367\000\000\000\000ȏ\321\b`\217\321\b$J\360\367\f\000\000\000$J\360\367\024\260\317\b\000\000\000\000 d\354\367\000\000\001\000h"...
        eSMode = eServerModeNoAuthentication
        uPort = <optimized out>
        nAppID = <optimized out>
#6  0xf78198a4 in Steam_Activate () at ../engine/sv_steam3.cpp:972
No locals.
#7  0xf77f14d0 in SV_ActivateServer (runPhysics=1) at ../engine/sv_main.c:7143
        i = <optimized out>
        data = '\000' <repeats 31248 times>...
        msg = {buffername = 0xf783281f "Activate Server", flags = 0, data = 0xfffec3ac "", maxsize = 65536, cursize = 0}
#8  0xf77c5699 in Host_Map (mapName=0xffffc550 "de_dust2", loadGame=false, mapstring=<optimized out>, bIsDemo=<optimized out>)
    at ../engine/host_cmd.c:1288
No locals.
#9  0xf77c7cd9 in Host_Map (loadGame=false, mapName=0xffffc550 "de_dust2", mapstring=0xffffc510 "map de_dust2 \n", bIsDemo=<optimized out>)
    at ../engine/host_cmd.c:1271
---Type <return> to continue, or q <return> to quit---
        bIsDemo = false
#10 Host_Map_f () at ../engine/host_cmd.c:1442
        i = <optimized out>
        mapstring = "map de_dust2 \n\000\367d\203\324\363\\\305\377\377;\305\377\377\304\305\377\377|\305\377\377\320]^\364\r\000\000\000\337ā\367\304\305\377\377|\305\377\377[\305\377\377\235\256", <incomplete sequence \367>
        name = "de_dust2", '\000' <repeats 55 times>
#11 0xf77a928d in Cmd_ExecuteString (text=0xffffc5c0 "map de_dust2 ", src=<optimized out>) at ../engine/cmd.c:1150
        cmd = 0xf4547358
        a = <optimized out>
        src = src_command
#12 Cbuf_Execute () at ../engine/cmd.c:242
        i = <optimized out>
        text = <optimized out>
        line = "map de_dust2 \000apcycle.txt \000ments\r\000nt\r\000\377\377\250\v\203\367\004\312\377\377STEAM Auth Server\r\n\000<\307\377\377<\307\377\377<\307\377\377<\307\377\377B\307\377\377;\310\377\377<\307\377\377;\310\377\377", '\000' <repeats 20 times>, "\001\000\000\000\000\000\000\000p\274\006\b\000\000\000\000\000\000\000\000^\320\330\367\003\000\000\000\340V\354\367\377\377\377\377^\312\330\367p\274\006\b\000\000\000\000\377\377\377\377n\317\330\367\300\306\377\377\000`\354\367\300\306\377\377\220\341\330\061\300\306\377\377\034\310\377\377"...
        quotes = <optimized out>
        amount = 13
#13 0xf77c2778 in Host_InitializeGameDLL () at ../engine/host_cmd.c:221
No locals.
#14 0xf77e2707 in Sys_InitGame (
    lpOrgCmdLine=0x80570e8 "-console -master +ip 192.168.2.99 +port 27010 -game cstrike -dir . +mapcyclefile mapcycle.txt +map de_dust2 +maxplayers 32 +exec server.cfg -sys_ticrate 1000 -zone 8192 -pingboost 3 -tos -secure 1 -nu"..., pBaseDir=0x804ca52 ".", pwnd=0x0, 
    bIsDedicated=1) at ../engine/sys_dll2.cpp:806
No locals.
#15 0xf77e497a in CEngine::Load (this=0xf787b6a0 <g_Engine>, dedicated=true, basedir=0x804ca52 ".", 
    cmdline=0x80570e8 "-console -master +ip 192.168.2.99 +port 27010 -game cstrike -dir . +mapcyclefile mapcycle.txt +map de_dust2 +maxplaye---Type <return> to continue, or q <return> to quit---
rs 32 +exec server.cfg -sys_ticrate 1000 -zone 8192 -pingboost 3 -tos -secure 1 -nu"...) at ../engine/sys_engine.cpp:193
        success = false
#16 0xf77e2205 in CDedicatedServerAPI::Init (this=0xf7876d00 <__g_CDedicatedServerAPI_singleton>, basedir=0x804ca52 ".", 
    cmdline=0x80570e8 "-console -master +ip 192.168.2.99 +port 27010 -game cstrike -dir . +mapcyclefile mapcycle.txt +map de_dust2 +maxplayers 32 +exec server.cfg -sys_ticrate 1000 -zone 8192 -pingboost 3 -tos -secure 1 -nu"..., launcherFactory=
    0x8049dd0 <CreateInterfaceLocal(char const*, int*)>, filesystemFactory=0xf7729ad0 <CreateInterface(char const*, int*)>)
    at ../engine/sys_dll2.cpp:1189
No locals.
#17 0x08049bcf in RunServer () at ../dedicated/sys_ded.cpp:646
        nInitEngine = <optimized out>
        iret = <optimized out>
        engineFactory = <optimized out>
#18 0x08049472 in main (argc=30, argv=0xffffcd84) at ../dedicated/sys_ded.cpp:1146
        pPingType = 0x8052c40 <CCommandLine::CheckParm(char const*, char**)::sz> "3"
        fsmodule = 0x804ca14 "filesystem_stdio.so"

Last edited by zeus; 04-14-2015 at 09:05. Reason: was not full...now it is
zeus is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode