(core Dumped) $hl $* [help Please]
WARPAQ
Join Date: 2002-12-04 Member: 10459Members
<b> Error when people join </b>
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
./hlds_run: line 83: 2369 Segmentation fault (core dumped) $HL $*
debug.cmds:1: Error in sourced command file:
Cannot access memory at address 0xbffe92ac
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Can anyone tell me what is wrong? It only seems to happen when people try connect, and they can't; "just sits there".
Server is running off of redhat 7.2...
<b>Here is the source of the hlds_run.</b>
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
#!/bin/sh
#
# Copyright © 2002, Valve LLC. All rights reserved.
#
# a wrapper script for the main hl dedicated server binary.
# Performs auto-restarting of the server on crash. You can
# extend this to log crashes and more.
#
HL=./hlds
TIMEOUT=10 # time to wait after a crash (in seconds)
CRASH_DEBUG_MSG="email debug.log to sdk@valvesoftware.com"
GDB="gdb" # the gdb binary to run
DEBUG_LOG="debug.log"
# uncomment this line if you want ctrl-c ignored
#trap "" SIGINT
# setup the libraries, local dir first!
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
if test -n "`echo $* | grep "\-norestart"`" ; then
RESTART=""; # norestart defined, do do restarts
else
RESTART="yes";
fi
DEBUG=`echo $* | grep "\-debug"`
if test -n "$DEBUG" ; then
#turn on core dumps <!--emo&:)--><img src='http://www.natural-selection.org/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> (if possible)
echo "Enabling debug mode"
if test "`ulimit -c`" -eq 0; then
ulimit -c 2000
fi
GDB_TEST=`$GDB -v`
if test -z "$GDB_TEST"; then
echo "Please install gdb first."
echo "goto <a href='http://www.gnu.org/software/gdb/' target='_blank'>http://www.gnu.org/software/gdb/</a> "
DEBUG="" # turn off debugging cause gdb isn't installed
fi
fi
if test -n "$RESTART" ; then
echo "Auto-restarting the server on crash"
#loop forever
while true
do
# run the server <!--emo&:)--><img src='http://www.natural-selection.org/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> the $* passes all the arguments provided to the script
# to the server binary
$HL $*
#if test $? -eq 0; then
# break; # the binary exited properly, usually due to a "quit"
#fi
if test -n "$DEBUG" ; then
if test -f core ; then # check a core was dumped
echo "bt" > debug.cmds;
echo "info locals" >> debug.cmds;
echo "info sharedlibrary" >> debug.cmds
echo "info frame" >> debug.cmds; # works, but gives an error... must be last
echo "----------------------------------------------" >> $DEBUG_LOG
echo "CRASH: `date`" >> $DEBUG_LOG
$GDB $HL core -x debug.cmds -batch >> $DEBUG_LOG
echo "End of crash report" >> $DEBUG_LOG
echo "----------------------------------------------" >> $DEBUG_LOG
echo $CRASH_DEBUG_MSG
rm debug.cmds
fi
else
echo "Add \"-debug\" to the $0 command line to generate a debug.log to help with solving this problem"
fi
echo "`date`: Server Died"
sleep $TIMEOUT # don't thrash the hard disk if the server dies, wait a little
done # while true
else
exec $HL $*
fi
echo "`date`: Server Quit"<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
./hlds_run: line 83: 2369 Segmentation fault (core dumped) $HL $*
debug.cmds:1: Error in sourced command file:
Cannot access memory at address 0xbffe92ac
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Can anyone tell me what is wrong? It only seems to happen when people try connect, and they can't; "just sits there".
Server is running off of redhat 7.2...
<b>Here is the source of the hlds_run.</b>
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
#!/bin/sh
#
# Copyright © 2002, Valve LLC. All rights reserved.
#
# a wrapper script for the main hl dedicated server binary.
# Performs auto-restarting of the server on crash. You can
# extend this to log crashes and more.
#
HL=./hlds
TIMEOUT=10 # time to wait after a crash (in seconds)
CRASH_DEBUG_MSG="email debug.log to sdk@valvesoftware.com"
GDB="gdb" # the gdb binary to run
DEBUG_LOG="debug.log"
# uncomment this line if you want ctrl-c ignored
#trap "" SIGINT
# setup the libraries, local dir first!
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
if test -n "`echo $* | grep "\-norestart"`" ; then
RESTART=""; # norestart defined, do do restarts
else
RESTART="yes";
fi
DEBUG=`echo $* | grep "\-debug"`
if test -n "$DEBUG" ; then
#turn on core dumps <!--emo&:)--><img src='http://www.natural-selection.org/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> (if possible)
echo "Enabling debug mode"
if test "`ulimit -c`" -eq 0; then
ulimit -c 2000
fi
GDB_TEST=`$GDB -v`
if test -z "$GDB_TEST"; then
echo "Please install gdb first."
echo "goto <a href='http://www.gnu.org/software/gdb/' target='_blank'>http://www.gnu.org/software/gdb/</a> "
DEBUG="" # turn off debugging cause gdb isn't installed
fi
fi
if test -n "$RESTART" ; then
echo "Auto-restarting the server on crash"
#loop forever
while true
do
# run the server <!--emo&:)--><img src='http://www.natural-selection.org/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> the $* passes all the arguments provided to the script
# to the server binary
$HL $*
#if test $? -eq 0; then
# break; # the binary exited properly, usually due to a "quit"
#fi
if test -n "$DEBUG" ; then
if test -f core ; then # check a core was dumped
echo "bt" > debug.cmds;
echo "info locals" >> debug.cmds;
echo "info sharedlibrary" >> debug.cmds
echo "info frame" >> debug.cmds; # works, but gives an error... must be last
echo "----------------------------------------------" >> $DEBUG_LOG
echo "CRASH: `date`" >> $DEBUG_LOG
$GDB $HL core -x debug.cmds -batch >> $DEBUG_LOG
echo "End of crash report" >> $DEBUG_LOG
echo "----------------------------------------------" >> $DEBUG_LOG
echo $CRASH_DEBUG_MSG
rm debug.cmds
fi
else
echo "Add \"-debug\" to the $0 command line to generate a debug.log to help with solving this problem"
fi
echo "`date`: Server Died"
sleep $TIMEOUT # don't thrash the hard disk if the server dies, wait a little
done # while true
else
exec $HL $*
fi
echo "`date`: Server Quit"<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Comments
<b>gdb hlds_run NameOfYourCoreFile</b>(probably hlds.core)
type 'quit' once you're in gdb. It's initial core analysis should help us.
Are you running adminmod, amxmod, clanmod, or any metamod plugins?
<b>gdb hlds_run NameOfYourCoreFile</b>(probably hlds.core)
type 'quit' once you're in gdb. It's initial core analysis should help us.
Are you running adminmod, amxmod, clanmod, or any metamod plugins? <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
Well I did have AM and MM, took them off and now server is running just fine with no errors.
Have a look at the stickied thread "Ns Server V1.04 With Adminmod On Redhat 7.3 And 8", and see if the the adminmod Dr. Giggles compiled works any better for you.