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

[ANY] SteamWorks


Post New Thread Reply   
 
Thread Tools Display Modes
V1SoR
Member
Join Date: Jan 2011
Old 01-13-2014 , 18:43   Re: [ANY] SteamWorks
Reply With Quote #61

Apparently there's an issue. It is not safe to check the clients for DLC ownership in OnClientAuthorized(). If more than 1 connect at once(i.e. from the lobby), the server will crash. Moving all the checks to OnClientPutInServer() seems to have resolved this issue. But it needs more testing.

Last edited by V1SoR; 01-13-2014 at 18:43.
V1SoR is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-13-2014 , 18:47   Re: [ANY] SteamWorks
Reply With Quote #62

Quote:
Originally Posted by V1SoR View Post
Apparently there's an issue. It is not safe to check the clients for DLC ownership in OnClientAuthorized(). If more than 1 connect at once(i.e. from the lobby), the server will crash. Moving all the checks to OnClientPutInServer() seems to have resolved this issue. But it needs more testing.
Can you attach a debugger and grab a backtrace? in frame 1 and 0 can you type `info registers`?
KyleS is offline
s.m.a.c head
Senior Member
Join Date: Apr 2012
Location: Liverpool
Old 01-13-2014 , 18:53   Re: [ANY] SteamWorks
Reply With Quote #63

Quote:
Originally Posted by V1SoR View Post
Apparently there's an issue. It is not safe to check the clients for DLC ownership in OnClientAuthorized(). If more than 1 connect at once(i.e. from the lobby), the server will crash. Moving all the checks to OnClientPutInServer() seems to have resolved this issue. But it needs more testing.
Im getting lobby joining then instant crash hope you can fix it does not happen every time though.

Last edited by s.m.a.c head; 01-13-2014 at 18:54.
s.m.a.c head is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 01-14-2014 , 01:00   Re: [ANY] SteamWorks
Reply With Quote #64

Quote:
Originally Posted by V1SoR View Post
Apparently there's an issue. It is not safe to check the clients for DLC ownership in OnClientAuthorized(). If more than 1 connect at once(i.e. from the lobby), the server will crash. Moving all the checks to OnClientPutInServer() seems to have resolved this issue. But it needs more testing.
Meh, still the same issue for me using the build kyle gave me.

EDIT:
Checking does not crash the server midgame or when you do it on "OnClientConnect". However with kyle's build the result is always 2.
I am using sourcemod 1.5 BTW.
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.

Last edited by Dr. Greg House; 01-14-2014 at 01:29.
Dr. Greg House is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-14-2014 , 07:42   Re: [ANY] SteamWorks
Reply With Quote #65

Quote:
Originally Posted by Dr. Greg House View Post
Meh, still the same issue for me using the build kyle gave me.

EDIT:
Checking does not crash the server midgame or when you do it on "OnClientConnect". However with kyle's build the result is always 2.
I am using sourcemod 1.5 BTW.
Right, you need to do it when the callback is hit. I still need to implement it, but it's very straight forward.

I'm still very interested in a back trace with those registers, if it is indeed crashing.
KyleS is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 01-14-2014 , 08:37   Re: [ANY] SteamWorks
Reply With Quote #66

Never done it before. Tell me how to do it. Accelerator does not get to fetch the dump.
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-14-2014 , 10:22   Re: [ANY] SteamWorks
Reply With Quote #67

