[TM2] Crashes - ManiaPlanetServer SegFaults on startup

Moderator: NADEO

Gizmokid2010
Posts: 8
Joined: 11 Mar 2013, 18:36

[TM2] Crashes - ManiaPlanetServer SegFaults on startup

Post by Gizmokid2010 »

I'm trying to get a linux TM2/ManiaPlanet server running. I've checked all the prereqs I can find and see they're all satisfied, but as soon as I go to launch the server it just gives me "Segmentation fault" and crashes.

OS: CentOS 6.4 x64
php v5.3.3

Here's the only line I get in dmesg in regards to the server, I get no other logs/indication anywhere of what the problem could be.

Code: Select all

ManiaPlanetServ[26067]: segfault at 3d ip 0000000008f8f065 sp 00000000ff90e220 error 6 in ManiaPlanetServer[8048000+1442000]
grsec: From 75.135.148.112: Segmentation fault occurred at 000000000000003d in /home/mania/tm2/ManiaPlanetServer[ManiaPlanetServ:26067] uid/euid:0/0 gid/egid:0/0, parent /bin/bash[bash:7876] uid/euid:0/0 gid/egid:0/0
Any ideas of what I can do to get this up and running?

Thanks in advance.
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: [TM2] Crashes - ManiaPlanetServer SegFaults on startup

Post by TMarc »

Where did you get the Linux dedicated server from exactly?
How did you configure it?
Please double-check if you have created all necessary folders and also set the necessary permissions.
Gizmokid2010
Posts: 8
Joined: 11 Mar 2013, 18:36

Re: [TM2] Crashes - ManiaPlanetServer SegFaults on startup

Post by Gizmokid2010 »

TMarc wrote:Where did you get the Linux dedicated server from exactly?
How did you configure it?
Please double-check if you have created all necessary folders and also set the necessary permissions.
Server was pulled from: http://forum.maniaplanet.com/viewtopic. ... 95#p146195

I configured it by hand, manually editing the config files.
run.ini in root with ManiaPlanetServer:

Code: Select all

;Path to your php executeable here
phpPath=/usr/bin/php
;do not remove this line!
/UserData/Config/dedicated_cfg.txt:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>

