DaemonEngine / Daemon

The Dæmon game engine. With some bits of ioq3 and XreaL.
https://unvanquished.net
BSD 3-Clause "New" or "Revised" License
304 stars 60 forks source link

Daemon doesn't cleanup shared mem correctly on failed (c?)game load #735

Open necessarily-equal opened 1 year ago

necessarily-equal commented 1 year ago

Steps to reproduce:

  1. add or trigger Sys::Drop in void CL_ParseGamestate, so that the the vm will crash
  2. try starting unvanquished many time, /dev/shm will fill up (if that's where your shared memory is).
  3. you will get a message like this: Warn: SV_LocateGameData: Shared memory region too small. /dev/shm is too full.
slipher commented 1 year ago

You're saying /dev/shm can leak something even after the process exits?

necessarily-equal commented 1 year ago

I seems so.

Note I haven't seen it first hand, but it seems to happen from the issues @cu-kai had yesterday.