[ENGLISH] Segmentation Fault Linux

Moderator: NADEO

Post Reply
daxx42
Posts: 3
Joined: 21 Mar 2019, 23:41

[ENGLISH] Segmentation Fault Linux

Post by daxx42 »

Hi,

I updated my Maniaplanteserve today to run new maps but i have this error :

Code: Select all

./runtraining: line 4: 13238 Segmentation fault      ./ManiaPlanetServer /Title=TMStadium@nadeo /game_settings=training.txt /dedicated_cfg=dedicated_cfg.txt

Here is my script :

Code: Select all

#!/bin/bash

cd /infra/srv/trackmania/srv-tm2
./ManiaPlanetServer /title=TMStadium@nadeo /game_settings=MatchSettings/training.txt /dedicated_cfg=dedicated_cfg.txt
I saw it would be a too old linux kernel (i have a 4.9), a owner problem on the file (i tried the DEVIL chmod 777 -R on the folder srv-tm2...

Have you a solution ?

Thank you :)
User avatar
Miss
Posts: 2151
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Re: [ENGLISH] Segmentation Fault Linux

Post by Miss »

Your script and your segfault line show different parameters (/game_settings).

Which version of the dedicated server is this? Is it the latest one?

You're gonna have to post some more details about the segfault - eg. the callstack (run it through gdb and type "bt", then "info file", then paste the outputs here).
3080 RTX, Ryzen 3700X, 32GB RAM, Windows 11
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream and tweet.
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: [ENGLISH] Segmentation Fault Linux

Post by reaby »

Miss wrote: 22 Mar 2019, 11:20 You're gonna have to post some more details about the segfault - eg. the callstack (run it through gdb and type "bt", then "info file", then paste the outputs here).
:?:
Even I didnt' understand how to do this....
Could you write more detailed instructions how to extract the callstack on linux ?
daxx42
Posts: 3
Joined: 21 Mar 2019, 23:41

Re: [ENGLISH] Segmentation Fault Linux

Post by daxx42 »

Hi, thank you for the answer ! When i run it, it shows me that :

Code: Select all

"/infra/srv/trackmania/srv-tm2/ManiaPlanetServer": not in executable format: File truncated
(gdb) bt
No stack.
(gdb) info file
(gdb) exit7
Undefined command: "exit7".  Try "help".
(gdb) exit
Undefined command: "exit".  Try "help".
(gdb) quit
I saw the "File truncated". I dowloaded the file directly in the server and not on my pc and transfer via ftp. AND IT WORKS ! I think the FTP made some mistakes.. even if I reuploaded it many times...

To run a file with gdb, juste do that :

gdb <your_executable_file>

And then type the command you have to type (i don't know how tu use this program)

Thank you very much :D
User avatar
Miss
Posts: 2151
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Re: [ENGLISH] Segmentation Fault Linux

Post by Miss »

For example:

Code: Select all

$ gdb --args ./ManiaPlanetServer /title=TMStadium@nadeo /game_settings=MatchSettings/training.txt /dedicated_cfg=dedicated_cfg.txt
...
(gdb) r
...
Segmentation fault
(gdb) bt
...
That's how I would do it. I'm not sure if a crashing server dumps any crash logs like on Windows. Perhaps there is, and the above would be a bit too difficult.
3080 RTX, Ryzen 3700X, 32GB RAM, Windows 11
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream and tweet.
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 1 guest