<dedicated>
	<authorization_levels>
		<level>
			<name>SuperAdmin</name>
			<password>PASS</password>
		</level>
		<level>
			<name>Admin</name>
			<password>PASS</password>
		</level>
		<level>
			<name>User</name>
			<password>PASS</password>
		</level>
	</authorization_levels>
	
 	<masterserver_account>
		<login>LOGIN</login>
		<password>PASS</password>
		<validation_key>KEY</validation_key>
	</masterserver_account>
	
	<server_options>
		<name>$FF0M$0F0N$00FR$CCC²</name>
		<comment></comment>
		<hide_server>0</hide_server>					<!-- value is 0 (always shown), 1 (always hidden), 2 (hidden from nations) -->

		<max_players>100</max_players>
		<password></password>
		
		<max_spectators>32</max_spectators>
		<password_spectator></password_spectator>
	
		<keep_player_slots>False</keep_player_slots>			<!-- when a player changes to spectator, hould the server keep if player slots/scores etc.. or not. --> 	
		<ladder_mode>forced</ladder_mode>				<!-- value between 'inactive', 'forced' (or '0', '1') -->
		
		<enable_p2p_upload>True</enable_p2p_upload>
		<enable_p2p_download>False</enable_p2p_download>
		
		<callvote_timeout>60000</callvote_timeout>
		<callvote_ratio>0.5</callvote_ratio>				<!-- default ratio. value in [0..1], or -1 to forbid. -->
		<callvote_ratios>
			<voteratio command="Ban" ratio="-1"/>
			<!-- commands can be "Ban", "Kick", "RestartMap", "NextMap", ... -->
		</callvote_ratios>

		<allow_map_download>True</allow_map_download>
		<autosave_replays>False</autosave_replays>
		<autosave_validation_replays>False</autosave_validation_replays>

		<referee_password></referee_password>
		<referee_validation_mode>0</referee_validation_mode>		<!-- value is 0 (only validate top3 players),  1 (validate all players) -->

		<use_changing_validation_seed>False</use_changing_validation_seed>

		<disable_horns>False</disable_horns>
		<clientinputs_maxlatency>0</clientinputs_maxlatency>		<!-- 0 mean automatic adjustement -->
	</server_options>
	
	<system_config>
		<connection_uploadrate>819200</connection_uploadrate>		<!-- Kbits per second -->
		<connection_downloadrate>819200</connection_downloadrate>		<!-- Kbits per second -->

		<allow_spectator_relays>False</allow_spectator_relays>

		<p2p_cache_size>1024</p2p_cache_size>

		<force_ip_address></force_ip_address>
		<server_port>2350</server_port>
		<server_p2p_port>3450</server_p2p_port>
		<client_port>0</client_port>
		<bind_ip_address></bind_ip_address>
		<use_nat_upnp></use_nat_upnp>

		<gsp_name></gsp_name>						<!-- Game Server Provider name and info url -->
		<gsp_url></gsp_url>						<!-- If you're a server hoster, you can use this to advertise your services -->

		<xmlrpc_port>5000</xmlrpc_port>
		<xmlrpc_allowremote>False</xmlrpc_allowremote>			<!-- If you specify an ip adress here, it'll be the only accepted adress. this will improve security. -->
		
		<blacklist_url></blacklist_url>
		<guestlist_filename></guestlist_filename>
		<blacklist_filename></blacklist_filename>
		
		<title>TMStadium</title>		<!-- SMStorm, TMCanyon, ... -->

		<minimum_client_build></minimum_client_build>			<!-- Only accept updated client to a specific version. ex: 2011-10-06 -->

		<disable_coherence_checks>False</disable_coherence_checks>	<!-- disable internal checks to detect issues/cheats, and reject race times -->

		<use_proxy>False</use_proxy>
		<proxy_login></proxy_login>
		<proxy_password></proxy_password>
	</system_config>
</dedicated>
/UserData/Maps/MatchSettings/TMStadiumA.txt:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<playlist>
	<gameinfos>
		<game_mode>1</game_mode>
		<chat_time>10000</chat_time>
		<finishtimeout>1</finishtimeout>
		<allwarmupduration>0</allwarmupduration>
		<disablerespawn>0</disablerespawn>
		<forceshowallopponents>0</forceshowallopponents>
		<script_name></script_name>
		<rounds_pointslimit>50</rounds_pointslimit>
		<rounds_usenewrules>0</rounds_usenewrules>
		<rounds_forcedlaps>0</rounds_forcedlaps>
		<rounds_pointslimitnewrules>5</rounds_pointslimitnewrules>
		<team_pointslimit>5</team_pointslimit>
		<team_maxpoints>6</team_maxpoints>
		<team_usenewrules>0</team_usenewrules>
		<team_pointslimitnewrules>5</team_pointslimitnewrules>
		<timeattack_limit>300000</timeattack_limit>
		<timeattack_synchstartperiod>0</timeattack_synchstartperiod>
		<laps_nblaps>5</laps_nblaps>
		<laps_timelimit>0</laps_timelimit>
		<cup_pointslimit>100</cup_pointslimit>
		<cup_roundsperchallenge>5</cup_roundsperchallenge>
		<cup_nbwinners>3</cup_nbwinners>
		<cup_warmupduration>2</cup_warmupduration>
	</gameinfos>

	<hotseat>
		<game_mode>0</game_mode>
		<time_limit>300000</time_limit>
		<rounds_count>5</rounds_count>
	</hotseat>

	<filter>
		<is_lan>0</is_lan>
		<is_internet>1</is_internet>
		<is_solo>0</is_solo>
		<is_hotseat>0</is_hotseat>
		<sort_index>1000</sort_index>
		<random_map_order>1</random_map_order>
	</filter>

	<startindex>0</startindex>
	<map>
		<file>Campaigns\TMStadium\A\A01.Map.Gbx</file>
		<ident>d7pKHQ4p_EKtIk_B3b51AhMIyZ3</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A02.Map.Gbx</file>
		<ident>QHYklmYY1RI1qmixBLlp1_PCQA6</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A03.Map.Gbx</file>
		<ident>xZzFcPGF0Ef49Y3NI3Fp47F75M0</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A04.Map.Gbx</file>
		<ident>rRmppE16PVvMqEdIPeDVUkaWUQf</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A05.Map.Gbx</file>
		<ident>06vLIDXw6kyVKnHuaYJGO8wo4Nh</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A06.Map.Gbx</file>
		<ident>wdaCknBEPuIGYWBd2Rx_lo19TZg</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A07.Map.Gbx</file>
		<ident>L8x9qVQYCvBssHxg55SsPmXaXzj</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A08.Map.Gbx</file>
		<ident>OiSJgTYzbv9Won6sKIGLk8LqWOf</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A09.Map.Gbx</file>
		<ident>2tMXoI6hoLvLHc458Jlg0nJl_6m</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A10.Map.Gbx</file>
		<ident>REm8c8pmy4wU3UlRxGSxCYDFCi0</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A11.Map.Gbx</file>
		<ident>OiVkYftkEcR2KrVJAhrU2p1BR69</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A12.Map.Gbx</file>
		<ident>wzFIpceSFTugVe7bEPJg41Bb6kf</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A13.Map.Gbx</file>
		<ident>N2UfBZSGZhSYUyWysOr0jOKDpx7</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A14.Map.Gbx</file>
		<ident>WqWAz_mbuJNPfFxPLlj5w5LUY39</ident>
	</map>
	<map>
		<file>Campaigns\TMStadium\A\A15.Map.Gbx</file>
		<ident>TrreK0PRZDCF6ciiW96FdWUT9Wl</ident>
	</map>
