Raised This Month: $32 Target: $400
 8% 

Linux Random Unrecoverable Crashes


Post New Thread Reply   
 
Thread Tools Display Modes
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-06-2012 , 04:48   Re: Linux Random Unrecoverable Crashes
Reply With Quote #21

Quote:
Originally Posted by moxie2020 View Post
Here is a debug log finally. Can anyone help me translate?
Quote:
Originally Posted by asherkin View Post
Your stack trace is too late, it's already inside the exception handler (which is then crashing again due to Valve miss-implementing it), you'll need to run the server inside a debugger to catch the exception before Breakpad handles it.
__________________
asherkin is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 06-06-2012 , 12:05   Re: Linux Random Unrecoverable Crashes
Reply With Quote #22

So do I launch gdb in a screen and somehow launch a server in that screen?
moxie2020 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-07-2012 , 10:41   Re: Linux Random Unrecoverable Crashes
Reply With Quote #23

I believe the game's orangebox/srcds_run startup script has a -debug command line parameter, but it's never worked properly for me.

Instead, I found directions somewhere a while ago and created this srcds_gdb script (that also goes in the orangebox directory). You still need to pass it the -debug switch to run srcds via gdb, though.

Note: This is based on TF2's srcds_run startup script. For users finding this thread through search, it also works on other Source 2009 / Source MP games, but possibly not other games. For CS:S, it needs to go in the css directory rather than orangebox.

Note 2: I gzipped it since I can't attach it directly.
Attached Files
File Type: gz srcds_gdb.gz (4.0 KB, 64 views)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-07-2012 at 10:57.
Powerlord is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 06-07-2012 , 12:18   Re: Linux Random Unrecoverable Crashes
Reply With Quote #24

Quote:
Originally Posted by Powerlord View Post
I believe the game's orangebox/srcds_run startup script has a -debug command line parameter, but it's never worked properly for me.

Instead, I found directions somewhere a while ago and created this srcds_gdb script (that also goes in the orangebox directory). You still need to pass it the -debug switch to run srcds via gdb, though.

Note: This is based on TF2's srcds_run startup script. For users finding this thread through search, it also works on other Source 2009 / Source MP games, but possibly not other games. For CS:S, it needs to go in the css directory rather than orangebox.

Note 2: I gzipped it since I can't attach it directly.
How do I pass the -debug switch to run srcds via gdb? I am utterly confused I have 9 forked servers each running in their own screen. How would I debug them all with this?
moxie2020 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-07-2012 , 12:54   Re: Linux Random Unrecoverable Crashes
Reply With Quote #25

Quote:
Originally Posted by moxie2020 View Post
How do I pass the -debug switch to run srcds via gdb? I am utterly confused I have 9 forked servers each running in their own screen. How would I debug them all with this?
Well, if you wanted to, you could rename srcds_run and change srcds_gdb to srcds_run. The problem is that you still need to pass -debug ...

How are your servers being launched? Mine tend to use a shell script that runs either srcds_run (older) or nemrun (newer). Nemrun passes any switches it doesn't recognize on to srcds_run, so you can specify -debug there, too.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 06-07-2012 , 15:13   Re: Linux Random Unrecoverable Crashes
Reply With Quote #26

Quote:
Originally Posted by Powerlord View Post
Well, if you wanted to, you could rename srcds_run and change srcds_gdb to srcds_run. The problem is that you still need to pass -debug ...

How are your servers being launched? Mine tend to use a shell script that runs either srcds_run (older) or nemrun (newer). Nemrun passes any switches it doesn't recognize on to srcds_run, so you can specify -debug there, too.
PHP Code:
#!/bin/sh
echo "Starting Server Valve"
cd /home/pro/orangebox/
screen ----S valve ./srcds_run -game tf -ip 66.150.188.192 +maxplayers 32 -port 27015 -nohltv -debug -autoupdate -timeout 30 +mm_pluginsfile addons/metamod/metaplugins_valve.ini +sm_basepath addons/sourcemod_valve +servercfgfile la32_valve.cfg +map cp_dustbowl 
This is one of my launch scripts. I am also wondering if my issue is I don't have multiple metamod folders. I saw today there is a launch command to specify the metamod directory:
+mm_basedir "server1/metamod"

I used this guide to setup my servers: http://forums.alliedmods.net/showthread.php?t=149081
moxie2020 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-07-2012 , 16:11   Re: Linux Random Unrecoverable Crashes
Reply With Quote #27

Quote:
Originally Posted by moxie2020 View Post
PHP Code:
#!/bin/sh
echo "Starting Server Valve"
cd /home/pro/orangebox/
screen ----S valve ./srcds_run -game tf -ip 66.150.188.192 +maxplayers 32 -port 27015 -nohltv -debug -autoupdate -timeout 30 +mm_pluginsfile addons/metamod/metaplugins_valve.ini +sm_basepath addons/sourcemod_valve +servercfgfile la32_valve.cfg +map cp_dustbowl 
This is one of my launch scripts. I am also wondering if my issue is I don't have multiple metamod folders. I saw today there is a launch command to specify the metamod directory:
+mm_basedir "server1/metamod"

I used this guide to setup my servers: http://forums.alliedmods.net/showthread.php?t=149081

Well, in this case, it'd just be

PHP Code:
#!/bin/sh
echo "Starting Server Valve"
cd /home/pro/orangebox/
screen ----S valve ./srcds_gdb -game tf -ip 66.150.188.192  +maxplayers 32 -port 27015 -nohltv -debug -autoupdate -timeout 30  +mm_pluginsfile addons/metamod/metaplugins_valve.ini +sm_basepath  addons/sourcemod_valve +servercfgfile la32_valve.cfg +map cp_dustbowl 
(the -debug switch was already there, I just changed which script it called)
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 06-07-2012 , 19:47   Re: Linux Random Unrecoverable Crashes
Reply With Quote #28

Quote:
Originally Posted by Powerlord View Post
Well, in this case, it'd just be

PHP Code:
#!/bin/sh
echo "Starting Server Valve"
cd /home/pro/orangebox/
screen ----S valve ./srcds_gdb -game tf -ip 66.150.188.192  +maxplayers 32 -port 27015 -nohltv -debug -autoupdate -timeout 30  +mm_pluginsfile addons/metamod/metaplugins_valve.ini +sm_basepath  addons/sourcemod_valve +servercfgfile la32_valve.cfg +map cp_dustbowl 
(the -debug switch was already there, I just changed which script it called)
Oh fantastic. Thank you. Do I need to split up metamod or is it safe to run multiple servers off of one install with multiple ini's?
moxie2020 is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 06-07-2012 , 20:05   Re: Linux Random Unrecoverable Crashes
Reply With Quote #29

Quote:
Originally Posted by Powerlord View Post
Well, in this case, it'd just be

PHP Code:
#!/bin/sh
echo "Starting Server Valve"
cd /home/pro/orangebox/
screen ----S valve ./srcds_gdb -game tf -ip 66.150.188.192  +maxplayers 32 -port 27015 -nohltv -debug -autoupdate -timeout 30  +mm_pluginsfile addons/metamod/metaplugins_valve.ini +sm_basepath  addons/sourcemod_valve +servercfgfile la32_valve.cfg +map cp_dustbowl 
(the -debug switch was already there, I just changed which script it called)
I had trouble with nemrun not restarting my servers for some reason. But if I went back to nemrun how would I alter this. Would I just change ./srcds_run to ./srcds_gdb within the nemrun script?
moxie2020 is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 06-08-2012 , 02:01   Re: Linux Random Unrecoverable Crashes
Reply With Quote #30

Quote:
Originally Posted by moxie2020 View Post
Oh fantastic. Thank you. Do I need to split up metamod or is it safe to run multiple servers off of one install with multiple ini's?
I ran it with what you gave me and it never starts the server it just keeps rebooting and does not create a debug log.

PHP Code:
6 depot(swill be installed/updated
  0
:01 Checking local files and building download list for depot 441 'Team Fortress 2 Content' version 330
  0
:01     Connecting content server session for version 330
  0
:01     [205.185.220.132:27030Connecting...
  
0:01     [205.185.220.132:27030Connection establishedhandshaking...
  
0:01     [205.185.220.132:27030Sending login message...
  
0:01     Fetching version 330 manifest
  0
:01     Reading version 330 checksum table
  0
:01     Fetching exclude list
  
0:01     Calculating download size
  0
:01     No files will be downloaded
  0
:01 Checking local files and building download list for depot 442 'Team Fortress 2 Materials' version 179
  0
:01     Connecting content server session for version 179
  0
:02     [205.185.220.132:27030Disconnecting
  0
:02     [4.28.151.210:27030Connecting...
  
0:02     [4.28.151.210:27030Connection establishedhandshaking...
  
0:02     [4.28.151.210:27030Sending login message...
  
0:02     Fetching version 179 manifest
  0
:02     Reading version 179 checksum table
  0
:02     Fetching exclude list
  
0:02     Calculating download size
  0
:02     No files will be downloaded
  0
:02 Checking local files and building download list for depot 206 'Source Materials' version 8
  0
:02     Connecting content server session for version 8
  0
:03     [4.28.151.210:27030Reusing connection
  0
:03     [4.28.151.210:27030Sending login message...
  
0:03     Fetching version 8 manifest
  0
:03     Reading version 8 checksum table
  0
:03     Fetching exclude list
  
0:03     Calculating download size
  0
:03     No files will be downloaded
  0
:03 Checking local files and building download list for depot 207 'Source Models' version 4
  0
:03     Connecting content server session for version 4
  0
:03     [4.28.151.210:27030Reusing connection
  0
:03     [4.28.151.210:27030Sending login message...
  
0:03     Fetching version 4 manifest
  0
:03     Reading version 4 checksum table
  0
:03     Fetching exclude list
  
0:03     Calculating download size
  0
:03     No files will be downloaded
  0
:03 Checking local files and building download list for depot 208 'Source Sounds' version 4
  0
:03     Connecting content server session for version 4
  0
:04     [4.28.151.210:27030Reusing connection
  0
:04     [4.28.151.210:27030Sending login message...
  
0:04     Fetching version 4 manifest
  0
:04     Reading version 4 checksum table
  0
:04     Fetching exclude list
  
0:04     Calculating download size
  0
:04     No files will be downloaded
  0
:04 Checking local files and building download list for depot 314 'OB Linux Dedicated Server' version 159
  0
:04     Connecting content server session for version 159
  0
:04     [4.28.151.210:27030Reusing connection
  0
:04     [4.28.151.210:27030Sending login message...
  
0:04     Fetching version 159 manifest
  0
:04     Reading version 159 checksum table
  0
:04     Calculating download size
  0
:04     No files will be downloaded
  0
:04 [4.28.151.210:27030Disconnecting
HLDS installation up to date
./srcds_linux -game tf -ip 66.150.188.192 +maxplayers 32 -port 27015 -nohltv -debug -autoupdate -timeout 30 +mm_pluginsfile addons/metamod/metaplugins_valve.ini +sm_basepath addons/sourcemod_valve +servercfgfile la32_valve.cfg +map cp_dustbowl
Thu Jun  7 22
:58:32 PDT 2012Server restart in 30 seconds 
moxie2020 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 11:20.


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