Quote:
Originally Posted by Dr. Greg House View Post
Never done it before. Tell me how to do it.
ps aux | grep srcds_linux
PHP Code:
plaguef11811 91.9  9.6 577708 388952 pts/1   Rl+  Jan12 2109:41 ./srcds_linux -game cstrike  -debug -secure -nobreakpad -gdb /usr/bin/gdb -dumplongticks 
gdb attach 11811
PHP Code:
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from 
/lib/libnss_db.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_db.so.2
0xffffe430 in __kernel_vsyscall 
()
(
gdb
continue
PHP Code:
(gdb) continue
Continuing
Cause the crash...

PHP Code:
Program terminated with signal 11Segmentation fault.
#0  0xf616a570 in CEngineRecipientFilter::IncludesPlayer(int) ()
   
from /home/plaguefest/servers2/css/*/bin/engine_srv.so
(gdb) 
bt full
PHP Code:
(gdbbt full
#0  0xf616a570 in CEngineRecipientFilter::IncludesPlayer(int) ()
   
from /home/plaguefest/servers2/css/*/bin/engine_srv.so
No symbol table info available.
#1  0xf6120696 in CBaseClient::IgnoreTempEntity(CEventInfo*) ()
   from /home/plaguefest/servers2/css/*/
bin/engine_srv.so
No symbol table info available
.
#2  0xf6131218 in CBaseServer::WriteTempEntities(CBaseClient*, CFrameSnapshot*, CFrameSnapshot*, bf_write&, int) ()
   
from /home/plaguefest/servers2/css/*/bin/engine_srv.so
No symbol table info available.
#3  0xf61243b3 in CBaseClient::SendSnapshot(CClientFrame*) ()
   from /home/plaguefest/servers2/css/*/
bin/engine_srv.so 
frame 0
info registers

PHP Code:
(gdbframe 0
#0  0xf616a570 in CEngineRecipientFilter::IncludesPlayer(int) ()
   
from /home/plaguefest/servers2/css/*/bin/engine_srv.so
(gdb) info registers
eax            0xb0     176
ecx            0xffdb1c40       -2417600
edx            0xf6289d88       -165110392
ebx            0xba27cbc        195198140
esp            0xffd6b630       0xffd6b630
ebp            0xffd6b658       0xffd6b658
esi            0x0      0
edi            0x16     22
eip            0xf616a570       0xf616a570 <CEngineRecipientFilter::IncludesPlayer(int)+48>
eflags         0x210286 [ PF SF IF RF ID ]
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x63     99
(gdb) 
Capture the first couple frames with registers (frame 1, frame 2). Copy the full output from `bt full` and those info registers and post them here.
KyleS is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 01-14-2014 , 12:09   Re: [ANY] SteamWorks
Reply With Quote #68

Okay, couldn't get the server to crash atm (borked my own plugin), check back in half an hour (dinner).

EDIT:
Code:
warning: Could not load shared library symbols for bin/steamclient.so.
Do you need "set solib-search-path" or "set sysroot"?
[New Thread 0xe751cb40 (LWP 26826)]
warning: Could not load shared library symbols for bin/crashhandler.so.
Do you need "set solib-search-path" or "set sysroot"?
[New Thread 0xe5e32b40 (LWP 26827)]
warning: Could not load shared library symbols for bin/libsteamvalidateuseridtickets.so.
Do you need "set solib-search-path" or "set sysroot"?
[Thread 0xe751cb40 (LWP 26826) exited]
[New Thread 0xe751cb40 (LWP 26845)]
[New Thread 0xe5b86b40 (LWP 26904)]
[Thread 0xe5b86b40 (LWP 26904) exited]
[Thread 0xe5e32b40 (LWP 26827) exited]
[Thread 0xe751cb40 (LWP 26845) exited]
warning: Could not load shared library symbols for bin/steamclient.so.
Do you need "set solib-search-path" or "set sysroot"?
[New Thread 0xe751cb40 (LWP 26925)]
warning: Could not load shared library symbols for bin/crashhandler.so.
Do you need "set solib-search-path" or "set sysroot"?
[New Thread 0xe5e32b40 (LWP 26926)]
[Thread 0xe751cb40 (LWP 26925) exited]
warning: Could not load shared library symbols for bin/libsteamvalidateuseridtickets.so.
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGSEGV, Segmentation fault.
0xf65024f0 in sm_UserHasLicenseForApp (pContext=0x9c5f4c0, params=0x9c6dc98) at gsnatives.cpp:175
175     gsnatives.cpp: No such file or directory.
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.

Last edited by Dr. Greg House; 01-14-2014 at 12:32.
Dr. Greg House is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 01-17-2014 , 02:27   Re: [ANY] SteamWorks
Reply With Quote #69

Any news?
Can I help with something?
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-17-2014 , 02:32   Re: [ANY] SteamWorks
Reply With Quote #70

Quote:
Originally Posted by Dr. Greg House View Post
Any news?
https://github.com/KyleSanderson/Ste...commits/master Jan14th.
Quote:
Originally Posted by Dr. Greg House View Post
Can I help with something?
While testing I hit an old SM extension bug to do with reloadin, and that took most of the day. There's also something strange that happens with the detour that I need to look at further. I can make another build for you (preferably you build it yourself), but it may cause even more problems.
KyleS 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 02:27.


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