</playlist>
All file permissions are ok. I've tried launching both as the user the directories are owned by as well as root, same issue with both.

I don't know of any other files/folders that need to be created.
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: [TM2] Crashes - ManiaPlanetServer SegFaults on startup

Post by TMarc »

TMarc wrote:Where did you get the Linux dedicated server from exactly?
I hope you did not use the Windows executables... ;)
Did you really set exectuable attribute to the server file?
Btw. it is a 32bit executable, and perhaps it does not run on your Linux installation if it is missing some system libraries or properties.
The very low address of the segmentation fault makes me think something is not working at all here from the beginning.

Try also to reduce considerable the player count first. 100 is perhaps a bit much for the start, also the spectators.

Begin with 16 players and 8 spectators, and a almost simple configuration.

How did you start the server? using the RunSrvTM.sh?
TheM
Posts: 1379
Joined: 15 Jun 2010, 14:30
Location: Uden, Noord-Brabant, Netherlands
Contact:

Re: [TM2] Crashes - ManiaPlanetServer SegFaults on startup

Post by TheM »

TMarc wrote:
TMarc wrote:Where did you get the Linux dedicated server from exactly?
I hope you did not use the Windows executables... ;)
Did you really set exectuable attribute to the server file?
So, make sure you chmod the file ManiaPlanetServer with +x
TMarc wrote:Btw. it is a 32bit executable, and perhaps it does not run on your Linux installation if it is missing some system libraries or properties.
If that is the case, you should install ia32-libs with apt-get or aptitude (Debian/Ubuntu).
TMarc wrote:The very low address of the segmentation fault makes me think something is not working at all here from the beginning.

Try also to reduce considerable the player count first. 100 is perhaps a bit much for the start, also the spectators.

Begin with 16 players and 8 spectators, and a almost simple configuration.
I don't think that it would make a difference if you start with 100 players or just some...
Global moderator | Dutch moderator | Laddermoderator | ManiaWiki moderator
Server Manager/webmaster of Smurfen.net, join us on Canyon, Valley and Royal!
ESL (Game) Staff Head for TrackMania (Stadium, Canyon and Valley).
Gizmokid2010
Posts: 8
Joined: 11 Mar 2013, 18:36

Re: [TM2] Crashes - ManiaPlanetServer SegFaults on startup

Post by Gizmokid2010 »

