Find the answer to your Linux question:
Results 1 to 5 of 5
Hey, I'm trying to run a counter-strike 1.6 server (hlds) on a slackware 13.0 machine, but I continue getting these errors: ./hlds_run: line 321: 8644 Segmentation fault $HL_CMD I read ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    3

    Error loading libXft.so.2


    Hey,

    I'm trying to run a counter-strike 1.6 server (hlds) on a slackware 13.0 machine, but I continue getting these errors:

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

    I read loads of articles, but there's no known solution. I found an article for debian, where the problem was from missing lib packages:
    # apt-get install libdb4.6-dev
    # apt-get install libc6
    # apt-get install libc6-dev
    # apt-get install libc6-i686
    # apt-get install libgcc1-dbg
    # apt-get install gcc-4.1-base


    So, just today when I restarted the machine I noticed this error:

    img641.imageshack.us/img641/5606/slacklinux.jpg

    I think it's possible, that because of it, i'm getting the segfault problems. Is there a way to fix that?

  2. #2
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    Welcome to the forums!

    These packages should already be installed per default. With an honourable mention, because gcc is at version 4.3.3
    Code:
    # apt-get install libdb4.6-dev
    # apt-get install libc6
    # apt-get install libgcc1-dbg
    # apt-get install gcc-4.1-base

    These I couldn't find:
    Code:
    # apt-get install libc6-dev
    # apt-get install libc6-i686
    All the libraries that your boot messages complain about (libpixman, libX11*) should be installed on a full install. If you didn't do a full install, you may want to look in to the l/ package series.

    Quote Originally Posted by deliriuM
    I think it's possible, that because of it, i'm getting the segfault problems. Is there a way to fix that?
    I don't know if these problems are related, but its not good in any case.

    -----

    This ./hlds_run, is that a bash/perl/python script? You might be able to track exactly what's causing the segfault at line 321, and what's in the mysterious $HL_CMD. If it works the way I think it works, it's probably just a call to the server binary with all it's arguments... but I'm only guessing.


    And, I'm curious, how did you make that screenshot of the bootmessages? Is it running in a VM?
    Can't tell an OS by it's GUI

  3. #3
    Just Joined!
    Join Date
    Sep 2010
    Posts
    3
    Actually it's not a full install. I don't remember what exactly i cut off, but I haven't installed KDE, some X applications for sure.

    Code:
    run() {
            # Runs the steam update and server        # Loops if RESTART is set
            # Debugs if server failure is detected
                                                                  321,1         78%
    
            if test -n "$AUTO_UPDATE"; then
                    if test -f "$STEAM"; then
                            echo "Updating server using Steam."
                            CMD="$STEAM -command update -game $GAME -dir .";
                            if  test -n "$BETA_VERSION"; then
                              CMD="$CMD -beta $BETA_VERSION";
                            fi
    
                            $CMD
                            if test $? -ne 0; then
                                    if test -n "$STEAMERR"; then
                                            echo "`date`: Steam Update failed, exiting."
                                            quit 1
                                    else
                                            echo "`date`: Steam Update failed, ignoring."
                                            return 0
                                    fi
                            fi
                    else
                            if test -n "$STEAMERR"; then
                                    echo "Could not locate steam binary:$STEAM, exiting.";
                                    quit 1
                            else
                                    echo "Could not locate steam binary:$STEAM, ignoring.";
                                    return 0
                            fi
                    fi
            fi
    
            return 1
    }                           <---------- LINE 321. 
     
    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
    Errors are various:

    Code:
    /hlds_run: line 321: 7373 Segmentation fault $HL_CMD
    ./hlds_run: line 321: 27280 Segmentation fault $HL_CMD
    ./hlds_run: line 321:  8570 Segmentation fault      $HL_CMD

    Debug log

    Code:
    #0  0xb7617456 in ?? ()
    No symbol table info available.
    End of crash report
    ----------------------------------------------
    ----------------------------------------------
    CRASH: Tue Sep 21 10:32:37 EEST 2010
    Start Line: ./hlds_i686 -game cstrike +ip xxxx +port xxxx +maxplayers 32 +map de_dust2 +sv_lan 0 -insecure -pingboost 3 +sys_ticrate 1000 +mm_insane 2 -debug -pidfile hlds.11801.pid
    #0  0xb7674af8 in ?? ()
    No symbol table info available.
    End of crash report
    ----------------------------------------------
    ----------------------------------------------
    CRASH: Tue Sep 21 10:33:29 EEST 2010
    Start Line: ./hlds_i686 -game cstrike +ip xxxx +port xxxx +maxplayers 32 +map de_dust2 +sv_lan 0 -insecure -pingboost 3 +sys_ticrate 1000 +mm_insane 2 -debug -pidfile hlds.11801.pid
    #0  0xb772f456 in ?? ()
    No symbol table info available.
    End of crash report
    I've installed all the lib packages, and we'll see.
    Another possible reason is, that I'm running the server from a non-root user. On a second machine I've started them through root and I'm expecting the results

    If that doesn't help, I'll reinstall the OS using full install (all packages).

  4. #4
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    You should be able to safely leave out e/ kde/ kdei/ xap/ t/ tcl/ y/ and such.
    I used to think all you really needed was a/ ap/ d/ l/ and n/ but I started getting dependency troubles further down the line. In theory you should also be able to safely leave out x/ but I've noticed before that some third party apps still rely on the libraries contained in x/
    You can install these separately of course, if you wish. But a full install I think is the safe choice here, and leaving out e/ kde/ kdei/ xap/ t/ tcl/ y/ should not cause too many problems

    Code:
    /hlds_run: line 321: 7373 Segmentation fault $HL_CMD
    ./hlds_run: line 321: 27280 Segmentation fault $HL_CMD
    ./hlds_run: line 321:  8570 Segmentation fault      $HL_CMD
    These numbers {7373,27280,8570}, they are PIDs?
    Can't tell an OS by it's GUI

  5. #5
    Just Joined!
    Join Date
    Sep 2010
    Posts
    3
    Quote Originally Posted by Freston View Post

    Code:
    /hlds_run: line 321: 7373 Segmentation fault $HL_CMD
    ./hlds_run: line 321: 27280 Segmentation fault $HL_CMD
    ./hlds_run: line 321:  8570 Segmentation fault      $HL_CMD
    These numbers {7373,27280,8570}, they are PIDs?
    They're not pids. Not sure what they are.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •