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

SteamTools (v1.2.0)


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-17-2017 , 10:18   Re: SteamTools (v1.1)
Reply With Quote #51

Do you have some specific or modified installation?
Did you try loading only this module and nothing else, to see there is a conflict with something else?

Module relies on engine_i386.so and libsteam_api.so. There are also checks everywhere, not sure where this could crash at startup.

Having a backtrace would likely help. If you start your server with -debug and in hoping you have "gdb" installed, you might have a debug.log file generated when server crashes.
__________________

Last edited by Arkshine; 05-17-2017 at 10:21.
Arkshine is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 05-18-2017 , 09:55   Re: SteamTools (v1.1)
Reply With Quote #52

I can't pinpoint the crash.

ReHLDS, game: valve (HLDM)
Code:
L 05/18/2017 - 13:53:58: -------- Mapchange to crossfire --------
[AMXX] Loaded 1 admin from file
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
crash_20170518135357_1.dmp[4795]: Uploading dump (out-of-process)
/tmp/dumps/crash_20170518135357_1.dmp
Segmentation fault
./hlds_run: 201: ./hlds_run: gdb: not found
email debug.log to [email protected]
Thu May 18 13:53:58 UTC 2017: Server restart in 10 seconds
crash_20170518135357_1.dmp[4795]: Finished uploading minidump (out-of-process): success = yes
crash_20170518135357_1.dmp[4795]: response: Discarded=1
crash_20170518135357_1.dmp[4795]: file ''/tmp/dumps/crash_20170518135357_1.dmp'', upload yes: ''Discarded=1''
Metamod-P 1.21p37 (no plugins except AMXX)
AMXX 1.8.3 (clean install)
__________________
gabuch2 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-18-2017 , 11:16   Re: SteamTools (v1.1)
Reply With Quote #53

Can you install "gdb" on your server? It will help generating a backtrace (in debug.log) and there is a chance it will tell where the crash happens (for debian-like dist: apt-get install gdb).
__________________
Arkshine is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 05-22-2017 , 10:07   Re: SteamTools (v1.1)
Reply With Quote #54

Code:
----------------------------------------------
CRASH: Mon May 22 14:05:08 UTC 2017
Start Line: ./hlds_linux -game valve +port (REDACTED) +map crossfire +maxplayers 16 -debug -pidfile hlds.28418.pid
[New LWP 28425]
#0  0xf6eab644 in ?? ()
End of crash report
----------------------------------------------
Code:
Segmentation fault (core dumped)
BFD: Warning: /(REDACTED)/ReHLDS/core is truncated: expected core file size >= 92872704, found: 1007616.
Cannot access memory at address 0xf77fa91c
Cannot access memory at address 0xf77fa918
Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0xff963030:
debug.cmds:1: Error in sourced command file:
Cannot access memory at address 0xff963030
__________________

Last edited by gabuch2; 05-22-2017 at 10:07.
gabuch2 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-22-2017 , 10:16   Re: SteamTools (v1.1)
Reply With Quote #55

Code:
BFD: Warning: /(REDACTED)/ReHLDS/core is truncated: expected core file size >= 92872704, found: 1007616.
Core dumps are limited to 1MB on your server, you have to increase it to get a meaningful output out of GDB.
klippy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-22-2017 , 18:52   Re: SteamTools (v1.1)
Reply With Quote #56

If I don't say bullshits, you might need to type: ulimit -c unlimited
__________________
Arkshine is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 05-23-2017 , 10:54   Re: SteamTools (v1.1)
Reply With Quote #57

Code:
CRASH: Tue May 23 14:47:26 UTC 2017
Start Line: ./hlds_linux -game valve +port (REDACTED) +map crossfire +maxplayers 16 -debug -pidfile hlds.2585.pid
[New LWP 2592]
[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 -game valve +port (REDACTED) +map crossfire +maxplayers 16 -debug -pidf'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf6e95644 in ?? () from ./libsteam_api.so
#0  0xf6e95644 in ?? () from ./libsteam_api.so
#1  0xf6e95924 in SteamGameServer_Init () from ./libsteam_api.so
#2  0xf2f3fbde in Hook_SteamGameServer_Init(unsigned int, unsigned short, unsigned short, unsigned short, unsigned short, EServerMode, char const*, char const*) () from valve/addons/amxmodx/modules/steamtools_amxx_i386.so
#3  0x000069f3 in ?? ()
#4  0x0000ffff in ?? ()
#5  0x00000003 in ?? ()
#6  0xf7507000 in ?? () from /(REDACTED)/ReHLDS/engine_i486.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
No symbol table info available.
From        To          Syms Read   Shared Object Library
                        No          linux-gate.so.1
0xf77acad0  0xf77ad978  Yes (*)     /lib/i386-linux-gnu/libdl.so.2
0xf776b520  0xf7798a45  Yes (*)     /lib/i386-linux-gnu/libm.so.6
0xf76d9914  0xf771fc78  Yes         ./libstdc++.so.6
0xf767fe04  0xf768f490  Yes         ./libgcc_s.so.1
0xf7521380  0xf76202fe  Yes (*)     /lib/i386-linux-gnu/libc.so.6
0xf77c4860  0xf77dc10c  Yes (*)     /lib/ld-linux.so.2
0xf6f2fad0  0xf7042061  Yes (*)     /(REDACTED)/ReHLDS/engine_i486.so
0xf6ea09b0  0xf6ea3eaa  Yes (*)     /lib/i386-linux-gnu/librt.so.1
0xf6e8e5c0  0xf6e98d74  Yes (*)     ./libsteam_api.so
0xf6e757e0  0xf6e81779  Yes (*)     /lib/i386-linux-gnu/libpthread.so.0
0xf6e59a00  0xf6e661b8  Yes         /(REDACTED)/ReHLDS/filesystem_stdio.so
0xf5bac1c0  0xf6925b04  Yes (*)     /(REDACTED)/steamcmd/linux32/steamclient.so
0xf5ab6a00  0xf5adf2b4  Yes (*)     /(REDACTED)/steamcmd/linux32/crashhandler.so
0xf3274ad0  0xf327b8ab  Yes (*)     /lib/i386-linux-gnu/libnss_files.so.2
0xf3243b70  0xf3259984  Yes         /(REDACTED)/ReHLDS/./valve/addons/metamod/dlls/metamod.so
0xf309dd30  0xf316db00  Yes         /(REDACTED)/ReHLDS/valve/dlls/hl.so
0xf2f5f9a0  0xf2fbc5ae  Yes (*)     /(REDACTED)/ReHLDS/valve/addons/amxmodx/dlls/amxmodx_mm_i386.so
0xf2f35b90  0xf2f43374  Yes (*)     valve/addons/amxmodx/modules/steamtools_amxx_i386.so
(*): Shared library is missing debugging information.
Stack level 0, frame at 0xff905c90:
 eip = 0xf6e95644; saved eip = 0xf6e95924
 called by frame at 0xff905cc0
 Arglist at 0xff905c88, args: 
 Locals at 0xff905c88, Previous frame's sp is 0xff905c90
 Saved registers:
  ebx at 0xff905c7c, ebp at 0xff905c88, esi at 0xff905c80, edi at 0xff905c84, eip at 0xff905c8c
End of crash report
__________________
gabuch2 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-23-2017 , 13:25   Re: SteamTools (v1.1)
Reply With Quote #58

Can you try this version (1.1.1).

The module is hooking SteamGameServer_Init() in libsteam_api.so without doing anything (just calling the original function) but it looks like I got wrong the params.
There are only 6 passed params and not 8. Not totally sure where I grabbed this function header nor why It doesn't crash with me (and module is working fine), but well. V1.1.1 fixes that, I tried and it loads fine as well.
Attached Files
File Type: so steamtools_amxx_i386.so (110.1 KB, 114 views)
__________________

Last edited by Arkshine; 05-23-2017 at 13:25.
Arkshine is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 05-23-2017 , 16:49   Re: SteamTools (v1.1)
Reply With Quote #59

Quote:
Originally Posted by Arkshine View Post
Can you try this version (1.1.1).

The module is hooking SteamGameServer_Init() in libsteam_api.so without doing anything (just calling the original function) but it looks like I got wrong the params.
There are only 6 passed params and not 8. Not totally sure where I grabbed this function header nor why It doesn't crash with me (and module is working fine), but well. V1.1.1 fixes that, I tried and it loads fine as well.
Code:
CRASH: Tue May 23 20:42:41 UTC 2017
Start Line: ./hlds_linux -game valve +port REDACTED +map crossfire +maxplayers 16 -debug -pidfile hlds.26731.pid
[New LWP 26739]
[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 -game valve +port REDACTED +map crossfire +maxplayers 16 -debug -pidf'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf6ddc644 in ?? () from ./libsteam_api.so
#0  0xf6ddc644 in ?? () from ./libsteam_api.so
#1  0xf6ddc924 in SteamGameServer_Init () from ./libsteam_api.so
#2  0xf2e8650c in Hook_SteamGameServer_Init(unsigned int, unsigned short, unsigned short, unsigned short, EServerMode, char const*) () from valve/addons/amxmodx/modules/steamtools_amxx_i386.so
#3  0x00006914 in ?? ()
#4  0x000069f3 in ?? ()
#5  0x0000ffff in ?? ()
#6  0x00000003 in ?? ()
#7  0xf744e000 in ?? () from REDACTED/ReHLDS/engine_i486.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
No symbol table info available.
From        To          Syms Read   Shared Object Library
                        No          linux-gate.so.1
0xf76f3ad0  0xf76f4978  Yes (*)     /lib/i386-linux-gnu/libdl.so.2
0xf76b2520  0xf76dfa45  Yes (*)     /lib/i386-linux-gnu/libm.so.6
0xf7620914  0xf7666c78  Yes         ./libstdc++.so.6
0xf75c6e04  0xf75d6490  Yes         ./libgcc_s.so.1
0xf7468380  0xf75672fe  Yes (*)     /lib/i386-linux-gnu/libc.so.6
0xf770b860  0xf772310c  Yes (*)     /lib/ld-linux.so.2
0xf6e76ad0  0xf6f89061  Yes (*)     REDACTED/ReHLDS/engine_i486.so
0xf6de79b0  0xf6deaeaa  Yes (*)     /lib/i386-linux-gnu/librt.so.1
0xf6dd55c0  0xf6ddfd74  Yes (*)     ./libsteam_api.so
0xf6dbc7e0  0xf6dc8779  Yes (*)     /lib/i386-linux-gnu/libpthread.so.0
0xf6da0a00  0xf6dad1b8  Yes         REDACTED/ReHLDS/filesystem_stdio.so
0xf5af31c0  0xf686cb04  Yes (*)     REDACTED/steamcmd/linux32/steamclient.so
0xf59fda00  0xf5a262b4  Yes (*)     REDACTED/steamcmd/linux32/crashhandler.so
0xf31bbad0  0xf31c28ab  Yes (*)     /lib/i386-linux-gnu/libnss_files.so.2
0xf318ab70  0xf31a0984  Yes         REDACTED/ReHLDS/./valve/addons/metamod/dlls/metamod.so
0xf2fe4d30  0xf30b4b00  Yes         REDACTED/ReHLDS/valve/dlls/hl.so
0xf2ea69a0  0xf2f035ae  Yes (*)     REDACTED/ReHLDS/valve/addons/amxmodx/dlls/amxmodx_mm_i386.so
0xf2e7c7c0  0xf2e89d08  Yes (*)     valve/addons/amxmodx/modules/steamtools_amxx_i386.so
(*): Shared library is missing debugging information.
Stack level 0, frame at 0xfff5a120:
 eip = 0xf6ddc644; saved eip = 0xf6ddc924
 called by frame at 0xfff5a150
 Arglist at 0xfff5a118, args: 
 Locals at 0xfff5a118, Previous frame's sp is 0xfff5a120
 Saved registers:
  ebx at 0xfff5a10c, ebp at 0xfff5a118, esi at 0xfff5a110, edi at 0xfff5a114, eip at 0xfff5a11c
End of crash report
__________________
gabuch2 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-23-2017 , 17:09   Re: SteamTools (v1.1)
Reply With Quote #60

Then I don't know. I can't reproduce.

Did you updated manually libsteam_api.so? Actually, can you attach it here?
What OS exactly?
Do you have SELinux enabled or similar security software? If so can you disable it temporarily to see if it helps?

I tried under debian/ubuntu without issues. I hope you are not going to say CentOS, there is always trouble with this OS ahah.

EDIT: Can you try this version (1.1.1-debug), it's the same with another fix related to SELinux + module is in debug mode (you should also see some message printing params values of SteamGameServer_Init function in the console and before a possible crash).
Attached Files
File Type: so steamtools_amxx_i386.so (763.7 KB, 134 views)
__________________

Last edited by Arkshine; 05-23-2017 at 17:36.
Arkshine is offline
Reply



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 16:34.


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