Page MenuHomeFeedback Tracker

[legacyports; v1.70] Dedicated server crashes on start when using some mods
Acknowledged, NormalPublic

Description

On loading mods files smth goes wrong, server leaks all the memory and segfaults.
Tried on few mods, some have 100% reproducibility (RHS AFRF, ADR-97), some load normally, i.e. 0% (CBA).
Server reads mod's mod.cpp file, ignores its EOF, and tries to read data beyond. No data is read, but memory keeps being allocated until run out of memory.

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Linux x64
Operating System Version
Debian "stretch" 9.1; kernel 4.9.30-2+deb9u3 (2017-08-06) x86_64 GNU/Linux
Category
Dedicated Server
Steps To Reproduce
  1. Install Arma 3 dedicated server (legacyports branch) using SteamCMD:
Steam> app_update 233780 -beta legacyPorts -betapassword Arma3LegacyPorts validate
  1. Run the server with mod(s); strace part is for more logging:

a) RHS AFRF

$ cd ~/Steam/steamapps/common/Arma\ 3\ Server
$ strace -ff -o /mnt/memdisk/arma3server ./arma3server -netlog -ip=192.168.153.1 -port=2302 -cfg=/home/arma3server/Steam/steamapps/common/Arma\ 3\ Server/cfg/arma3-server-modded.network.cfg -config=/home/arma3server/Steam/steamapps/common/Arma\ 3\ Server/cfg/arma3-server-modded.server.cfg -mod=mods/@rhs_afrf4 -servermod=mods/@rhs_afrf4 -bepath= -loadmissiontomemory
 4:20:08 SteamAPI initialization failed. Steam features wont's be accessible!
$

b) ADR-97

$ cd ~/Steam/steamapps/common/Arma\ 3\ Server
$ strace -ff -o /mnt/memdisk/arma3server ./arma3server -netlog -ip=192.168.153.1 -port=2302 -cfg=/home/arma3server/Steam/steamapps/common/Arma\ 3\ Server/cfg/arma3-server-modded.network.cfg -config=/home/arma3server/Steam/steamapps/common/Arma\ 3\ Server/cfg/arma3-server-modded.server.cfg -mod=mods/@ADR-97 -servermod=mods/@ADR-97 -bepath= -loadmissiontomemory
 5:47:17 SteamAPI initialization failed. Steam features wont's be accessible!
$
  1. Server crashes right after start (that is, in matter of seconds)
Additional Information

No rpt logs created by server: it crashes right after start, before writing any logs and only produces one line of output on console (see in steps to reproduce).
RHS AFRF version is latest from Steam Workshop (0.4.2).
Configs are modified examples from LGSM cfg.tgz. (~3 KiB) (server never reads them if crashed anyway)
Strace logs of crashed run (RHS AFRF): arma3server.strace.tgz. (~4 MiB)
Full core dump of crashed run (RHS AFRF): core.tgz (~23 MiB; expands to 4.0 GiB sparsed file effectively taking at least 1.1 GiB of space on disk!)

Strace logs of crashed run (ADR-97): arma3server.adr97.strace.tgz. (~4 MiB)
Full core dump of crashed run (ADR-97): core.adr97.tgz (~24 MiB; expands to 4.0 GiB sparsed file effectively taking at least 1.2 GiB of space on disk!)

Event Timeline

pedeathtrian edited Additional Information. (Show Details)Jan 18 2017, 12:22 AM
pedeathtrian renamed this task from [legacyports; v1.64] Dedicated server crashes when using some mods to [legacyports; v1.64] Dedicated server crashes on start when using some mods.
pedeathtrian edited Additional Information. (Show Details)
Alwin claimed this task.Jan 25 2017, 11:13 AM
Alwin changed the task status from New to Acknowledged.
pedeathtrian renamed this task from [legacyports; v1.64] Dedicated server crashes on start when using some mods to [legacyports; v1.70] Dedicated server crashes on start when using some mods.Sep 19 2017, 5:05 PM
pedeathtrian changed Operating System Version from Debian "jessie" 8.7; kernel 4.8.11-1~bpo8+1 (amd64) to Debian "stretch" 9.1; kernel 4.9.30-2+deb9u3 (2017-08-06) x86_64 GNU/Linux.

Reproduced on recentrly updated version 1.70.