Why is the Segmentation fault present?
Segmentation faults can occur for several reasons
Overloading the hlds / rehlds server with plugins and other add-ons.
Failure to assign appropriate resources for the correct operation of the server.
Writing by memory through the virtual amxx machine, and unavailable for it or the plugin.
What to do if the Segmentation fault occurs?
Make sure you're using the latest version:
HLDS / ReHLDS
Metamoda and its additives
AMXX and its modules
Make sure that the plugins on the server are compiled with the same version of the amxx compiler that you use on the server.
Disable unnecessary plugins that you do not use and yet are loaded as working plugins.
Turn off the plugins in order to determine which causes problems on the server. I recommend disabling plugins in the way of 1/2 (turn off the half, turn on the server.) The problem occurs -> you decrease by the next half. The problem has stopped -> you have narrowed the search period by 50% in one reset). Usually in mods such as Zombie, Jailbreak, CSGO or related culprits are the main engines.
Add debug to the list of plugins that causes the problem. If you want to debug all plugins instead of one, set cvar
Код за потвърждение: Избери целия код
amx_debug 2.
// Plugin Debug mode
// 0 - No debugging (garbage line numbers)
// 1 - Plugins with "debug" option in plugins.ini are put into debug mode
// 2 - All plugins are put in debug mode
// Note - debug mode will affect JIT performance
//
// Default value: 1
amx_debug 2
Check the server and amxx logs (you will find them in cstrike / addons / amxmodx / logs) to determine the problem location in the plugin (specific place will never be given but you can find other errors there that can also affect the server).
Check the sma code of the plugin to find a place and fix the problem if you can do it yourself.
If you do not know how to scipt Pawn , make sure you post here
Used versions of hlds/rehlds , metamod and amxx
Server logs and amxx logs (you'll find them in cstrike / addons / amxmodx / logs)
Full plug-in code aswell