Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.50.61-beta2] 3rd Party HL1 Mod error #1

Closed
APGRoboCop opened this issue Jun 15, 2017 · 0 comments
Closed

[2.50.61-beta2] 3rd Party HL1 Mod error #1

APGRoboCop opened this issue Jun 15, 2017 · 0 comments
Assignees

Comments

@APGRoboCop
Copy link
Owner

APGRoboCop commented Jun 15, 2017

Well I've been trying to test the beta-2 version of AdminMod 2.50.61 on Action Half-Life DC2 and it appears to give me a Stack Overload kick when using say "timeleft", but in some worst case scenarios they tend to crash the server. The other HL1 mods like DMC, Sven v5 seem to work fine but maybe not on TFC and 3rd Party HL1 mods. I haven't got a clue from what this Linux GDB says but could you maybe point out to some clues please?

Program received signal SIGSEGV, Segmentation fault.
0xf36f63be in ENT (pev=0x0)
    at ../../../../hlsdk-2.3-p4/multiplayer/dlls/util.h:104
104		inline edict_t *ENT(const entvars_t *pev)	{ return pev->pContainingEntity; }
(gdb) bt
#0  0xf36f63be in ENT (pev=0x0)
    at ../../../../hlsdk-2.3-p4/multiplayer/dlls/util.h:104
#1  0xf36f65b6 in CBaseEntity::edict (this=0x9060f18)
    at ../../../../hlsdk-2.3-p4/multiplayer/dlls/cbase.h:327
#2  0xf36f5532 in UTIL_ClientPrintAll (msg_dest=3, 
    msg_name=0xf3735440 <UTIL_VarArgs(char*, ...)::acString> "Time remaining on map: 39 minutes\n", param1=0x0, param2=0x0, param3=0x0, param4=0x0)
    at util.cpp:1065
#3  0xf36fd9ae in say (amx=0x8f3f4f0, params=0x8f857f0)
    at admin_commands.cpp:1746
#4  0xf3dccd25 in amx_Callback ()
   from /home/desktop/steamcmd/hlds/action/addons/adminmod/dlls/amx_admin.so
#5  0xf3dceab9 in amx_Exec ()
   from /home/desktop/steamcmd/hlds/action/addons/adminmod/dlls/amx_admin.so
#6  0xf37162a7 in CPlugin::HandleCommand (this=0x8f3f338, pEntity=0xf46b1ae4, 
    sCmd=0xf3df0d30 "say", sData=0xffffc74d "\"timeleft\"") at CPlugin.cpp:282
#7  0xf370eb50 in HandleCommand (pEntity=0xf46b1ae4, sCmd=0xf3df0d30 "say", 
    sData=0xffffc74d "\"timeleft\"") at users.cpp:3187
#8  0xf3717c7a in AM_ClientCommand (pEntity=0xf46b1ae4) at admin_mod.cpp:387
#9  0xf36f2a55 in ClientCommand (pEntity=0xf46b1ae4) at dll.cpp:388
#10 0xf3d8594a in api_caller_void_args_p(void const*, void const*) ()
   from /home/desktop/steamcmd/hlds/./action/addons/metamod/metamod.so
#11 0xf3d8478f in main_hook_function_void(unsigned int, enum_api_t, unsigned int---Type <return> to continue, or q <return> to quit---
, void const*) ()
   from /home/desktop/steamcmd/hlds/./action/addons/metamod/metamod.so
#12 0xf3d8861e in mm_ClientCommand(edict_s*) ()
   from /home/desktop/steamcmd/hlds/./action/addons/metamod/metamod.so
#13 0xf78003f5 in SV_ExecuteClientMessage (cl=0xf45ddf08)
    at ../engine/sv_user.c:2221
#14 0xf77f2723 in SV_ReadPackets () at ../engine/sv_main.c:4871
#15 0xf77f299e in SV_Frame () at ../engine/sv_main.c:9231
#16 0xf77bae92 in _Host_Frame (time=0.00942564476) at ../engine/host.c:1404
#17 0xf77bb252 in Host_Frame (time=0.00942564476, iState=1, 
    stateInfo=0xffffcf4c) at ../engine/host.c:1522
#18 0xf77df8dc in CEngine::Frame (this=0xf78766a0 <g_Engine>)
    at ../engine/sys_engine.cpp:245
