Matchbot immediately segfaulting server upon startup.
Describe the bug Having matchbot loaded instantly segfaults the server upon start-up
To Reproduce Steps to reproduce the behavior:
- Install matchbot and its dependancies
- Ensure no other extensions or plugins are running (no amxmodx, no other plugins aside from matchbot)
- Attempt to start the server
- Segfault.
Expected behavior For it to not segfault.
Screenshots https://i.imgur.com/M90TvIh.png https://i.imgur.com/n6WJxhH.png
Paste Here the output of commands (If you have AMX Mod X Installed or others): I have to disable matchbot to run these commands, otherwise it segfaults before I can issue such commands, to explain the lack of matchbot being shown here.
- version:
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.15.0.865-dev
Build date: 10:47:47 Apr 08 2025 (4014)
Build from: https://github.com/rehlds/ReHLDS/commit/97dd83d
- meta list:
Currently loaded plugins:
description stat pend file vers src load unload
0 plugins, 0 running
- amxx plugins: no output. (not loaded)
- amxx version: no output. (not loaded)
Server Details (please complete the following information):
- Slots: 10
- Tested with bots: no.
- Other informations Ubuntu 22.04.5 LTS x86_64
this issue does not occur when matchbot is not loaded in the plugins.ini of metamod, additionally, I can succesfully run amxmodx, amxmodx plugins and other metamod-r extensions such as the hitbox fix without an issue.
A speculated issue is that it being compiled with gcc/g++ 11 instead of 12, after testing this, compiling it with gcc/g++ still results in a segfault
Perhaps the issue is somewhere in MatchCommand.cpp but I cannot say with certain
I am aware that the screenshots, including the GDB debug logs don't show anything of too much substance, I tried to join your Discord server in order to more closely troubleshoot this but your discord server seems defunct.
This seems to only be an issue with the recent builds uploaded to the actions, the latest 2024 release doesnt cause a segfault.
@SamuelGogarty
https://github.com/SmileYzn/MatchBot/actions/runs/14867742046
If not work, try to clone repository, comment all contents in void CMatchCommand::ServerActivate() and try if it will crash with generacted action build of your forketd repository.