TMarc wrote:
TMarc wrote:Where did you get the Linux dedicated server from exactly?
I hope you did not use the Windows executables... ;)
Did you really set exectuable attribute to the server file?
Btw. it is a 32bit executable, and perhaps it does not run on your Linux installation if it is missing some system libraries or properties.
The very low address of the segmentation fault makes me think something is not working at all here from the beginning.

Try also to reduce considerable the player count first. 100 is perhaps a bit much for the start, also the spectators.

Begin with 16 players and 8 spectators, and a almost simple configuration.

How did you start the server? using the RunSrvTM.sh?
Definitely not using the Windows executable, and the file is +x:

Code: Select all

-sh-4.1$ ls -l ManiaPlanetServer
-rwxr-xr-x 1 mania mania 21743192 Feb 27 10:13 ManiaPlanetServer
Dropping the player count doesn't seem to do anything either. Even trying to just run ManiaPlanetServer bombs immediately with the same segfault.

I've tried running it using RunSrvTM.sh, running it manually updated for Stadium and running it with a custom shell script that just modifies the original TM.sh for stadium.
Last edited by Gizmokid2010 on 13 Mar 2013, 14:40, edited 1 time in total.
Gizmokid2010
Posts: 8
Joined: 11 Mar 2013, 18:36

Re: [TM2] Crashes - ManiaPlanetServer SegFaults on startup

Post by Gizmokid2010 »

TheM wrote:
TMarc wrote:
TMarc wrote:Where did you get the Linux dedicated server from exactly?
I hope you did not use the Windows executables... ;)
Did you really set exectuable attribute to the server file?
So, make sure you chmod the file ManiaPlanetServer with +x
Yup, verified as in my previous post.
TheM wrote:
TMarc wrote:Btw. it is a 32bit executable, and perhaps it does not run on your Linux installation if it is missing some system libraries or properties.
If that is the case, you should install ia32-libs with apt-get or aptitude (Debian/Ubuntu).
This is CentOS - ia32-libs isn't a valid package for that.
TheM wrote:
TMarc wrote:The very low address of the segmentation fault makes me think something is not working at all here from the beginning.

Try also to reduce considerable the player count first. 100 is perhaps a bit much for the start, also the spectators.

Begin with 16 players and 8 spectators, and a almost simple configuration.
I don't think that it would make a difference if you start with 100 players or just some...
Yeah, changing that made no difference.
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: [TM2] Crashes - ManiaPlanetServer SegFaults on startup

Post by TMarc »

Them, any chance to see all dependencies / required packages?
TheM
Posts: 1379
Joined: 15 Jun 2010, 14:30
Location: Uden, Noord-Brabant, Netherlands
Contact:

Re: [TM2] Crashes - ManiaPlanetServer SegFaults on startup

Post by TheM »

TMarc wrote:Them, any chance to see all dependencies / required packages?
Oeuf, I have no experience with CentOS what so ever, I only use Debian Linux.

Maybe you might wanna try "yum install glibc" ? Not sure tho.
Global moderator | Dutch moderator | Laddermoderator | ManiaWiki moderator
Server Manager/webmaster of Smurfen.net, join us on Canyon, Valley and Royal!
ESL (Game) Staff Head for TrackMania (Stadium, Canyon and Valley).
Gizmokid2010
Posts: 8
Joined: 11 Mar 2013, 18:36

Re: [TM2] Crashes - ManiaPlanetServer SegFaults on startup

Post by Gizmokid2010 »

TheM wrote:
TMarc wrote:Them, any chance to see all dependencies / required packages?
Oeuf, I have no experience with CentOS what so ever, I only use Debian Linux.

Maybe you might wanna try "yum install glibc" ? Not sure tho.
glibc has been installed since os installation as a dependency for other things.

Code: Select all

[root@dedi1 tm2]# yum install glibc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.bhs.mirrors.ovh.net
 * epel: epel.mirror.constant.com
 * extras: centos.bhs.mirrors.ovh.net
 * rpmforge: mirror.rit.edu
 * updates: centos.bhs.mirrors.ovh.net
Setting up Install Process
Package glibc-2.12-1.107.el6.x86_64 already installed and latest version
Nothing to do
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 0 guests