Skip to content

Segfault on startup with TF2C.smx #6

@vintagepc

Description

@vintagepc

A bit of a weird one here... and yes, I did a fresh pull of the .smx and gamedata before reporting this time 😉

Deploying a new server and getting a segmentation fault at startup just after the map cycle file:

Using map cycle file 'mapcycle27015.txt'.  ('cfg/mapcycle27015.txt' was not found.)
Segmentation fault

Moving tf2c.smx out of the sourcemod plugins directory allows the server to start normally. Loading it after the server has started seems not to cause any issues until a mapchange (then it crashes).

GDB coredump backtrace:

#0  0x0ab908e0 in ?? ()
#1  0xebd3547d in ?? () from /home/gamecreate/hlserver/tf2classic/bin/server_srv.so
#2  0xebd35d02 in ?? () from /home/gamecreate/hlserver/tf2classic/bin/server_srv.so
#3  0xebcacda5 in ?? () from /home/gamecreate/hlserver/tf2classic/bin/server_srv.so
#4  0xec1b3f32 in ?? () from /home/gamecreate/hlserver/tf2classic/bin/server_srv.so
#5  0xec273455 in ?? () from /home/gamecreate/hlserver/tf2classic/bin/server_srv.so
#6  0xec2711f7 in ?? () from /home/gamecreate/hlserver/tf2classic/bin/server_srv.so
#7  0xec259420 in ?? () from /home/gamecreate/hlserver/tf2classic/bin/server_srv.so
#8  0xebfc0ade in ?? () from /home/gamecreate/hlserver/tf2classic/bin/server_srv.so
#9  0xebf98bcf in ?? () from /home/gamecreate/hlserver/tf2classic/bin/server_srv.so
#10 0xe77de701 in __SourceHook_MFHCls_SGD_LevelInit::Func(char const*, char const*, char const*, char const*, bool, bool) ()
   from /home/gamecreate/hlserver/tf2classic/addons/metamod27015/bin/metamod.2.tf2.so

I've removed all nonstock plugins to confirm it's not an issue with one of those using a tf2c callback incorrectly. All that remains is:

Details
sm version
 SourceMod Version Information:
    SourceMod Version: 1.10.0.6460
    SourcePawn Engine: 1.10.0.6460, jit-x86 (build 1.10.0.6460)
    SourcePawn API: v1 = 5, v2 = 12
    Compiled on: Jan  7 2020 13:39:09
    Built from: https://github.com/alliedmodders/sourcemod/commit/2896435
    Build ID: 6460:2896435
    http://www.sourcemod.net/
meta version
 Metamod:Source Version Information
    Metamod:Source version 1.11.0-dev+1128
    Plugin interface version: 16:14
    SourceHook version: 5:5
    Loaded As: Valve Server Plugin
    Compiled on: Mar 28 2019 17:00:56
    Built from: https://github.com/alliedmodders/metamod-source/commit/98d0c0f
    Build ID: 1128:98d0c0f
    http://www.metamodsource.net/


admin-flatfile.smx
adminhelp.smx
adminmenu.smx
antiflood.smx
basechat.smx
basecommands.smx
basecomm.smx
basetriggers.smx
basevotes.smx
clientprefs.smx
funcommands.smx
funvotes.smx
playercommands.smx
sounds.smx
tf2c.smx

Only non-stock extensions are curl, dhooks, and smbz2. Note the entire mm/sm setup is a copy from other servers that do not seem to have this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions