GoldenEye: Source Forums

Debriefing => Questions, Help, & How To's => Topic started by: ATB on September 10, 2016, 03:44:18 pm

Title: Segmentation Fault
Post by: ATB on September 10, 2016, 03:44:18 pm
I'm getting a Segmentation fault whenever I attempt to start the server for the first time.

I've removed and install everything (steamcmd, app 310, and gesource), even created a 2nd profile to test, as per steamcmd's install notes.

Here's the Segmentation Faults
Quote
$ ./gesource.sh
Auto detecting CPU
Using SSE2 Optimised binary.
Server will auto-restart if there is a crash.

Console initialized.
Segmentation fault
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Sat Sep 10 22:38:09 EDT 2016: Server restart in 10 seconds

My ldd:
Quote
$ ldd gesource/bin/server_i486.so
        linux-gate.so.1 (0xf7796000)
        libz.so.1 => /usr/lib32/libz.so.1 (0xf633b000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf6336000)
        libldap_r-2.4.so.2 => not found
        librt.so.1 => /lib32/librt.so.1 (0xf632d000)
        libutil.so.1 => /lib32/libutil.so.1 (0xf6329000)
        libnsl.so.1 => /lib32/libnsl.so.1 (0xf630f000)
        steam_api_i486.so => not found
        tier0_i486.so => not found
        vstdlib_i486.so => not found
        libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf621d000)
        libm.so.6 => /lib32/libm.so.6 (0xf61d6000)
        libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf61b9000)
        libc.so.6 => /lib32/libc.so.6 (0xf600c000)
        /lib/ld-linux.so.2 (0xf7799000)
        libpthread.so.0 => /lib32/libpthread.so.0 (0xf5ff0000)
$

And what my  gesource.sh is
Quote
#!/bin/bash
MALLOC_CHECK_=0 ./srcds_run -game ./gesource/ +maxplayers 16 +map ge-archives

EDIT: Meant to add, I know the ldd shows "libldap_r-2.4.so.2 => not found", but libldap-2.4-2 is installed. I removed it at one point, and it wiped my website, and had to rebuild all of it again.
Title: Re: Segmentation Fault
Post by: soupcan on September 15, 2016, 05:07:37 am
Make sure you installed the 32 bit version
Title: Re: Segmentation Fault
Post by: ATB on September 15, 2016, 10:45:15 am
Make sure you installed the 32 bit version

Of what, exactly?

Based on another thread, I wiped my server (was Debian8 ), and installed Ubuntu Server (16.04 x64), and still get the same error. I did install "dpkg --add-architecture i386", if that's hat you mean... as far as anything else, I followed the installation instructions to the letter.

EDIT: As a test, I setup an HL2DM server, to see if the issue was Source base... the server started up and worked fine... but it did give this error before starting:

Quote
WARNING: Failed to load 32-bit libtinfo.so.5 or libncurses.so.5.
  Please install (lib32tinfo5 / ncurses-libs.i686 / equivalent) to enable readline.
Title: Re: Segmentation Fault
Post by: soupcan on September 16, 2016, 12:38:43 am
Of what, exactly?

Of the missing library.

The command you gave only makes i386 packages available to install. It doesn't actually install them by default. Sometimes there are packages that include the 32-bit libraries (ie. lib32xx) or install the name of the normal package with :i386 added to the end.
Title: Re: Segmentation Fault
Post by: ATB on September 21, 2016, 08:57:52 am
I see... yeah, it's libldap-2.4-2:i386 - not sure why i skipped over that.

At any rate, doing a server migration right now to a new node, and I'll give it another shot once that's finished and update this thread after.

Thanks for the help so far.
Title: Re: Segmentation Fault
Post by: ATB on September 21, 2016, 02:24:36 pm
It appears to be working now, without issue.

If anyone experiences the same issue, this is what I ran to fix it.

Quote
sudo apt-get install libldap-2.4-2:i386

Thanks for the help, soupcan.
Title: Re: Segmentation Fault
Post by: soupcan on September 21, 2016, 03:47:57 pm
Thanks for taking the time to write back. Nice to hear it's working!