MatchBot icon indicating copy to clipboard operation
MatchBot copied to clipboard

Matchbot immediately segfaulting server upon startup.

Open SamuelGogarty opened this issue 8 months ago • 6 comments

Describe the bug Having matchbot loaded instantly segfaults the server upon start-up

To Reproduce Steps to reproduce the behavior:

  1. Install matchbot and its dependancies
  2. Ensure no other extensions or plugins are running (no amxmodx, no other plugins aside from matchbot)
  3. Attempt to start the server
  4. 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

SamuelGogarty avatar Apr 26 '25 10:04 SamuelGogarty

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.

SamuelGogarty avatar Apr 26 '25 10:04 SamuelGogarty

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

SamuelGogarty avatar Apr 26 '25 22:04 SamuelGogarty

Perhaps the issue is somewhere in MatchCommand.cpp but I cannot say with certain

SamuelGogarty avatar Apr 26 '25 23:04 SamuelGogarty

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.

SamuelGogarty avatar Apr 27 '25 00:04 SamuelGogarty

This seems to only be an issue with the recent builds uploaded to the actions, the latest 2024 release doesnt cause a segfault.

SamuelGogarty avatar Apr 27 '25 03:04 SamuelGogarty

@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.

SmileYzn avatar May 06 '25 19:05 SmileYzn