Page 1 of 1
[ENGLISH] Segmentation Fault Linux
Posted: 22 Mar 2019, 00:18
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

Re: [ENGLISH] Segmentation Fault Linux
Posted: 22 Mar 2019, 11:20
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).
Re: [ENGLISH] Segmentation Fault Linux
Posted: 22 Mar 2019, 15:11
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 ?
Re: [ENGLISH] Segmentation Fault Linux
Posted: 24 Mar 2019, 20:57
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

Re: [ENGLISH] Segmentation Fault Linux
Posted: 25 Mar 2019, 10:40
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.