Skip to content

Segfault on startup #52

Description

@pohmelie

Installed versions summary:

  • hlds: steam_legacy
  • regamedll_cs: 5.26.0.668
  • metamod: 1.21.1-am
  • amxmodx: 1.9.0-git5294
  • reapi: 5.24.0.300
  • amxxeasyhttp: 1.3.0
  • kreedz amxx: 130

Can be reproduced with dockerfile:

FROM ubuntu:22.04 as builder

# install dependencies
RUN apt update && \
    apt install -y wget curl tar unzip lib32gcc-s1

# install steamcmd
WORKDIR /steamcmd
RUN curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf - && \
    until ./steamcmd.sh \
        +force_install_dir /kz16 \
        +login anonymous \
        +app_set_config 90 mod cstrike \
        +app_update 90 -beta steam_legacy validate \
        +quit; \
        do sleep 1; \
    done

# install regamedll_cs
ARG REGAMEDLL_CS_VERSION=5.26.0.668
WORKDIR /regamedll_cs
RUN wget "https://github.com/s1lentq/ReGameDLL_CS/releases/download/${REGAMEDLL_CS_VERSION}/regamedll-bin-${REGAMEDLL_CS_VERSION}.zip" && \
    unzip "regamedll-bin-${REGAMEDLL_CS_VERSION}.zip" && \
    cp -rf bin/linux32/cstrike /kz16

# install metamod
ARG METAMOD_VERSION=1.21.1-am
WORKDIR /metamod
RUN wget "https://www.amxmodx.org/release/metamod-${METAMOD_VERSION}.zip" && \
    unzip "metamod-${METAMOD_VERSION}.zip" && \
    cp -rf addons /kz16/cstrike && \
    echo 'gamedll_linux "addons/metamod/dlls/metamod.so"' >> /kz16/cstrike/liblist.gam

# install amxmodx
ARG AMXMODX_VERSION=1.9.0-git5294
WORKDIR /amxmodx
RUN wget "https://www.amxmodx.org/amxxdrop/1.9/amxmodx-${AMXMODX_VERSION}-base-linux.tar.gz" && \
    tar -xzf amxmodx-${AMXMODX_VERSION}-base-linux.tar.gz && \
    cp -rf addons /kz16/cstrike && \
    rm -rf addons && \
    wget "https://www.amxmodx.org/amxxdrop/1.9/amxmodx-${AMXMODX_VERSION}-cstrike-linux.tar.gz" && \
    tar -xzf amxmodx-${AMXMODX_VERSION}-cstrike-linux.tar.gz && \
    cp -rf addons /kz16/cstrike && \
    echo "linux addons/amxmodx/dlls/amxmodx_mm_i386.so" > /kz16/cstrike/addons/metamod/plugins.ini

# install reapi
ARG REAPI_VERSION=5.24.0.300
WORKDIR /reapi
RUN wget "https://github.com/s1lentq/reapi/releases/download/${REAPI_VERSION}/reapi-bin-${REAPI_VERSION}.zip" && \
    unzip "reapi-bin-${REAPI_VERSION}.zip" && \
    cp -rf addons /kz16/cstrike

# install amxxeasyhttp
ARG AMXXEASYHTTP_VERSION=1.3.0
WORKDIR /amxxeasyhttp
RUN wget "https://github.com/Next21Team/AmxxEasyHttp/releases/download/${AMXXEASYHTTP_VERSION}/release_linux_v${AMXXEASYHTTP_VERSION}.zip" && \
    unzip "release_linux_v${AMXXEASYHTTP_VERSION}.zip" && \
    cp -rf release_linux_v${AMXXEASYHTTP_VERSION}/addons /kz16/cstrike

# install kreedz-amxx
ARG KREEDZ_AMXX_VERSION=130
WORKDIR /kreedz-amxx
RUN wget "https://github.com/Theggv/Kreedz/releases/download/kreedz-amxx-${KREEDZ_AMXX_VERSION}/kreedz-amxx-${KREEDZ_AMXX_VERSION}-addons.zip" && \
    unzip "kreedz-amxx-${KREEDZ_AMXX_VERSION}-addons.zip" && \
    cp -rf addons /kz16/cstrike

Run commands (run hlds server twice, first one is always segfault):

$ docker build . -t kz16
$ docker run --rm -it --net host -w /kz16 kz16 bash
# ./hlds_run -game cstrike +map de_dust2 +maxplayers 16

Produced output:

Auto-restarting the server on crash

Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/root/.steam/sdk32/steamclient.so
with error:
/root/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 19:52:19 Aug  3 2020 (8684)
STEAM Auth Server
Server IP address 127.0.1.1:27015
   
   Metamod version 1.21.1-am  Copyright (c) 2001-2013 Will Day <willday@metamod.org>
   Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
   This is free software, and you are welcome to redistribute it
   under certain conditions; type `meta gpl' for details.
   

   AMX Mod X version 1.9.0.5294 Copyright (c) 2004-2015 AMX Mod X Development Team 
   AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'.
   This is free software and you are welcome to redistribute it under 
   certain conditions; type 'amxx gpl' for details.
  
ReGameDLL version: 5.26.0.668-dev
L 03/04/2024 - 00:04:42: -------- Mapchange to de_dust2 --------
L 03/04/2024 - 00:04:42: [CSX] Could not load csstats file: cstrike/addons/amxmodx/data/csstats.dat
L 03/04/2024 - 00:04:42: [AMXX] Plugin file open error (plugin "kz_map_downloader.amxx")
Executing ReGameDLL Configuration File 
[AMXX] Loaded 1 admin from file
L 03/04/2024 - 00:04:42: [ReAPI] RegisterHookChain: function (SV_StartSound) is not available, ReHLDS required.
L 03/04/2024 - 00:04:42: [AMXX] Displaying debug trace (plugin "kz_invis.amxx", version "05/26/2022")
L 03/04/2024 - 00:04:42: [AMXX] Run time error 10: native error (native "RegisterHookChain")
L 03/04/2024 - 00:04:42: [AMXX]    [0] kz_invis.sma::plugin_init (line 48)
[MPBHOP] 0 bhop blocks detected
Executing AMX Mod X Configuration File 
Scrolling message displaying frequency: 10:00 minutes
Executing Map Manager Configuration File 
Segmentation fault (core dumped)

Segfault appears only after kreedz plugins installation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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