[BUG]: Server crashes randomly with unloadfs
#1

Ok, our server uses rotating filterscripts to load missions and for some time we've noticed at random time the server will crash and restart for no apparent reason sometimes this happens after a few filterscript loads/unloads sometimes it could take hundreds. Anyways I tried the crash plugin today and the results of one of these crashes was interesting from the best of my knowledge the error is pointing to samp-server it's self. I've included the unload code which is clearly able to finish.

Crash results:

[15:29:30] Filterscript 'Hunted.amx' loaded.
[15:30:28] EMDraws
[15:30:28] EMDraws - GetKills
[15:30:28] EMDraws - Sortlist
[15:30:28] EMDraws - TopKillTextUpdate
[15:30:28] EMDraws - Showall
[15:30:33] Unloading Mission FS
[15:30:33] Filterscript 'Hunted.amx' unloaded.
[15:30:33] Unloaded Mission FS
[15:30:33] Mission Clock Clear
[15:30:33] Unload FS Done
[15:30:33] [debug] Server crashed due to an unknown error
[15:30:33] [debug] System backtrace:
[15:30:33] [debug] #0 b7cc90f3 in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[15:30:33] [debug] #1 b7cc0b61 in _ZN11crashdetect20PrintSystemBacktraceEPv () from plugins/crashdetect.so
[15:30:33] [debug] #2 b7cc3441 in _ZN11crashdetect15SystemExceptionEPv () from plugins/crashdetect.so
[15:30:33] [debug] #3 b7cc8c42 in ?? () from plugins/crashdetect.so
[15:30:33] [debug] #4 b7d40618 in ?? () from /lib/libc.so.6
[15:30:33] [debug] #5 b7eff442 in _ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base () from /usr/lib/libstdc++.so.6
[15:30:33] [debug] #6 080e5de4 in ?? () from ./samp03svr-test
[15:30:33] [debug] #7 080ad78b in ?? () from ./samp03svr-test
[15:30:33] [debug] #8 080a8fb3 in ?? () from ./samp03svr-test
[15:30:33] [debug] #9 b7d2cc96 in __libc_start_main () from /lib/libc.so.6
[15:30:33] [debug] #10 0804b491 in ?? () from ./samp03svr-test

Normal results:

[15:57:41] Filterscript 'Hunted.amx' loaded.
[15:57:44] EMDraws
[15:57:44] EMDraws - GetKills
[15:57:44] EMDraws - Sortlist
[15:57:44] EMDraws - TopKillTextUpdate
[15:57:44] EMDraws - Showall
[15:57:49] Unloading Mission FS
[15:57:49] Filterscript 'Hunted.amx' unloaded.
[15:57:49] Unloaded Mission FS
[15:57:49] Mission Clock Clear
[15:57:49] Unload FS Done
[15:57:55] Deleting Objects
[15:57:55] Done Deleting Objects
[15:57:55] EMDraws - Hide For All
[15:57:55] Hid all draws
[15:57:55] Cleared Mission Textdraws
[15:58:06] Loading Indians

Unload FS routine

Код:
PUB:RconUnloadFs()
{
	print("Unloading Mission FS");
	SendRconCommand(fsunloadname);
	print("Unloaded Mission FS");
	SetTimer("DeleteMapObjects", 5000, false);
	if(ClockIsPaused == 1) ClearMissionClock();
	print("Mission Clock Clear");
	MaxKillsReached = 0;
    SpawnsPerTeam = 0;
    BombHasExploded = 0;
	ScoreTies = 0;
    TeamScores[1] = 0;
    TeamScores[2] = 0;
    TeamScores[3] = 0;
    TeamScores[4] = 0;
    SendRconCommand("mapname Loading");

	foreach(new i : Player)
	{
 		HideMenuForPlayer(TeamSelect, i);
 		TeamSelectMenuOpen[i] = 0;
		PlayerDidStartBomb[i] = 0;
		PlayerTeam[i] = 0;
		LMSDied[i] = 0;
		SetPlayerTeam(i , i + 1);//:D
 		MissionKills[i] = 0;
 		MissionDeaths[i] = 0;

		if(PlayingMissions[i] == 1 && TeamSelectMenuOpen[i] == 0) 
		{
			GM_PlayerToLobby(i);
			PlayerWantsGunsBack[i] = 1;
		}
	}
   	print("Unload FS Done");

}
Код:
public OnFilterScriptExit()
{
	SetWeather(90);//black night ( standard )
	SetWorldTime(0);
	MapIsNotReady();
    HideHTDrawsForAll();
	DestroyObjectiveTextDraws();
	DestroyHTDraws();
  	if(ThePrey != INVALID_PLAYER_ID) SetPlayerColor(ThePrey,ThePreyColor);
	SetAMMOPos(0.0,0.0,5000.0,0.0);
	StartFs( "Indians" , 15 );
    SendClientMessageToAll(0x66ff00FF, "Hunted Unloaded.");
    return 1;
}
Reply
#2

Another crash from a different filterscript.

[22:49:27] EMDraws
[22:49:27] EMDraws - GetKills
[22:49:27] EMDraws - Sortlist
[22:49:27] EMDraws - TopKillTextUpdate
[22:49:27] EMDraws - Showall
[22:49:32] Unloading Mission FS
[22:49:32] Filterscript 'CampSite.amx' unloaded.
[22:49:32] Unloaded Mission FS
[22:49:32] Mission Clock Clear
[22:49:32] Unload FS Done
[22:49:32] [debug] Server crashed due to an unknown error
[22:49:32] [debug] System backtrace:
[22:49:32] [debug] #0 b7c7f0f3 in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[22:49:32] [debug] #1 b7c76b61 in _ZN11crashdetect20PrintSystemBacktraceEPv () from plugins/crashdetect.so
[22:49:32] [debug] #2 b7c79441 in _ZN11crashdetect15SystemExceptionEPv () from plugins/crashdetect.so
[22:49:32] [debug] #3 b7c7ec42 in ?? () from plugins/crashdetect.so
[22:49:32] [debug] #4 b7cf6618 in ?? () from /lib/libc.so.6
[22:49:32] [debug] #5 b7eb5442 in _ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base () from /usr/lib/libstdc++.so.6
[22:49:32] [debug] #6 080e5de4 in ?? () from ./samp03svr-test
[22:49:32] [debug] #7 080ad78b in ?? () from ./samp03svr-test
[22:49:32] [debug] #8 080a8fb3 in ?? () from ./samp03svr-test
[22:49:32] [debug] #9 b7ce2c96 in __libc_start_main () from /lib/libc.so.6
[22:49:32] [debug] #10 0804b491 in ?? () from ./samp03svr-test
Reply
#3

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Another crash from a different filterscript.

[22:49:27] EMDraws
[22:49:27] EMDraws - GetKills
[22:49:27] EMDraws - Sortlist
[22:49:27] EMDraws - TopKillTextUpdate
[22:49:27] EMDraws - Showall
[22:49:32] Unloading Mission FS
[22:49:32] Filterscript 'CampSite.amx' unloaded.
[22:49:32] Unloaded Mission FS
[22:49:32] Mission Clock Clear
[22:49:32] Unload FS Done
[22:49:32] [debug] Server crashed due to an unknown error
[22:49:32] [debug] System backtrace:
[22:49:32] [debug] #0 b7c7f0f3 in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[22:49:32] [debug] #1 b7c76b61 in _ZN11crashdetect20PrintSystemBacktraceEPv () from plugins/crashdetect.so
[22:49:32] [debug] #2 b7c79441 in _ZN11crashdetect15SystemExceptionEPv () from plugins/crashdetect.so
[22:49:32] [debug] #3 b7c7ec42 in ?? () from plugins/crashdetect.so
[22:49:32] [debug] #4 b7cf6618 in ?? () from /lib/libc.so.6
[22:49:32] [debug] #5 b7eb5442 in _ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base () from /usr/lib/libstdc++.so.6
[22:49:32] [debug] #6 080e5de4 in ?? () from ./samp03svr-test
[22:49:32] [debug] #7 080ad78b in ?? () from ./samp03svr-test
[22:49:32] [debug] #8 080a8fb3 in ?? () from ./samp03svr-test
[22:49:32] [debug] #9 b7ce2c96 in __libc_start_main () from /lib/libc.so.6
[22:49:32] [debug] #10 0804b491 in ?? () from ./samp03svr-test
Seems the plugin itself crashed the server
Reply
#4

I don't think so, I put the plugin in to try and find out why it was happening read the back trace. Remember the order of events starts from bottom of the list to the top not top to bottom.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)