After ES/GG5.1 install, crash @launch (Segmentation Fault)

Having problems with GunGame5 (NOT FOR BUGS)? Ask here!

After ES/GG5.1 install, crash @launch (Segmentation Fault)

Postby electrickoolaid » Mon Feb 18, 2013 11:54 pm

Hey guys. I'm running (or attempting to run) a dedicated Gungame 5.1 server on Centos 6.3. Before I attempted to install EventScripts and GunGame 5.1, the server was working. Now, it isn't, and I can't figure it out.

The console output is located here.

The string I use to start the server is:
./srcds_run -game cstrike +max_players 24 +map de_dust2 +sv_lan 0


The error, as far as I can tell, is this part:

Uploading dump (in-process) [proxy '']
/tmp/dumps/crash_20130218173951_1.dmp
success = yes
response:  CrashID=bp-f22cbbe3-77ee-4566-906c-d90ca2130218
./srcds_run: line 372:  3052 Segmentation fault      $HL_CMD
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Mon Feb 18 17:39:52 EST 2013: Server restart in 10 seconds
Mon Feb 18 17:39:55 EST 2013: Server Quit
 


To install everything, I followed the guide on the gungame wiki for installing ES and GG. I also found a couple ES addons on the eventscripts website. The zips I downloaded and used are:

es2-ob-linux-bld378.zip
gungame_5_1_630.zip
sp_extensions.zip
quake.zip (nothing but quake sounds, no scripts or anything)
stickynades_ob_1.3.zip
Show-Damage_v2.5.zip
 


My autoexec.cfg:

sv_allow_wait_command 1
stuffcmds

eventscripts_subdirectory events
mattie_eventscripts 1

es_load stickynades_ob
es_load showdamage
es_load gungame51
 


And my server.cfg: here

'-debug' doesn't seem to do anything, and the log files generated in /srcds/css/cstrike/logs only contain snippets of each attempted server start.

When I disable autoexec.cfg by renaming it, the server launches and bots join. If I then type 'es_load gungame51', the server immediately crashes with the following output and attempts to restart (which I cancel):
es_load gungame51
11
Server logging enabled.
L 02/18/2013 - 17:57:48: Log file closed
Server logging data to file logs/L0218050.log
L 02/18/2013 - 17:57:48: Log file started (file "logs/L0218050.log") (game "/root/srcds/css/cstrike") (version "5198")
L 02/18/2013 - 17:57:48: "[SFIT] Ted<3><BOT><>" connected, address "none"
L 02/18/2013 - 17:57:48: "[SFIT] Ted<3><BOT><Unassigned>" joined team "TERRORIST"
Uploading dump (in-process) [proxy '']
/tmp/dumps/crash_20130218175748_1.dmp
success = yes
response:  CrashID=bp-591674eb-c436-41c0-8df9-44f6c2130218
./srcds_run: line 372:  3091 Segmentation fault      $HL_CMD
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Mon Feb 18 17:57:49 EST 2013: Server restart in 10 seconds


I don't know if that means the problem is with gungame, or what. I figure it's probably user error; I don't have a lot of experience with Linux, or any experience with Source server management. Any help would be greatly appreciated. Thanks.
electrickoolaid

Private
Private
 
Posts: 11
Joined: Mon Feb 18, 2013 11:13 pm
Steam Friends Name: electrickoolaid

Postby satoon101 » Tue Feb 19, 2013 12:05 am

Do you have any bot_ commands within GunGame itself? I ask because it seems as though a bot joined right after you used es_load gungame51. There is a very well known crash when trying to execute commands on a bot that enters and exits the server in the same tick. This could very well be your issue.

If you could, find any cfg files in which you have any bot_ commands (in particular bot_add, bot_add_t, or bot_add_ct) and post their filenames and contents here.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby electrickoolaid » Tue Feb 19, 2013 12:15 am

Thanks for the prompt reply satoon.

I haven't modified any of the gungame config files from their defaults (yet). I'm running a search now to find any instances of "bot_add" in any files associated with srcsds. I'll report findings (if any) once its done
electrickoolaid

Private
Private
 
Posts: 11
Joined: Mon Feb 18, 2013 11:13 pm
Steam Friends Name: electrickoolaid

Postby electrickoolaid » Tue Feb 19, 2013 12:24 am

Oh. My server.cfg has bot_ commands in it. Quite a few. Let's see what happens when I comment out bot_add.

EDIT: Hey, it appears to be working now. Awesome.
electrickoolaid

Private
Private
 
Posts: 11
Joined: Mon Feb 18, 2013 11:13 pm
Steam Friends Name: electrickoolaid

Postby satoon101 » Tue Feb 19, 2013 12:59 am

Oh, yeah, I forgot that GunGame executes the server.cfg, so that is why it would happen when GunGame loads. As I said, it is a pretty common crash, since using bot_add commands can very easily cause bots to join and exit the server in the same tick. I always recommend using bot_quota as the very last bot_ command and not using any bot_add commands to remedy this.

At any rate, glad to hear you got it working!!

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby electrickoolaid » Tue Feb 19, 2013 4:26 am

Okay, so I thought it was working because the server didn't crash automatically. I joined it though, and some bots auto-joined when I picked a team, which crashed the server. Same error about a Segmentation Fault. I moved bot_quota to the bottom of server.cfg, and still got the error.

How do people run GG servers with bots?

EDIT: I rebooted the server, it appears to not be crashing now.

EDIT2: It started crashing on join again. Setting bot_join_after_player to 0 seems to fix it, but now bots are constantly playing on the server. I haven't joined and stayed through to a map change yet, I don't know if the server will stay working after a map change.
electrickoolaid

Private
Private
 
Posts: 11
Joined: Mon Feb 18, 2013 11:13 pm
Steam Friends Name: electrickoolaid

Postby satoon101 » Tue Feb 19, 2013 6:15 am

Could you paste your bot configuration here?

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby electrickoolaid » Tue Feb 19, 2013 12:07 pm

Here's my server.cfg, minus the hostname and rcon password. I generated it from a website I can't seem to find in my history at the moment. This is the only file that contains any bot commands.
electrickoolaid

Private
Private
 
Posts: 11
Joined: Mon Feb 18, 2013 11:13 pm
Steam Friends Name: electrickoolaid

Postby electrickoolaid » Wed Feb 20, 2013 6:50 am

I tried commenting out bot_add and bot_quota in server.cfg and running the server. It appears to launch fine, but adding any bots through the console crashes the server immediately with the same (or very similar) error.

I also got some "Gungame 5.1 caught exceptions" messages this time, but they don't look related to the bot problem, and they don't crash the server by themselves.
electrickoolaid

Private
Private
 
Posts: 11
Joined: Mon Feb 18, 2013 11:13 pm
Steam Friends Name: electrickoolaid

Postby satoon101 » Wed Feb 20, 2013 6:58 am

Yeah, exceptions are never the cause of errors (well, unless they cause infinite loops). I am really not sure what could be the issue. What if you do not have any bots on the server and you join it? Does it crash when you spawn?

Also, this might sound strange, but which version of SPE are you running? The release version or the Alpha? You might try installing the opposite version just to see if that might fix it. You will need to upload everything and overwrite all previous files if you do attempt this.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby ShadowBlade » Wed Feb 20, 2013 12:54 pm

This is the same problem I am having, if you have the warmup round enabled ether wait for to finish before joining a team the first time after a server restart or disable the warmup round.
ShadowBlade

Private
Private
 
Posts: 8
Joined: Mon Nov 30, 2009 7:43 pm

Postby electrickoolaid » Wed Feb 20, 2013 8:27 pm

Yeah, the server crashes when someone joins it and spawns.

I don't know what version of SPE I have. It's whatever one this is: forums.eventscrtips.com/download/file.php?id=11239 (EDIT: According to the console output, it's 1.5.0f r135)
electrickoolaid

Private
Private
 
Posts: 11
Joined: Mon Feb 18, 2013 11:13 pm
Steam Friends Name: electrickoolaid

Postby satoon101 » Thu Feb 21, 2013 2:17 am

Ok, try using the Alpha version instead:
http://forums.eventscripts.com/viewtopi ... 25&t=44752

I have seen where a couple different servers fixed crashing by using the Alpha version instead, though I am not sure why.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Re:

Postby electrickoolaid » Thu Feb 21, 2013 3:04 am

satoon101 wrote:Ok, try using the Alpha version instead:
http://forums.eventscripts.com/viewtopi ... 25&t=44752

I have seen where a couple different servers fixed crashing by using the Alpha version instead, though I am not sure why.

Satoon


Will do. How do I fully uninstall the version I have currently? I want to make sure not to accidentally leave anything behind and cause problems.
electrickoolaid

Private
Private
 
Posts: 11
Joined: Mon Feb 18, 2013 11:13 pm
Steam Friends Name: electrickoolaid

Postby satoon101 » Thu Feb 21, 2013 4:05 am

Remove everything from your server's ../addons/eventscripts/_libs/python/spe/ folder. Outside of that, only the .dll or .so file will need updated, which will be overwritten when you upload the new version.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby electrickoolaid » Thu Feb 21, 2013 5:08 am

Okay, done. I appreciate your continued assistance with this.

The server still crashes upon introduction of a bot or player, and attempts to restart itself. The first time I added a bot it seemed to be stuck in an endless restart loop for a bit, I had to mash Ctrl+C repeatedly until the server finally let me input the command to quit srcds.

The console output I'm getting now is located here.

Also, this is the current contents of my autoexec.cfg:

sv_allow_wait_command 1
stuffcmds

eventscripts_subdirectory events
mattie_eventscripts 1

plugin_load "addons/sp_extensions_ep2"

es_load stickynades_ob
es_load showdamage
es_load gungame51
 
electrickoolaid

Private
Private
 
Posts: 11
Joined: Mon Feb 18, 2013 11:13 pm
Steam Friends Name: electrickoolaid

Postby electrickoolaid » Mon Mar 11, 2013 11:48 pm

I'm still having this issue. Any ideas satoon?
electrickoolaid

Private
Private
 
Posts: 11
Joined: Mon Feb 18, 2013 11:13 pm
Steam Friends Name: electrickoolaid



Return to Troubleshooting (NOT FOR BUGS)

Who is online

Users browsing this forum: No registered users and 11 guests

cron