SegFault at Server startup

Moderator: NADEO

Post Reply
staticnoise
Posts: 4
Joined: 06 Apr 2017, 18:44

SegFault at Server startup

Post by staticnoise » 06 Apr 2017, 19:15

Hey guys, i got a problem with the dedicated server on Linux.

When i execute:

Code: Select all

tm@theserver:~$ ./RunSrvTM.sh

Code: Select all

#!/bin/sh
./ManiaPlanetServer /title=TMStadium /game_settings=MatchSettings/TMStadiumA.txt /dedicated_cfg=dedicated_cfg.txt
all i get is

Code: Select all

Segmentation fault
...nothing else.

As this is the first try to start the server, no logs or anything is created so far :cry:

First of all, I researched on this problem for a couple of hours (in this forum and all over the interwebs) now, so I tried everything I encountered during my research:
- I changed ownership of the folder to the user 'tm' recursively (although that was already the case, as I used this user to create it in the first place and to upload all files via FTP)
- I changed permission of the same folder recursively to 775
- I tried to install ia32-libs in wheezy - that didn't work for some weird reason (damaged package ia32-libs-i386 ??... whatever)
- Therefor i Upgraded the whole distribution and kernel to jessie (Debian 8) and install the ia32-libs packages (who have changed with the new distribution as it seems: build-essential gcc-multilib rpm libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386 libc6:i386)

I also spammed the commands apt-get update/upgrade/dist-upgrade several times, so I'm pretty sure my system's up to date :)

It still doesn't work and I have no freaking idea why... :(

plz halp

Some more Details of my System:
Kernel: Linux 3.16.0-4-amd64 on x86_64
OS: Debian 8 Jessie
Processor: Intel(R) Xeon(R) CPU X5670 @ 2.93GHz, 2 cores
RAM: 4GB
Dedicated Server: ManiaPlanetBetaServer_2015-06-16

P.S.: I forgot to mention that I can't start it with the root user either: Same Error

User avatar
undef.de
Posts: 1447
Joined: 06 Apr 2011, 21:57
Location: Germany
Contact:

Re: SegFault at Server startup

Post by undef.de » 06 Apr 2017, 19:35

You can try to figure out with strace what happens and maybe you will get more detailed information.
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what i do? Then award a ManiaStar.

staticnoise
Posts: 4
Joined: 06 Apr 2017, 18:44

Re: SegFault at Server startup

Post by staticnoise » 06 Apr 2017, 20:08

Thanks for the quick reply!

Here's my strace output:

Code: Select all

execve("./RunSrvTM.sh", ["./RunSrvTM.sh"], [/* 17 vars */]) = 0
brk(0)                                  = 0x7f654c355000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f654b7bc000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=64206, ...}) = 0
mmap(NULL, 64206, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f654b7ac000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1738176, ...}) = 0
mmap(NULL, 3844640, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f654afd5000
mprotect(0x7f654b176000, 2097152, PROT_NONE) = 0
mmap(0x7f654b376000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a1000) = 0x7f654b376000
mmap(0x7f654b37c000, 14880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f654b37c000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f654b7ab000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f654b7aa000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f654b7a9000
arch_prctl(ARCH_SET_FS, 0x7f654b7aa700) = 0
mprotect(0x7f654b376000, 16384, PROT_READ) = 0
mprotect(0x7f654b7be000, 12288, PROT_READ) = 0
mprotect(0x7f654b5a0000, 4096, PROT_READ) = 0
munmap(0x7f654b7ac000, 64206)           = 0
getpid()                                = 6824
rt_sigaction(SIGCHLD, {0x7f654b5b4fd0, ~[RTMIN RT_1], SA_RESTORER, 0x7f654b00a0e0}, NULL, 8) = 0
geteuid()                               = 1008
brk(0)                                  = 0x7f654c355000
brk(0x7f654c376000)                     = 0x7f654c376000
getppid()                               = 6821
stat("/opt/tm", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
stat(".", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
open("./RunSrvTM.sh", O_RDONLY)         = 3
fcntl(3, F_DUPFD, 10)                   = 10
close(3)                                = 0
fcntl(10, F_SETFD, FD_CLOEXEC)          = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x7f654b5b4fd0, ~[RTMIN RT_1], SA_RESTORER, 0x7f654b00a0e0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f654b00a0e0}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f654b00a0e0}, NULL, 8) = 0
read(10, "#!/bin/sh\n./ManiaPlanetServer /t"..., 8192) = 124
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f654b7aa9d0) = 6825
wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], 0, NULL) = 6825
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=6825, si_uid=1008, si_status=SIGSEGV, si_utime=0, si_stime=0} ---
rt_sigreturn()                          = 6825
write(2, "Segmentation fault\n", 19Segmentation fault
)    = 19
read(10, "", 8192)                      = 0
exit_group(139)                         = ?
+++ exited with 139 +++

