Debriefing > Bug Reports & Fixes

[Server] Debian 5 - srcds_run: line 372: 16417 Segmentation fault

<< < (2/2)

osuper:

--- Quote ---run() {
        # Runs the steam update and server
        # Loops if RESTART is set
        # Debugs if server failure is detected
        # Note: if RESTART is not set then
        # 1. DEBUG is set then the server is NOT exec'd
        # 2. DEBUG is not set the the server is exec'd

        if test -n "$RESTART" ; then
                echo "Server will auto-restart if there is a crash."

                #loop forever
                while true
                do
                        # Update if needed
                        update

                        # Run the server
                        $HL_CMD
                        retval=$?
                        if test $retval -eq 0 && test -z "$AUTO_UPDATE"; then
                                break; # if 0 is returned then just quit
                        fi

                        debugcore $retval

                        echo "`date`: Server restart in $TIMEOUT seconds"

                        # don't thrash the hard disk if the server dies, wait a little
                        sleep $TIMEOUT
                done # while true
        else
                # Update if needed
                update

                # Run the server
                if test -z "$DEBUG"; then
                        # debug not requested we can exec
                        exec $HL_CMD
                else
                        # debug requested we can't exec
                        $HL_CMD
                        debugcore $?
                fi
        fi
}

--- End quote ---


The line 372 is the function call "run()"  (the first line of the quote)

killermonkey:
You are going to have to attempt more debugging steps then what you have done already. I can't help you one bit with the information you have provided thus far, sorry.

FWIW, do not run your server as root. Also, make sure your directories are setup correctly. AND, provided a print out of the ldd reports I told the other folks to do (link)

osuper:
Hi back killermonkey,

FWIW, I have create a new user, and now it works perfectly. :)
Trying to host a server as root was a very bad idea, sorry for that !

For informations: The server is running fine on Debian 5 (x86) 32Bits

Have a nice day littlemonkey =)

Navigation

[0] Message Index

[*] Previous page

Go to full version