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

/hlds_run: line 321: 7373 Segmentation fault $HL_CMD


Post New Thread Reply   
 
Thread Tools Display Modes
bluechester
AlliedModders Donor
Join Date: Nov 2008
Old 04-30-2010 , 00:14   Re: /hlds_run: line 321: 7373 Segmentation fault $HL_CMD
Reply With Quote #101

Quote:
Originally Posted by Sepehr View Post
./hlds_run: line 321: 26107 Segmentation fault $HL_CMD

I have bots on my server.
A custom made mod
Deages Map Manager.
That's all...
If i switch my server from linux to XP will it solve the problem?
Yes
bluechester is offline
Sunshine live
Veteran Member
Join Date: May 2009
Location: Berlin
Old 05-09-2010 , 04:39   Re: /hlds_run: line 321: 7373 Segmentation fault $HL_CMD
Reply With Quote #102

Quote:
Originally Posted by Sho0ter View Post
Turn off DEP in BIOS
Install gcc and gdb
think you know me?
__________________
Sunshine live is offline
Send a message via ICQ to Sunshine live Send a message via MSN to Sunshine live Send a message via Skype™ to Sunshine live
tulga
Junior Member
Join Date: May 2010
Old 05-21-2010 , 08:25   Re: /hlds_run: line 321: 7373 Segmentation fault $HL_CMD
Reply With Quote #103

i'm thinking the problem is when server crashed, the program must exit and return exit status, but the program doesnt exit.
so i made simple bash script not yet tested.
1. First create file named "prestart.sh"
Code:
#!/bin/sh

./hlds_run -game cstrike -binary ./hlds_i686 +ip serverIp -nomaster -insecure +maxplayers 30 +map de_dust2 &> $1
2. blah blah startserver.sh
Code:
#!/bin/sh

CS_SCRIPTNAME="prestart.sh"
CS_WORKING_DIR=`pwd`
CS_SCREEN_NAME="cs_server"
CS_LOGFILE="${CS_WORKING_DIR}/runlog"
CS_START_COMMAND="screen -A -m -d -S $CS_SCREEN_NAME ./$CS_SCRIPTNAME $CS_LOGFILE"
CS_STOP_COMMAND="screen -S $CS_SCREEN_NAME -X quit"
CS_TIMEOUT=10
CS_CHECKTIMEOUT=5


$CS_START_COMMAND
sleep $CS_CHECKTIMEOUT

while true
do
CS_SERVER_IS_CRASHED=`tail -n 1 $CS_LOGFILE | grep "^\./hlds_run:.*Segmentation fault"`

if test -n "$CS_SERVER_IS_CRASHED"; then
  $CS_STOP_COMMAND >/dev/null 2>&1
  echo "`date`: Server restart in $CS_TIMEOUT seconds"
  echo "`date`: CRASHED AT" >> crashlog
  sleep $CS_TIMEOUT
  $CS_START_COMMAND
fi
sleep $CS_CHECKTIMEOUT
done
3. chmod +x prestart.sh
chmod +x startserver.sh
4. execute bash script
./startserver.sh
NOT YET TESTED

Last edited by tulga; 05-21-2010 at 09:57.
tulga is offline
Salau
Junior Member
Join Date: Mar 2010
Old 05-23-2010 , 11:20   Re: /hlds_run: line 321: 7373 Segmentation fault $HL_CMD
Reply With Quote #104

Doesn't work here.

I've changed the "serverIP" and "CS_Working_dir" to cstrike.

Doesn't made the logfile, neither restarted the server.

hugs.
Salau is offline
tulga
Junior Member
Join Date: May 2010
Old 05-26-2010 , 11:45   Re: /hlds_run: line 321: 7373 Segmentation fault $HL_CMD
Reply With Quote #105

Quote:
Originally Posted by Salau View Post
Doesn't work here.

I've changed the "serverIP" and "CS_Working_dir" to cstrike.

Doesn't made the logfile, neither restarted the server.

hugs.
Code:
#!/bin/sh

./hlds_run -game cstrike -binary ./hlds_i686 +ip serverIp -nomaster -insecure +maxplayers 30 +map de_dust2 > $1 2>&1
change this line
tulga is offline
Salau
Junior Member
Join Date: Mar 2010
Old 05-29-2010 , 01:25   Re: /hlds_run: line 321: 7373 Segmentation fault $HL_CMD
Reply With Quote #106

and.. segmentation fault =x
not resolved =z

Did i make it correct?

my hlds_run
Quote:
...

#!/bin/sh

CS_SCRIPTNAME="prestart.sh"
CS_WORKING_DIR=`cstrike`
CS_SCREEN_NAME="cs_server"
CS_LOGFILE="${CS_WORKING_DIR}/runlog"
CS_START_COMMAND="screen -A -m -d -S $CS_SCREEN_NAME ./$CS_SCRIPTNAME $CS_LOGFILE"
CS_STOP_COMMAND="screen -S $CS_SCREEN_NAME -X quit"
CS_TIMEOUT=10
CS_CHECKTIMEOUT=5


$CS_START_COMMAND
sleep $CS_CHECKTIMEOUT

while true
do
CS_SERVER_IS_CRASHED=`tail -n 1 $CS_LOGFILE | grep "^\./hlds_run:.*Segmentation fault"`

if test -n "$CS_SERVER_IS_CRASHED"; then
$CS_STOP_COMMAND >/dev/null 2>&1
echo "`date`: Server restart in $CS_TIMEOUT seconds"
echo "`date`: CRASHED AT" >> crashlog
sleep $CS_TIMEOUT
$CS_START_COMMAND
fi
sleep $CS_CHECKTIMEOUT
done
my prestart.sh
Quote:
#!/bin/sh

./hlds_run -game cstrike -binary ./hlds_i686 +ip 187.61.4.19 -master -insecure +maxplayers 20 +map de_dust2 > $1 2>&1

Last edited by Salau; 05-29-2010 at 01:36.
Salau is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 05-29-2010 , 09:12   Re: /hlds_run: line 321: 7373 Segmentation fault $HL_CMD
Reply With Quote #107

http://forums.steampowered.com/forum...69&postcount=5 ?
dFF is offline
bluechester
AlliedModders Donor
Join Date: Nov 2008
Old 06-01-2010 , 01:40   Re: /hlds_run: line 321: 7373 Segmentation fault $HL_CMD
Reply With Quote #108

Seg faults do not occur without a reason. See if your server is configured correctly, if that doesn't help, run your server on windows if that's a choice.
bluechester is offline
plat00n
New Member
Join Date: Jun 2010
Old 06-02-2010 , 17:05   Re: /hlds_run: line 321: 7373 Segmentation fault $HL_CMD
Reply With Quote #109

Hello,

Somebody got the answer ? because i've got the same error :/

Linux ARES 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 GNU/Linux

NB : I think i increase my problem, ... I delete all files from the install folders and now ... i can't download anything... When I launch ./steam I have this message :

Checking bootstrapper version ...

It take some times and when i relaunch it... I've that message :

Checking bootstrapper version ...
removing stale semaphore last operated on by process 2311 with name 0eBlobRegistryMutex_71C80BA6F810A3DF373EE29A4 8467924
removing stale semaphore last operated on by process 2311 with name 0eBlobRegistrySignal_71C80BA6F810A3DF373EE29A 48467924
Getting version 36 of Steam HLDS Update Tool
Instruction illégale

Aoutch
plat00n is offline
DeLiriuM
Senior Member
Join Date: Dec 2006
Old 07-09-2010 , 05:06   Re: /hlds_run: line 321: 7373 Segmentation fault $HL_CMD
Reply With Quote #110

Ok. So this i really pissing me off for 6 months now.

I'm using slackware 13.0 and i constantly get these types of error (RANDOMLY)

./hlds_run: line 321: 20901 Segmentation fault $HL_CMD

I tried running the server without metamod, with metamod (metamod p), amx mod - all the same.
I also noticed that I get this error nearly every time the server changes to a ka_.
__________________
DeLiriuM 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 18:25.


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