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

Sourcemod SegFault in curl on DoI


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fooka03
Junior Member
Join Date: May 2017
Old 05-27-2017 , 18:37   Sourcemod SegFault in curl on DoI
Reply With Quote #1

Hoping someone can give me some insight as to how to fix this problem. I'm running on a linux box (Linux doipvp4 2.6.32-042stab108.5 #1 SMP Wed Jun 17 20:20:17 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux, 1 cpu, 2gb ram) with the following command:

Code:
LD_LIBRARY_PATH=/opt/doiserver:/opt/doiserver/bin:{$LD_LIBRARY_PATH} sudo -u doi /opt/doiserver/srcds_run -debug +maxplayers 40  -game doi +map crete invasion
If I remove the sourcemod.vmx file from addons the server works, with it I get a segfault and a core dump. This happens even without any plugins enabled or even present in the sourcemod path. I compiled the latest sourcemod myself on the server to see if it addressed the issue but ended up with the same error albeit with a complete backtrace available from gdb as follows:

Code:
#0  0xad13f83d in Curl_setup_transfer (conn=0xb2782b24, sockindex=0, size=-1, getheader=true, bytecountp=0x21, writesockindex=0,
    writecountp=0xad156340 <Curl_http+7402>) at /root/alliedmodders/sourcemod/extensions/curl/curl-src/lib/transfer.c:2629
#1  0xad1562ff in Curl_http (conn=0xb2782b24, done=0xb239897b <_V_strlower(char*)+11>)
    at /root/alliedmodders/sourcemod/extensions/curl/curl-src/lib/http.c:2735
#2  0xad5ef137 in PlayerManager::OnServerActivate (this=0xad6a68a0 <g_Players>, pEdictList=0xad93c020, edictCount=1073,
    clientMax=40) at /root/alliedmodders/sourcemod/core/PlayerManager.cpp:302
#3  0xad5f8203 in fastdelegate::FastDelegate3<edict_t*, int, int, void>::operator() (this=0xabe758c, p1=0xad93c020, p2=1073,
    p3=40) at /root/alliedmodders/mmsource-1.10/core/sourcehook/FastDelegate.h:1164
#4  0xad5f735d in __SourceHook_FHCls_IServerGameDLLServerActivate0::CMyDelegateImpl::Call (this=0xabe7588, p1=0xad93c020,
    p2=1073, p3=40) at /root/alliedmodders/sourcemod/core/PlayerManager.cpp:83
#5  0xad5f754a in __SourceHook_FHCls_IServerGameDLLServerActivate0::Func (this=0xb288b5d8 <g_ServerGameDLL>, p1=0xad93c020,
    p2=1073, p3=40) at /root/alliedmodders/sourcemod/core/PlayerManager.cpp:83
#6  0xb6119769 in CServerPlugin::ServerActivate(edict_t*, int, int) () from /opt/doiserver/bin/engine_srv.so
#7  0xb610eda9 in SV_ActivateServer() () from /opt/doiserver/bin/engine_srv.so
#8  0xb607bd73 in Host_NewGame(char*, char*, bool, bool, bool, char const*, char const*) () from /opt/doiserver/bin/engine_srv.so
#9  0xb608463d in CHostState::State_NewGame() () from /opt/doiserver/bin/engine_srv.so
#10 0xb6084d76 in CHostState::FrameUpdate(float) () from /opt/doiserver/bin/engine_srv.so
#11 0xb6084dc7 in HostState_Frame(float) () from /opt/doiserver/bin/engine_srv.so
#12 0xb612c7da in CEngine::Frame() () from /opt/doiserver/bin/engine_srv.so
#13 0xb6128eb7 in CDedicatedServerAPI::RunFrame() () from /opt/doiserver/bin/engine_srv.so
#14 0xb6de96ee in RunServer(bool) () from /opt/doiserver/bin/dedicated_srv.so
#15 0xb6de8adc in CDedicatedExports::RunServer() () from /opt/doiserver/bin/dedicated_srv.so
#16 0xb6128ffe in CModAppSystemGroup::Main() () from /opt/doiserver/bin/engine_srv.so
#17 0xb6175660 in CAppSystemGroup::Run() () from /opt/doiserver/bin/engine_srv.so
#18 0xb61299b8 in CDedicatedServerAPI::ModInit(ModInfo_t&) () from /opt/doiserver/bin/engine_srv.so
#19 0xb6de983f in CDedicatedAppSystemGroup::Main() () from /opt/doiserver/bin/dedicated_srv.so
#20 0xb6e0ebb0 in CAppSystemGroup::Run() () from /opt/doiserver/bin/dedicated_srv.so
#21 0xb6e10edb in CSteamApplication::Main() () from /opt/doiserver/bin/dedicated_srv.so
#22 0xb6e0ebb0 in CAppSystemGroup::Run() () from /opt/doiserver/bin/dedicated_srv.so
#23 0xb6da2cd8 in main () from /opt/doiserver/bin/dedicated_srv.so
#24 0xb6deacf4 in DedicatedMain () from /opt/doiserver/bin/dedicated_srv.so
#25 0x080487fc in main ()
The relevant line in the referenced source is here: https://github.com/alliedmodders/sou...ansfer.c#L2629

I'd appreciate any insight at all at this point. If you need any more information from my server to help diagnose I'd be happy to provide it.
fooka03 is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 05-28-2017 , 08:44   Re: Sourcemod SegFault in curl on DoI
Reply With Quote #2

Try the latest SM build.
Fyren is offline
fooka03
Junior Member
Join Date: May 2017
Old 05-28-2017 , 10:38   Re: Sourcemod SegFault in curl on DoI
Reply With Quote #3

Sorry I didn't explicitly state it but I tried using the latest build first and experienced the same issue. Only then did I resort to compiling from source.
fooka03 is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 05-28-2017 , 11:28   Re: Sourcemod SegFault in curl on DoI
Reply With Quote #4

Luckily for you, the march of time goes on, and the latest build does not stay the same forever.

Try the latest SM build.
Fyren is offline
fooka03
Junior Member
Join Date: May 2017
Old 05-28-2017 , 11:59   Re: Sourcemod SegFault in curl on DoI
Reply With Quote #5

Alright smartass you could have said there was a new version as of this morning That seems to have done the trick, thanks.
fooka03 is offline
fooka03
Junior Member
Join Date: May 2017
Old 05-28-2017 , 12:04   Re: Sourcemod SegFault in curl on DoI
Reply With Quote #6

Well, maybe not completely fixed. The server will run now at least but using plugins now seems to crash the server. I'll dig into it a bit and see if I can pinpoint where the issue is.
fooka03 is offline
fooka03
Junior Member
Join Date: May 2017
Old 05-28-2017 , 13:02   Re: Sourcemod SegFault in curl on DoI
Reply With Quote #7

Looks like it's only related to slapping players which fortunately isn't a command I need (just was a convenient way for me to test on my own). Kick, ban, gag/mute, rcon, *say all seem to work so I'm not all too concerned.

The backtrace in case anyone is interested:

Code:
#0  0x2e312220 in ?? ()
#1  0xb203a6ed in CBasePlayer::GetSmoothedVelocity() ()
   from /opt/doiserver/doi/bin/server_srv.so
#2  0xad2457ef in ?? ()
#3  0xb29b29d9 in CallWrapper::Execute(void*, void*) ()
   from /opt/doiserver/doi/addons/sourcemod/extensions/bintools.ext.so
#4  0xbf808910 in ?? ()
#5  0xad24570c in ?? ()
#6  0xad245414 in ?? ()
#7  0xad1c706f in ?? ()
#8  0xad2cc045 in sp::Environment::Invoke(sp::PluginRuntime*, sp::CompiledFunction*, int*) ()
   from /opt/doiserver/doi/addons/sourcemod/bin/sourcepawn.jit.x86.so
#9  0xad2ce955 in sp::InvokeFrame::InvokeFrame(sp::PluginContext*, unsigned int) () from /opt/doiserver/doi/addons/sourcemod/bin/sourcepawn.jit.x86.so
#10 0xad2d2390 in sp::PluginContext::Invoke(unsigned int, int const*, unsigned int, int*) () from /opt/doiserver/doi/addons/sourcemod/bin/sourcepawn.jit.x86.so
#11 0xb76db200 in ?? () from /opt/doiserver/bin/libtier0_srv.so
#12 0x00ca0093 in ?? ()
fooka03 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-28-2017 , 15:26   Re: Sourcemod SegFault in curl on DoI
Reply With Quote #8

Can you install Accelerator and get a crash report?
It is probably bad EyeAngles gamedata, which'll affect a ton of plugins.
__________________
asherkin is offline
fooka03
Junior Member
Join Date: May 2017
Old 05-28-2017 , 16:26   Re: Sourcemod SegFault in curl on DoI
Reply With Quote #9

Crash ID: NDOV-Q4YQ-VXJW
fooka03 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:47.


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