Closed geominorai closed 3 years ago
I can reproduce this on my Linux server. Beyond what was already said, the crash occurs on the latest 1.9 build and without any SM extensions loaded. Choice of map seems to matter in some way. I started the server on itemtest and running sv_cheats 1; bot -name SomeBOT -class soldier; sv_cheats 0; wait 60; changelevel pl_goldrush
would always crash for me.
If I manually kick the bot prior to switching the map, the crash does not seem to happen. However, it is too late by the time OnMapEnd
is called because bots are automatically removed by the server at that point and the crash will happen at the start of the next map.
This also means I cannot predict when a map will end beforehand to use this workaround, and any plugin that calls SM's ForceChangeLevel
function will crash the server on top of the normal map cycling.
Getting this issue with tf bots as well.
I can confirm that I am having this crash issue with regular bots as well. However, important thing to note for me is that this crash does not occure on a server running under Debian, but does occure if the server is running Ubuntu.
Made a crash "avoider", https://forums.alliedmods.net/showthread.php?p=2585800 Won't fix the issue, but at least it should help people suffering from this. I would have loved to help fixing that issue but I've no idea where to look or start or what may even be the root problem, so I hope someone with will give us a proper fix a day.
@Glubbable: Can confirm; it crashes on Ubuntu but also on Gentoo, which is what NFOservers managed Linux game servers also run.
Does this still happen after todays fix?
There's practically zero chance this is related to the convar change. That only started after our change in early May.
To everyone following this thread: I highly recommend that you take a look at #1007 #1107 (and the fix in #1008 #1108). I'm pretty sure that I found the root cause of this problem, once and for all. Plus a fix for it.
Try a SourceMod rebuild with the latest commits and see if your heap corruption problems go away!
Oh... and oops, in my previous post I referenced the wrong issue/PR numbers. :roll_eyes:
Fixed now.
Gonna go ahead and hope this was fixed by the PlayerManager changes 🤞
Linux TF2 server segfaults on map change after spawning a puppet bot
TF2 srcds v4294355 Sourcemod v1.8.0.6040 Metamod 1.10.7-git961
Reproduction steps:
sv_cheats 1; bot -name SomeBOT -class soldier; sv_cheats 0
changelevel (some other map)
Repeatability:
Time frame:
Crash dump: https://crash.limetech.org/a4w7wssvn6z6 Additional log file: debug.log
Plugins loaded:
Extensions loaded: