GoldenEye: Source Forums

  • April 25, 2018, 05:42:26 AM
  • Welcome, Guest
Advanced search  

News:

Pages: 1 2 [All]   Go Down

Author Topic: Ubuntu 16.04 x64 and Segmentation fault (core dumped)  (Read 3164 times)

0 Members and 1 Guest are viewing this topic.

Haizen007

  • Agent
  • *
  • Posts: 10
  • Reputation Power: 1
  • Haizen007 has no influence.
  • Offline Offline
Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« on: January 21, 2018, 04:33:40 AM »

Hi, I tried to solve it and I searched on the forum for a solution without success.
I can't even create a log file, I don't know why.

Quote
Console initialized.
Segmentation fault (core dumped)
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem

Please, someone with better knowledge would be able to help me?  :D

my 007.sh
Code: [Select]
MALLOC_CHECK_=0 ./srcds_run -debug -game ./gesource/ +maxplayers 16 +map ge_temple_classic
Logged

soupcan

  • Systems Administrator
  • 00 Agent
  • *
  • Posts: 240
  • Reputation Power: 137
  • soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!
  • Offline Offline
    • Steam Profile
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #1 on: January 21, 2018, 07:09:46 AM »

Typically the cause for this is you're missing some packages.

Paste the output of e.g.
Code: [Select]
ldd ./gesource/bin/server_i486.so
Logged

Haizen007

  • Agent
  • *
  • Posts: 10
  • Reputation Power: 1
  • Haizen007 has no influence.
  • Offline Offline
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #2 on: January 21, 2018, 07:21:48 AM »

Code: [Select]
        linux-gate.so.1 =>  (0xf7710000)
        libz.so.1 => not found
        libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf62d2000)
        libldap_r-2.4.so.2 => not found
        librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf62c8000)
        libutil.so.1 => /lib/i386-linux-gnu/libutil.so.1 (0xf62c4000)
        libnsl.so.1 => /lib/i386-linux-gnu/libnsl.so.1 (0xf62a9000)
        steam_api_i486.so => not found
        tier0_i486.so => not found
        vstdlib_i486.so => not found
        libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf6131000)
        libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf60dc000)
        libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf60bf000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf5f08000)
        /lib/ld-linux.so.2 (0xf7711000)
        libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf5eeb000)

Code: [Select]
root@vps6270:~# apt-get install libldap_r-2.4.so.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libldap_r-2.4.so.2
E: Couldn't find any package by glob 'libldap_r-2.4.so.2'
E: Couldn't find any package by regex 'libldap_r-2.4.so.2'
root@vps6270:~# apt-file search libldap_r-2.4.so.2
libldap-2.4-2: /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2
libldap-2.4-2: /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
root@vps6270:~#

How do I install them?
Thank you!
Logged

soupcan

  • Systems Administrator
  • 00 Agent
  • *
  • Posts: 240
  • Reputation Power: 137
  • soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!
  • Offline Offline
    • Steam Profile
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #3 on: January 21, 2018, 07:45:21 AM »

The ones ending in _i486.so are distributed with the dedicated server and linked when you launch the server, so no need to worry about those.

For the others -- libz.so.1 and libldap_r-2.4.so.2 -- we can use apt-file to search for packages by the file names they provide (keeping in mind we want to install the 32-bit versions of these libraries).
Code: [Select]
$ apt-file find libldap_r-2.4.so.2
libldap-2.4-2: /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2
libldap-2.4-2: /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5

$ apt-file find libz.so.1
lib32z1: /usr/lib32/libz.so.1
lib32z1: /usr/lib32/libz.so.1.2.8
libx32z1: /usr/libx32/libz.so.1
libx32z1: /usr/libx32/libz.so.1.2.8
libzadc1: /lib/x86_64-linux-gnu/genwqe/libz.so.1
zlib1g: /lib/x86_64-linux-gnu/libz.so.1
zlib1g: /lib/x86_64-linux-gnu/libz.so.1.2.8

So, try this:

Code: [Select]
sudo apt install libldap-2.4-2:i386 lib32z1
Logged

Haizen007

  • Agent
  • *
  • Posts: 10
  • Reputation Power: 1
  • Haizen007 has no influence.
  • Offline Offline
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #4 on: January 21, 2018, 11:13:58 AM »

Ok, thank you.
Now I was able to start the server.
I have to learn how to configure it, I just have a little notion about how.
Can I start the server in the background, like "autostart with the server" and without having to keep the putty open? Like others processes on Ubuntu.
Logged

soupcan

  • Systems Administrator
  • 00 Agent
  • *
  • Posts: 240
  • Reputation Power: 137
  • soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!
  • Offline Offline
    • Steam Profile
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #5 on: January 21, 2018, 12:08:52 PM »

As for configuring a dedicated server, we have a few guides on our wiki: http://wiki.geshl2.com/goldeneye/server/start

I'd recommend starting with this article that explains what the various .cfg files are and do. Aside from what we have on the wiki, anything that isn't game-specific is usually the same as any other Source-engine game.

As for running the server without a user logged in, there's a couple ways I'd do it. One is with a systemd service file (so the server automatically runs as a service on startup, and can be controlled with service/sysctl).

The other way is using any of a number of available game control panels: UGCC, Pterodactyl, Open Game Panel, etc... The con here is that it's more setup, the pro is that you get control over the server through a website.
Logged

Haizen007

  • Agent
  • *
  • Posts: 10
  • Reputation Power: 1
  • Haizen007 has no influence.
  • Offline Offline
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #6 on: January 21, 2018, 01:05:08 PM »

Ok, I'll follow your tips. Thank you very much!

Now I'm facing another issue...
The port 27015 is open by UFW, is not blocked by IDC, but I cannot connect by telnet to the server from outside.
Only this service has this issue, all other services I can connect normally to their respective ports that are allowed on the firewall.
Logged

Haizen007

  • Agent
  • *
  • Posts: 10
  • Reputation Power: 1
  • Haizen007 has no influence.
  • Offline Offline
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #7 on: January 21, 2018, 01:25:44 PM »

I found the solution, I had to change to:
Code: [Select]
MALLOC_CHECK_=0 ./srcds_run -debug -game ./gesource/ +ip 207.246.66.49 +port 27015 +maxplayers 12 +map ge_temple_classic
Now is open.
Is there a specific config to be able to find the server on servers search by client side?
Or only this in server.cfg?
Quote
sv_lan 0
« Last Edit: January 21, 2018, 02:08:02 PM by Haizen007 »
Logged

soupcan

  • Systems Administrator
  • 00 Agent
  • *
  • Posts: 240
  • Reputation Power: 137
  • soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!
  • Offline Offline
    • Steam Profile
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #8 on: January 21, 2018, 01:57:33 PM »

Shouldn't need to do anything special to be able to find servers, other than keeping the ports (27015 UDP + TCP) open.
Logged

Haizen007

  • Agent
  • *
  • Posts: 10
  • Reputation Power: 1
  • Haizen007 has no influence.
  • Offline Offline
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #9 on: January 22, 2018, 06:52:31 AM »

Ok, it's running.
Do you have a template/working script to autostart (start / stop) as a daemon with steam user?
I'm searching but nothing working well for now.
Thanks!
Logged

Haizen007

  • Agent
  • *
  • Posts: 10
  • Reputation Power: 1
  • Haizen007 has no influence.
  • Offline Offline
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #10 on: January 22, 2018, 07:17:04 AM »

Code: [Select]
#!/bin/sh
# Default-Start:    2 3 4 5
# Default-Stop:     0 1 6

NAME="007 GoldenEye Server"
USER="steam"
GROUP="steam"
PATHTOFILE="/home/steam/GoldenEye"
EXECFILENAME="007.sh"
 
start() {
    echo -n "Starting $NAME..."
    /sbin/start-stop-daemon --start --quiet --chuid $USER:$GROUP --exec $PATHTOFILE/$EXECFILENAME start
}
 
stop() {
    echo -n "Stopping $NAME..."
    /sbin/start-stop-daemon --start --quiet --chuid $USER:$GROUP --exec $PATHTOFILE/$EXECFILENAME stop
}
 
restart() {
    echo -n "Restarting $NAME..."
    /sbin/start-stop-daemon --start --quiet --chuid $USER:$GROUP --exec $PATHTOFILE/$EXECFILENAME restart
}
 
case "$1" in
    start)
        start
    ;;
    stop)
        stop
    ;;
    restart)
        restart
    ;;
    *)
        echo "Usage: $0 (start|stop|restart)"
        exit 1
    ;; 
esac
exit 0

I got 
Quote
Starting 007 GoldenEye Server.../home/steam/GoldenEye/007.sh: 2: /home/steam/GoldenEye/007.sh: ./srcds_run: not found

And changing the 007.sh from
Code: [Select]
#!/bin/sh
MALLOC_CHECK_=0 ./srcds_run -game ./gesource/ +ip 207.246.66.49 +port 27015 +maxplayers 12 +map ge_temple_classic
to
Code: [Select]
#!/bin/sh
#!/bin/sh
MALLOC_CHECK_=0 ./home/steam/GoldenEye/srcds_run -game ./home/steam/GoldenEye/gesource/ +ip 207.246.66.49 +port 27015 +maxplayers 12 +map ge_temple_classic

I got:

Quote
Starting 007 GoldenEye Server...Auto detecting CPU
Using SSE2 Optimised binary.
Source Engine binary './srcds_i486' not found, exiting
Mon Jan 22 17:14:53 -02 2018: Server Failed
Logged

soupcan

  • Systems Administrator
  • 00 Agent
  • *
  • Posts: 240
  • Reputation Power: 137
  • soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!soupcan is awe-inspiring!
  • Offline Offline
    • Steam Profile
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #11 on: January 22, 2018, 10:05:48 AM »

I'll take a look at this and get back to you tonight or tomorrow. I've been meaning to write a sample systemd service file for a while, so I'll be setting up a local server to test with and get back to you with the result.
Logged

Haizen007

  • Agent
  • *
  • Posts: 10
  • Reputation Power: 1
  • Haizen007 has no influence.
  • Offline Offline
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #12 on: January 22, 2018, 10:40:58 AM »

Ok, that will be great.
Thank you very much!
Logged

jexact

  • 040
  • Agent
  • *
  • Posts: 7
  • Reputation Power: 44
  • jexact is a force to reckon with.jexact is a force to reckon with.jexact is a force to reckon with.jexact is a force to reckon with.jexact is a force to reckon with.jexact is a force to reckon with.jexact is a force to reckon with.jexact is a force to reckon with.
  • Offline Offline
    • www.jexact.com
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #13 on: January 23, 2018, 11:29:59 AM »

It seems that srcds_run is trying to access ./srcds_i486 relatively from the current working directory. Try this:
Code: [Select]
#!/bin/bash
export MALLOC_CHECK_=0
cd /home/steam/GoldenEye
exec ./srcds_run -game /home/steam/GoldenEye/gesource/ +ip 207.246.66.49 +port 27015 +maxplayers 12 +map ge_temple_classic

PS.
This is how my systemd service file looked like in the past (switched to a docker based setup now):

File: /etc/systemd/system/gesource.service
Code: [Select]
[Unit]
Description=Goldeneye Source Server
After=network.target

[Service]
User=steam
Group=steam
Type=simple
ExecStart=/home/steam/srcds_run_gesource.sh
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

Then you can enable the service via systemctl enable gesource.service and start it via systemctl start gesource.service etc.
« Last Edit: January 23, 2018, 11:34:34 PM by jexact »
Logged
Releases: ge_tomb

Haizen007

  • Agent
  • *
  • Posts: 10
  • Reputation Power: 1
  • Haizen007 has no influence.
  • Offline Offline
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #14 on: January 24, 2018, 08:55:37 AM »

Thanks.
I changed my 007.sh file.
I created the
Code: [Select]
/lib/systemd/system/007.service
following yourse
Then I created a:
Code: [Select]
ln -s /home/steam/GoldenEye/007.sh /etc/init.d/007
To start with boot, I'm not sure if I did it the best way heheh
Then:
Code: [Select]
systemctl daemon-reload
update-rc.d 007 defaults
It's working well as far I know and I can:
Code: [Select]
service 007 stop
service 007 start
service 007 status
Logged

jexact

  • 040
  • Agent
  • *
  • Posts: 7
  • Reputation Power: 44
  • jexact is a force to reckon with.jexact is a force to reckon with.jexact is a force to reckon with.jexact is a force to reckon with.jexact is a force to reckon with.jexact is a force to reckon with.jexact is a force to reckon with.jexact is a force to reckon with.
  • Offline Offline
    • www.jexact.com
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #15 on: January 24, 2018, 12:14:33 PM »

Since your ubuntu version uses systemd you can get rid of your /etc/init.d/007.sh script. Just enable the 007.service and systemd will start it automatically after reboots etc.
« Last Edit: January 24, 2018, 09:22:55 PM by jexact »
Logged
Releases: ge_tomb

Haizen007

  • Agent
  • *
  • Posts: 10
  • Reputation Power: 1
  • Haizen007 has no influence.
  • Offline Offline
Re: Ubuntu 16.04 x64 and Segmentation fault (core dumped)
« Reply #16 on: January 26, 2018, 07:47:21 AM »

Everything seems working fine so far. Thank you!  ;)
Logged
Pages: 1 2 [All]   Go Up