• [BUG] Crash any server by running 'test_workshop' in console
    105 replies, posted
  • Avatar of infinitywrai
  • As title says, a client running test_workshop on any server will cause this error and server freeze: [code]STEAM REMOTE STORAGE!!!!!!!! steamengine.cpp (2077) : Assertion Failed: Narrowing inPtr to toClass returned N ULL. Assert( Assertion Failed: Narrowing inPtr to toClass returned NULL. ):steamengin e.cpp:2077[/code] Discuss
  • Avatar of Drakehawke
  • [img]http://puu.sh/1jS2v[/img] Wrote a quick binary to remove it since concommand.Remove/Add didn't work. [editline]28th October 2012[/editline] Windows version: [url]http://puu.sh/1jSSa[/url] Save as gmsv_test_workshop_fix_win32.dll in garrysmod/lua/bin, require it serverside to remove it. Source: [code] #define GMMODULE #include "GarrysMod/Lua/Interface.h" #include "tier1/tier1.h" #include "tier1/interface.h" #include "vstdlib/cvar.h" GMOD_MODULE_OPEN() { CreateInterfaceFn tier1Factory = VStdLib_GetICVarFactory(); g_pCVar = (ICvar *)tier1Factory( CVAR_INTERFACE_VERSION, NULL ); g_pCVar->UnregisterConCommand( g_pCVar->FindCommandBase( "test_workshop" ) ); return 0; }[/code] Linux coming soon
  • Avatar of Tehelee
  • Any chance of a 64bit (I think it needs 64bit, says couldn't load module, even though it finds it)? Because you could probably get one out before Garry got an update out to remove it, my server's already been crashed twice.
  • Avatar of AidanCKY
  • It's silly that the ByB servers have already fixed this issue yet they cant even admin the server for toffee.
  • Avatar of TehBigA
  • [QUOTE=Drakehawke;38226263]... Source: [code] #define GMMODULE #include "GarrysMod/Lua/Interface.h" #include "tier1/tier1.h" #include "tier1/interface.h" #include "vstdlib/cvar.h" GMOD_MODULE_OPEN() { CreateInterfaceFn tier1Factory = VStdLib_GetICVarFactory(); g_pCVar = (ICvar *)tier1Factory( CVAR_INTERFACE_VERSION, NULL ); g_pCVar->UnregisterConCommand( g_pCVar->FindCommandBase( "test_workshop" ) ); return 0; }[/code][/QUOTE] Worked like a charm, thanks!
  • Avatar of gamerpaddy
  • Damn, we need a Tutorial how to set up headers on linux (for gmod modules..) In wiki.garrysmod.com is only the way, to compile .. not how to get source sdk headers...
  • Avatar of NaRyan
  • -snip- Nevermind I was wrong. Although the module does crash the server when it changes level.
  • Avatar of spykr
  • [QUOTE=NaRyan;38232400]Using the module stops the command, however it causes the server to crash on map change. All you need to do is add the below command to autoexec.cfg and it is blocked. alias test_workshop "" [url=http://www.facepunch.com/showthread.php?t=1221559&p=38227199&viewfull=1#post38227199](above command was mentioned by BlackAwps)[/url][/QUOTE] Needs to be run on the client, just putting it in my autoexec.cfg as suggested didn't work.
  • Avatar of mrciku
  • Easy easy fix. Just put this in lua/autorun of the server... [code]local function getoutfag(ply) ply:Kick("Tried to use test_workshop crash exploit") end concommand.Add("test_workshop", getoutfag)[/code]
  • Avatar of Wizard of Ass
  • [QUOTE=mrciku;38232724]Easy easy fix. Just put this in lua/autorun of the server... [code]local function getoutfag(ply) ply:Kick("Tried to use test_workshop crash exploit") end concommand.Add("test_workshop", getoutfag)[/code][/QUOTE] That does not work, you cannot overwrite engine concommands.
  • Avatar of garry
  • This is fixed in the SVN now. Servers should be able to replace their binaries with the binaries in the SVN to prevent the crash before the update goes out.
  • Avatar of NaRyan
  • Just in case anyone does not know the svn location. [url]http://svn.facepunchstudios.com/svn/gm/[/url]
  • [QUOTE=garry;38232755]This is fixed in the SVN now. Servers should be able to replace their binaries with the binaries in the SVN to prevent the crash before the update goes out.[/QUOTE] seems to crash on startup, TTT gamemode: [IMG]http://i.imgur.com/ZPo5h.png[/IMG] [URL]https://dl.dropbox.com/u/20695064/srcds_1482030_crash_2012_10_29T10_25_29C0.mdmp[/URL] [editline]29th October 2012[/editline] Also tested on sandbox, same results.
  • Avatar of DarthTealc
  • Our TTT server is stuck in a reboot loop. Appears to happen around the time it hits sv_tags. (This is after applying the updated binaries)
  • Avatar of NaRyan
  • You need the files from both bin directorys. /bin into orangebox/bin /garrysmod/bin into same named dir. Server starts fine then. And using test_workshop clientside now gives an unknown command error.
  • well, the svn link was to the gmod folder at first I'm sure :s, but thanks NaRyan I shall update the orangebox libs.- Yep, fixed :)
  • Avatar of NaRyan
  • [QUOTE=Pantho;38233018]well, the svn link was to the gmod folder at first I'm sure :s, but thanks NaRyan I shall update the orangebox libs.[/QUOTE] Yeah I did post the original svn link to the gmod folder, but realized my mistake a few minutes later. Sorry about that.
  • Avatar of Ruzza
  • [QUOTE=gaz492;38234027]Morgen, would you like to explain how this is dumb, ive only just started to host a server, and i don't know what binary's/files i am supposed to replace[/QUOTE] he rated you dumb because, if you spent 30 seconds reading the thread, you would have found out the answer. [QUOTE=NaRyan;38232981]You need the files from both bin directorys. /bin into orangebox/bin /garrysmod/bin into same named dir. Server starts fine then. And using test_workshop clientside now gives an unknown command error.[/QUOTE]
  • [QUOTE=Ruzza;38234061]he rated you dumb because, if you spent 30 seconds reading the thread, you would have found out the answer.[/QUOTE] Saw that when just before you posted. but now im getting Failed to open dedicated.so (libsteam_api.so: cannot open shared object file: No such file or directory) cat: hlds.22229.pid: No such file or directory EDIT: now AppFramework : Unable to load module bin/vphysics.so! cat: hlds.22342.pid: No such file or directory email debug.log to [email]linux@valvesoftware.com[/email] And now Console initialized. ./orangebox/srcds_run: line 372: 22495 Segmentation fault (core dumped) $HL_CMD cat: hlds.22487.pid: No such file or directory email debug.log to [email]linux@valvesoftware.com[/email] Mon Oct 29 17:36:18 MSK 2012: Server restart in 10 seconds What the hell is happening to my server
  • Avatar of Ruzza
  • [QUOTE=gaz492;38234087]Saw that when just before you posted. but now im getting Failed to open dedicated.so (libsteam_api.so: cannot open shared object file: No such file or directory) cat: hlds.22229.pid: No such file or directory EDIT: now AppFramework : Unable to load module bin/vphysics.so! cat: hlds.22342.pid: No such file or directory email debug.log to [email]linux@valvesoftware.com[/email] And now Console initialized. ./orangebox/srcds_run: line 372: 22495 Segmentation fault (core dumped) $HL_CMD cat: hlds.22487.pid: No such file or directory email debug.log to [email]linux@valvesoftware.com[/email] Mon Oct 29 17:36:18 MSK 2012: Server restart in 10 seconds What the hell is happening to my server[/QUOTE] I hope you didn't delete the original files in the bin folder, outside garrysmod. Just override the original with the svn's and it should work.
  • Avatar of NaRyan
  • Is anyone else who has added the files from the SVN to their server now getting massive lag? On all 3 of my servers (TTT, The Stalker & Sandbox, all windows servers) as soon as players join the server lags to hell. On TTT with just 4 players, the pings were way up, and the server was acting more like it was being DDoSed, even the server ping in HLSW goes up. Yet if I go back to the original files that belong in the bin folders the server behaves. However that makes the original problem there to be abused..
  • Avatar of ShaunOfTheLive
  • [QUOTE=NaRyan;38234805]Is anyone else who has added the files from the SVN to their server now getting massive lag? On all 3 of my servers (TTT, The Stalker & Sandbox, all windows servers) as soon as players join the server lags to hell. On TTT with just 4 players, the pings were way up, and the server was acting more like it was being DDoSed, even the server ping in HLSW goes up. Yet if I go back to the original files that belong in the bin folders the server behaves. However that makes the original problem there to be abused..[/QUOTE] My TTT server does that even without the SVN binaries. Every five to ten seconds, it'll get a huge lag spike (I also watched it in HLSW, and it's amazing how regular the timing of the spikes is)
  • Avatar of DaneSomdahl
  • [QUOTE=gaz492;38234087]Saw that when just before you posted. but now im getting Failed to open dedicated.so (libsteam_api.so: cannot open shared object file: No such file or directory) cat: hlds.22229.pid: No such file or directory EDIT: now AppFramework : Unable to load module bin/vphysics.so! cat: hlds.22342.pid: No such file or directory email debug.log to [email]linux@valvesoftware.com[/email] And now Console initialized. ./orangebox/srcds_run: line 372: 22495 Segmentation fault (core dumped) $HL_CMD cat: hlds.22487.pid: No such file or directory email debug.log to [email]linux@valvesoftware.com[/email] Mon Oct 29 17:36:18 MSK 2012: Server restart in 10 seconds What the hell is happening to my server[/QUOTE] It's being ran by an idiot is what happened.