View Single Post
SovRedBit
Member
Join Date: May 2017
Old 06-24-2017 , 06:28  
Reply With Quote #35

Quote:
Originally Posted by asherkin View Post
LD_LIBRARY_PATH=.:bin gdb --args ./srcds_linux -game ??? +map ???

Then "run" at the GDB prompt when all loaded.

You must use srcds_linux instead of the srcds_run wrapper.
Code:
(gdb) bt
#0  0x4001f420 in __kernel_vsyscall ()
#1  0x400b91f7 in raise () from /lib/libc.so.6
#2  0x400baa33 in abort () from /lib/libc.so.6
#3  0x400b2297 in __assert_fail_base () from /lib/libc.so.6
#4  0x400b2347 in __assert_fail () from /lib/libc.so.6
#5  0x4b28fe2f in ke::Lockable::Lock (this=0xb29feb0) at /home/soviet-lulz/src/newdisk/sourcemod/public/amtl/amtl/am-thread-utils.h:140
#6  0x4b28fcfe in PgDatabase::LockForFullAtomicOperation (this=0x4b011830) at /home/soviet-lulz/src/newdisk/sourcemod/extensions/pgsql/pgsql/PgDatabase.cpp:347
#7  0x4b28fd5c in PgDatabase::SetCharacterSet (this=0x4b011830, characterset=0x9dd4ae0 "utf8") at /home/soviet-lulz/src/newdisk/sourcemod/extensions/pgsql/pgsql/PgDatabase.cpp:366
#8  0x4a66e4f3 in SQL_SetCharset (pContext=0x9d7dbb8, params=0x9dde78c) at /home/soviet-lulz/src/newdisk/sourcemod/core/logic/smn_database.cpp:1510
#9  0x4aaf9beb in ?? ()
#10 0x4aaf9beb in ?? ()
#11 0x4aaf931a in ?? ()
#12 0x4aa9006f in ?? ()
#13 0x4aa4ab6c in sp::Environment::Invoke (this=0x993fec0, cx=0x9d7dbb8, method=..., result=0xbfffc3cc) at /home/soviet-lulz/src/newdisk/sourcemod/sourcepawn/vm/environment.cpp:281
#14 0x4aa68ace in sp::PluginContext::Invoke (this=0x9d7dbb8, fnid=275, params=0xbfffc440, num_params=3, result=0xbfffc3cc) at /home/soviet-lulz/src/newdisk/sourcemod/sourcepawn/vm/plugin-context.cpp:465
#15 0x4aa4fe02 in sp::ScriptedInvoker::Invoke (this=0x9f062e8, result=0x0) at /home/soviet-lulz/src/newdisk/sourcemod/sourcepawn/vm/scripted-invoker.cpp:296
#16 0x4aa4f874 in sp::ScriptedInvoker::Execute (this=0x9f062e8, result=0x0) at /home/soviet-lulz/src/newdisk/sourcemod/sourcepawn/vm/scripted-invoker.cpp:190
#17 0x4a66fc47 in TConnectOp::RunThinkPart (this=0x9f06b40) at /home/soviet-lulz/src/newdisk/sourcemod/core/logic/smn_database.cpp:382
#18 0x4a668f78 in DBManager::RunFrame (this=0x4a6e0ee0 <g_DBMan>) at /home/soviet-lulz/src/newdisk/sourcemod/core/logic/Database.cpp:657
#19 0x4a6676c7 in FrameHook (simulating=false) at /home/soviet-lulz/src/newdisk/sourcemod/core/logic/Database.cpp:58
#20 0x4a35baed in SourceModBase::ProcessGameFrameHooks (this=0x4a5ef280 <g_SourceMod>, simulating=false) at /home/soviet-lulz/src/newdisk/sourcemod/core/sourcemod.cpp:696
#21 0x4a354ca2 in RunFrameHooks (simulating=false) at /home/soviet-lulz/src/newdisk/sourcemod/core/frame_hooks.cpp:106
#22 0x4a38244f in TimerSystem::GameFrame (this=0x4a5f3b20 <g_Timers>, simulating=false) at /home/soviet-lulz/src/newdisk/sourcemod/core/TimerSys.cpp:237
#23 0x4a35d81f in fastdelegate::FastDelegate1<bool, void>::operator() (this=0x99427dc, p1=false) at /home/soviet-lulz/src/newdisk/mmsource-1.10/core/sourcehook/FastDelegate.h:994
#24 0x4a35ca42 in __SourceHook_FHCls_IServerGameDLLGameFramefalse::CMyDelegateImpl::Call (this=0x99427d8, p1=false) at /home/soviet-lulz/src/newdisk/sourcemod/core/sourcemod.cpp:54
#25 0x4a35cb30 in __SourceHook_FHCls_IServerGameDLLGameFramefalse::Func (this=0x4564ffb8, p1=false) at /home/soviet-lulz/src/newdisk/sourcemod/core/sourcemod.cpp:54
#26 0x40cc308e in ?? () from /home/servers/csgoservers/csgo-PUBLIC2/bin/engine.so
#27 0x40cc4359 in ?? () from /home/servers/csgoservers/csgo-PUBLIC2/bin/engine.so
#28 0x40d7352e in ?? () from /home/servers/csgoservers/csgo-PUBLIC2/bin/engine.so
#29 0x40d741cc in ?? () from /home/servers/csgoservers/csgo-PUBLIC2/bin/engine.so
#30 0x40d74938 in ?? () from /home/servers/csgoservers/csgo-PUBLIC2/bin/engine.so
#31 0x40d7db84 in ?? () from /home/servers/csgoservers/csgo-PUBLIC2/bin/engine.so
#32 0x40d7de56 in ?? () from /home/servers/csgoservers/csgo-PUBLIC2/bin/engine.so
#33 0x40d7df69 in ?? () from /home/servers/csgoservers/csgo-PUBLIC2/bin/engine.so
#34 0x40de02da in ?? () from /home/servers/csgoservers/csgo-PUBLIC2/bin/engine.so
#35 0x40ddd226 in ?? () from /home/servers/csgoservers/csgo-PUBLIC2/bin/engine.so
#36 0x407144ed in ?? () from bin/dedicated.so
#37 0x40714578 in ?? () from bin/dedicated.so
#38 0x40ddd31d in ?? () from /home/servers/csgoservers/csgo-PUBLIC2/bin/engine.so
#39 0x40f11760 in ?? () from /home/servers/csgoservers/csgo-PUBLIC2/bin/engine.so
#40 0x40dde50f in ?? () from /home/servers/csgoservers/csgo-PUBLIC2/bin/engine.so
#41 0x40714654 in ?? () from bin/dedicated.so
#42 0x40771890 in ?? () from bin/dedicated.so
#43 0x40772abe in ?? () from bin/dedicated.so
#44 0x40771890 in ?? () from bin/dedicated.so
#45 0x4070d8f3 in ?? () from bin/dedicated.so
#46 0x080486f9 in ?? ()
#47 0x400a49a3 in __libc_start_main () from /lib/libc.so.6
#48 0x080488bd in ?? ()

I think this place cause the error on 366

Ok, i know now that it was the error here, in plugin this code was causing driver crash
Quote:
g_hDatabase.SetCharset("utf8");
So fix the threads please

And here another error, when i enter the game and the server is loading, on load game files at csgo server, in the client i mean, it stops at that loading and nothing happen, but when i started to debug it, i found this:
Quote:
Program received signal SIGSEGV, Segmentation fault.
0x49569311 in SQL_QuoteString (pContext=0x9d472b0, params=0x9da87e
at /home/soviet-lulz/src/newdisk/sourcemod/core/logic/smn_database.cpp:742
742 /home/soviet-lulz/src/newdisk/sourcemod/core/logic/smn_database.cpp: Нет такого файла или каталога.
Missing separate debuginfos, use: debuginfo-install glibc-2.17-157.el7_3.2.i686
"Нет такого файла или каталога." Means that there no file or catalog but i found this file and catalog, so i don't know what that means, and when i remove postgresql extension it starts work well.

And here is the code of that place at 742 line:

Last edited by asherkin; 06-24-2017 at 06:33.
SovRedBit is offline