lfnetwork.com mark read register faq members calendar

Thread: Segmentation fault
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 05-01-2002, 05:30 PM   #1
guest
Banned
 
guest's Avatar
 
Status: Banned
Join Date: Apr 2002
Location: Browsing
Posts: 56
Segmentation fault

My JK2 dedicated servers are running on a FreeBSD machine, and every now and then one of them crashes, with a "Segmentation fault" error, leaving an interesting "coredump".

Is this due to some bug in JK2ded or is it that my server is overheating (it's in a closet) ?

Anyone else with the same problem?
guest is offline   you may: quote & reply,
Old 05-01-2002, 05:52 PM   #2
jk2eservers
 
Join Date: Apr 2002
Posts: 17
I have been getting segmentation faults errors after the jedi dedicated server (linux) has been running for a couple of days....

a simple restart of the jedi server, and its all back to normal again, it seems like there is a bug somewhere.


-r00t3d
jk2eservers is offline   you may: quote & reply,
Old 05-01-2002, 06:38 PM   #3
MatrixCPA
Senior Member
 
Join Date: Apr 2002
Location: Southern California
Posts: 1,199
The seg fault errors have been a plague since the very beginning. If you're running a ded server version prior to 1.02c, then you are open to the same crash vulnerability that existed in Q3 1.29f/g and someone could be intentionally crashing your server. However, even with 1.02c there's still plenty of seg faults to go around. The best thing to do is have an auto-restart script of some kind running to restart the server when it crashes. Mine crashes at least 1-2 times a day--sometimes more often.


"Do you expect me to talk?"

"No, Mr. Bond, I expect you to DIE."
MatrixCPA is offline   you may: quote & reply,
Old 05-01-2002, 06:45 PM   #4
jk2eservers
 
Join Date: Apr 2002
Posts: 17
I use, 1.02c and still get those darn segs

Auto-restart script, any ideas where I can get a hold of that?

Thanks


-r00t3d
jk2eservers is offline   you may: quote & reply,
Old 05-01-2002, 06:47 PM   #5
MatrixCPA
Senior Member
 
Join Date: Apr 2002
Location: Southern California
Posts: 1,199
Linux or winblows?


"Do you expect me to talk?"

"No, Mr. Bond, I expect you to DIE."
MatrixCPA is offline   you may: quote & reply,
Old 05-01-2002, 06:54 PM   #6
jk2eservers
 
Join Date: Apr 2002
Posts: 17
Linux my friend.

Thanks


-r00t3d
jk2eservers is offline   you may: quote & reply,
Old 05-01-2002, 07:05 PM   #7
MatrixCPA
Senior Member
 
Join Date: Apr 2002
Location: Southern California
Posts: 1,199
I use a combination of 3 scripts to set this up, which isn't necessay, but I use it.

startjk2 -- I use ./startjk2 to run the server

#!/bin/csh
echo -n "Starting - "
date "+%D %H:%M:%S"
cd /usr/local/games/jk2
screen -d -m ./holdjk2


holdjk2 -- This is what really restarts the server

#!/bin/csh
echo Ok
while 1
date "+%D %H:%M:%S" >> /tmp/jk2_start.log
echo "JK2 Server Started." >> /tmp/jk2_start.log
sh startup.sh
date "+%D %H:%M:%S" >> /tmp/jk2_start.log
echo "JK2 Server crashed, Restarting." >> /tmp/jk2_start.log
sleep 5
end


startup.sh -- This is just my command line

#!/bin/sh
./jk2ded +set dedicated 2 +set vm_game 2 +set ttycon 0 +set com_hunkMegs 128 +set com_zoneMegs 24 +exec server.cfg

It creates a log which lets you know when the server crashed and restarted in /tmp. I'm working on a bit more sophisticated version which will ping the master server and log the stderr so more data can be collected about just WHY the darn thing dies so often. My RtCW server has run for over a month without a single crash--not one.


"Do you expect me to talk?"

"No, Mr. Bond, I expect you to DIE."
MatrixCPA is offline   you may: quote & reply,
Old 08-01-2013, 07:41 PM   #8
Sr. Canseco
Lurker
 
Join Date: Aug 2013
Posts: 5
Hello sir, i make a tutorial to solve this problem, here:

http://jkhub.org/tutorials/article/1...-linux-server/
Sr. Canseco is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Help Center > Technical Help > Segmentation fault

Thread Tools
Display Modes

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 05:57 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.