GoldenEye: Source Forums

Debriefing => Bug Reports & Fixes => Topic started by: osuper on February 27, 2011, 10:25:25 pm

Title: [Server] Debian 5 - srcds_run: line 372: 16417 Segmentation fault
Post by: osuper on February 27, 2011, 10:25:25 pm
Hello everyone,

I'm trying to start a dedicated gesource server on my Linux (Debian 5) Server (hosted by www.ovh.com)
I've installed hlds and can start fine a Counter-Strike Source or HL2MP server.

But when I try to start a gesource server, I got this error:
./srcds_run: line 372: 16417 Segmentation fault


I paste to you a copy of my screen after entering the command:

Quote
ks35035:~/Source/orangebox# ./srcds_run -game gesource +map ge_runway +maxplayers 4


************** WARNING ***************
Running the dedicated server as root
is highly discouraged. It is generally
unnecessary to use root privileges to
execute the dedicated server.
**************************************


The server will continue to launch in 10 seconds\rThe server will continue to launch in 9 seconds\rThe server will continue to launch in 8 seconds\rThe server will continue to launch in 7 seconds\rThe server will continue to launch in 6 seconds\rThe server will continue to launch in 5 seconds\rThe server will continue to launch in 4 seconds\rThe server will continue to launch in 3 seconds\rThe server will continue to launch in 2 seconds\rThe server will continue to launch in 1 seconds\rAuto detecting CPU
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.
Using breakpad minidump system
Using breakpad crash handler

Console initialized.
./srcds_run: line 372: 16417 Segmentation fault      $HL_CMD
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Sun Feb 27 23:24:35 CET 2011: Server restart in 10 seconds



When I try to add -debug, the program doesn't create the log file.


I'm a bit lost,
I've searched another post for this problem and found nothing.

If anyone could help me, it'll very apreciate.
Thanks.
Title: Re: [Server] Debian 5 - srcds_run: line 372: 16417 Segmentation fault
Post by: killermonkey on February 27, 2011, 11:02:40 pm
Follow the fixes in each of these threads and come back:

http://forums.goldeneyesource.net/index.php/topic,5932.0.html
http://forums.goldeneyesource.net/index.php/topic,5836.msg62066.html#msg62066

It really isn't a coincidence that all of the linux problems are arising from Debian Linux. I'll say it again: GoldenEye: Source only officially supports Ubuntu Linux.

For the record, comparing a mod's ability to run with two official releases (and totally different engines to boot) doesn't matter one bit.
Title: Re: [Server] Debian 5 - srcds_run: line 372: 16417 Segmentation fault
Post by: VC on February 28, 2011, 06:48:11 am
"problems are arising from Debian"
"officially supports Ubuntu Linux."

I received exactly one laugh from this.
Title: Re: [Server] Debian 5 - srcds_run: line 372: 16417 Segmentation fault
Post by: osuper on February 28, 2011, 10:04:15 am
Hi, and thanks for your quick answer.

Like I said, I've made a search before posting.
So I've already done the things in this posts.

- Libcurl4 is installed (and my problem doesn't mention that is a lib issue ;s)
- I've used the last wiki to install hlds / gesource on my server (http://wiki.goldeneyesource.net/index.php/Beta4_Server_Install#GoldenEye_Source_v4.1_Server_Install_Linux)
- I use the orangebox (maybe the problem come from here ???)



Quote
"problems are arising from Debian"
- That was the distri what some professional websites advise to host HL2/CSS. (The reason why I choosed this one ;s)

Quote
"officially supports Ubuntu Linux."
- Yep, I've read that, but I can't change my distri only for Goldeneye Source, I think you understand that :/
( My Server isn't used only for gesource )

Any other idea ?
Thanks for your time.
Title: Re: [Server] Debian 5 - srcds_run: line 372: 16417 Segmentation fault
Post by: killermonkey on February 28, 2011, 12:42:48 pm
What is on line 372 of srcds_run?

@VC: just because debian runs the same kernal as ubuntu doesn't mean it has the same libraries installed or available at fresh install. Especially in 64 bit environment.
Title: Re: [Server] Debian 5 - srcds_run: line 372: 16417 Segmentation fault
Post by: osuper on February 28, 2011, 12:47:13 pm
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
}


The line 372 is the function call "run()"  (the first line of the quote)
Title: Re: [Server] Debian 5 - srcds_run: line 372: 16417 Segmentation fault
Post by: killermonkey on March 01, 2011, 10:02:38 pm
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 (http://forums.goldeneyesource.net/index.php/topic,5932.msg62924.html#msg62924))
Title: Re: [Server] Debian 5 - srcds_run: line 372: 16417 Segmentation fault
Post by: osuper on March 02, 2011, 12:18:15 pm
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 =)