#19 0xf77dcc43 in RunFrame (this=<optimised out>)
    at ../engine/sys_dll2.cpp:1235
#20 CDedicatedServerAPI::RunFrame (
    this=0xf7871d00 <__g_CDedicatedServerAPI_singleton>)
    at ../engine/sys_dll2.cpp:1226
#21 0x08049c65 in RunServer () at ../dedicated/sys_ded.cpp:766
#22 0x08049472 in main (argc=20, argv=0xffffd184)
    at ../dedicated/sys_ded.cpp:1146

And those are the Metamod Addons and Versions used:-

Currently running plugins:
 [  1] Adminmod, v2.50.61_beta2 (MM), Jun 13 2017, by Alfred Reynolds <alfred@valvesoftware.com>, see http://www.adminmod.org
 [  2] AMX Mod X, v1.8.2, Feb 14 2013, by AMX Mod X Dev Team, see http://www.amxmodx.org
 [  3] Spawn & Chat Protection Plugin, v2.02, 24/11/2015, by Jussi Kivilinna <jussi.kivilinna@mbnet.fi>, see http://koti.mbnet
 [  4] Engine, v1.8.2, Feb 14 2013, by AMX Mod X Dev Team, see http://www.amxmodx.org
 [  5] FakeMeta, v1.8.2, Feb 14 2013, by AMX Mod X Dev Team, see http://www.amxmodx.org
5 plugins
] meta version
Metamod v1.21p37  2013/05/30 (5:13)
by Will Day
   http://www.metamod.org/
 Patch: Metamod-P (mm-p) v37
 by Jussi Kivilinna
    http://metamod-p.sourceforge.net/
compiled: May 30 2013, 11:41:16 EE
@APGRoboCop APGRoboCop self-assigned this Jun 15, 2017
APGRoboCop added a commit that referenced this issue Jun 17, 2017
This could be the source of the crashes that can be triggered by using admin commands and says. This doesn't apply to CS and DMC.

This util.cpp from HLSDK 2.3p4 that was extracted and tested on util.cpp for AdminMod appears to give out similar crash:-

"void UTIL_ClientPrintAll( int msg_dest, const char *msg_name, const char *param1, const char *param2, const char *param3, const char *param4 )
{
	MESSAGE_BEGIN( MSG_ALL, g_msgTextMsg );
		WRITE_BYTE( msg_dest );
		WRITE_STRING( msg_name );

		if ( param1 )
			WRITE_STRING( param1 );
		if ( param2 )
			WRITE_STRING( param2 );
		if ( param3 )
			WRITE_STRING( param3 );
		if ( param4 )
			WRITE_STRING( param4 );

	MESSAGE_END();
}"

L 06/17/2017 - 23:44:56: FATAL ERROR (shutting down): PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )
FATAL ERROR (shutting down): PF_MessageBegin_I: Tried to create a message with a bogus message type ( 0 )

Program received signal SIGSEGV, Segmentation fault.
0xf77ef0d0 in Sys_Error(char const*, ...) ()
   from /home/desktop/steamcmd/hlds_l/engine_i486.so
(gdb) bt
#0  0xf77ef0d0 in Sys_Error(char const*, ...) ()
   from /home/desktop/steamcmd/hlds_l/engine_i486.so
#1  0xf77a6357 in PF_MessageBegin_I ()
   from /home/desktop/steamcmd/hlds_l/engine_i486.so
#2  0xf39243e8 in MESSAGE_BEGIN (msg_dest=2, msg_type=0, pOrigin=0x0, ed=0x0)
    at ../../../../hlsdk-2.3-p4/multiplayer/dlls/enginecallback.h:77
#3  0xf3923532 in UTIL_ClientPrintAll (msg_dest=3, 
    msg_name=0xf3963440 <UTIL_VarArgs(char*, ...)::acString> "[APG]RoboCop[CL] :    hi\n", param1=0x0, param2=0x0, param3=0x0, param4=0x0) at util.cpp:1049
#4  0xf392b9fc in say (amx=0x91075e0, params=0xf0cff7b4)
    at admin_commands.cpp:1746
#5  0xf3ca9d25 in amx_Callback ()
   from /home/desktop/steamcmd/hlds_l/tfc/addons/adminmod/dlls/amx_admin.so
Repository owner locked and limited conversation to collaborators Jun 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant