NexthostingLogs

Logs / Error guide

Game server crash: “Segmentation fault (core dumped)”

What the message means

The server process accessed memory that doesn't belong to it, and the operating system ended it immediately. This is a crash of the engine itself, not of a script – so there is often no error message before it. The lines directly before the crash show what the server did last.

What it looks like in the log

Started map "rp_downtown_v4c"
Client "Jonas" connected (203.0.113.51:27005).
./srcds_run: line 343: 1187 Segmentation fault (core dumped) $HL_CMD
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
container@pterodactyl~ Server marked as offline...

Excerpt from an example log, marked the way the analysis marks it.

Common causes

  • A binary module (gmsv_*.dll on Garry's Mod, native plugins on other games) that doesn't match the server version.
  • A damaged or faulty map, a broken model.
  • Lua or script memory full (then “not enough memory” is before it).
  • A game update that mods or extensions don't fit yet.

How to fix it

  1. Read the last lines before the crash: a map change, a joining player, a loaded module – that narrows down the cause.
  2. Remove binary modules (folder lua/bin) as a test and check whether the server runs stably.
  3. If the crash always happens on the same map, try a different one.
  4. If the server crashes after a game update, update mods, extensions and modules.