User avatar
undef.de
Posts: 1447
Joined: 06 Apr 2011, 21:57
Location: Germany
Contact:

Re: SegFault at Server startup

Post by undef.de » 06 Apr 2017, 21:57

Well... that's not much more, but it seems the clone/fork can't be created.

I'm unsure if there exists a debug version of the dedicated server, but i point TMarc on this.
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what i do? Then award a ManiaStar.

User avatar
TMarc
Posts: 13669
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: SegFault at Server startup

Post by TMarc » 06 Apr 2017, 23:13

Thanks for the notification :thumbsup:

Unfortunately there is no debug version of the dedicated server.

Does it really crash directly at the start?
Is there no "logs" folder with some txt files?

Then I can only assume the following things:
- the executable is not marked as executable
- some files which are necessary to the server are missing (did you unzip the whole dedicated server package?)
- it cannot write to some folders where it needs access to

In case some system related files or libraries are missing with your Linux, I can't tell anything (not been using Linux since ages...)

Some more advice:
magnetik wrote:
30 Jun 2016, 07:43
In any case, you should have a file in "/var/crash/" that may be useful to us to debug the segfault.
And also follow this guide first:
http://www.remotecto.net/2013/06/21/ena ... core-dump/

And then, I fear only Nadeo team can help...
maniaplanet forum global moderator

Link list with FAQ, Support, Wiki, Tutorials, Community activities, and much more.
Bug/crash? Please report here, also try the current debug version.

System specs: i7-970 12GB RAM, nVidia GTX 970, SB X-Fi, 2xSSD

staticnoise
Posts: 4
Joined: 06 Apr 2017, 18:44

Re: SegFault at Server startup

Post by staticnoise » 07 Apr 2017, 00:36

Does it really crash directly at the start?
Yes, right at the start. Segmentation fault is the only output
Is there no "logs" folder with some txt files?
No. Afafik it should create them at the first server start. However, this is already the problem :mrgreen:

I did not alter any of the files (except for the configs of course). I upzipped the files on my windows PC and transferred them to the Server via FTP.

I don't have a /var/crash directory.

I run the file-command on the ManiaPlanetServer and got this output:

Code: Select all

ManiaPlanetServer: ERROR: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linkederror reading (Invalid argument)
It seems to be a Problem regarding 32 bit and static/dynamic linking (?)... I'm really not an expert on that topic :)

aaand last but not least I created the core dump. Dont' know if it includes any sensible information so I'll send it to someone via pm if needed

User avatar
magnetik
Nadeo
Nadeo
Posts: 1575
Joined: 01 Feb 2012, 19:13
Location: Paris
Contact:

Re: SegFault at Server startup

Post by magnetik » 07 Apr 2017, 07:44

Feel free to host it somewhere and MP me the link :thumbsup:
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!

staticnoise
Posts: 4
Joined: 06 Apr 2017, 18:44

Re: SegFault at Server startup

Post by staticnoise » 10 Apr 2017, 11:31

Just a short Update on this topic:

I've sent magnetik my Core Dump some days ago. Haven't heard from him since.

I just realised that you guys provide APT repositories as well :3

I'm gonna try to reinstall the server using the repsitory within the next couple of days. Maybe this error is just because of missing files? I don't think so, but we'll see if that does the trick ;)

//EDIT 12th April: Update #2

I tried the repository and it worked like a charm... right away :1010

Can't imagine why but nevermind. I'm happy now :lol:

Thanks to each and everyone for the great help.

Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 4 guests