Skip to content

Linux Build 146 segfault #260

@M1kep

Description

@M1kep

After reinstalling the .NET framework to work around #258, the server segfaults on startup:

Backtrace:

#0  0x00007fffc43aae1f in ?? () from /home/steam/game/game/csgo/addons/counterstrikesharp/dotnet/shared/Microsoft.NETCore.App/8.0.1/libcoreclr.so
#1  0x00007fffc43aa878 in coreclr_initialize () from /home/steam/game/game/csgo/addons/counterstrikesharp/dotnet/shared/Microsoft.NETCore.App/8.0.1/libcoreclr.so
#2  0x00007fffdb87c0a5 in ?? () from /home/steam/game/game/csgo/addons/counterstrikesharp/dotnet/shared/Microsoft.NETCore.App/8.0.1/libhostpolicy.so
#3  0x00007fffdb8971ee in ?? () from /home/steam/game/game/csgo/addons/counterstrikesharp/dotnet/shared/Microsoft.NETCore.App/8.0.1/libhostpolicy.so
#4  0x00007fffdb8d6e98 in ?? () from /home/steam/game/game/csgo/addons/counterstrikesharp/dotnet/host/fxr/8.0.1/libhostfxr.so
#5  0x00007fffdb8d1c44 in hostfxr_get_runtime_delegate () from /home/steam/game/game/csgo/addons/counterstrikesharp/dotnet/host/fxr/8.0.1/libhostfxr.so
#6  0x00007fffc4abbee7 in CDotNetManager::Initialize() () from /home/steam/game/game/csgo/addons/counterstrikesharp/bin/linuxsteamrt64/counterstrikesharp.so
#7  0x00007fffc4a9c36f in counterstrikesharp::CounterStrikeSharpMMPlugin::Load(int, SourceMM::ISmmAPI*, char*, unsigned long, bool) ()
   from /home/steam/game/game/csgo/addons/counterstrikesharp/bin/linuxsteamrt64/counterstrikesharp.so
#8  0x00007fffc4ea9f2f in CPluginManager::_Load(char const*, int, char*, unsigned long) () from /home/steam/game/game/csgo/addons/metamod/bin/linuxsteamrt64/metamod.2.cs2.so
#9  0x00007fffc4ea99ce in CPluginManager::Load(char const*, int, bool&, char*, unsigned long) () from /home/steam/game/game/csgo/addons/metamod/bin/linuxsteamrt64/metamod.2.cs2.so
#10 0x00007fffc4ea7103 in mm_LoadPlugins(char const*, char const*) () from /home/steam/game/game/csgo/addons/metamod/bin/linuxsteamrt64/metamod.2.cs2.so
#11 0x00007fffc4ea58f4 in DoInitialPluginLoads() () from /home/steam/game/game/csgo/addons/metamod/bin/linuxsteamrt64/metamod.2.cs2.so
#12 0x00007fffc4ea5813 in mm_StartupMetamod(bool) () from /home/steam/game/game/csgo/addons/metamod/bin/linuxsteamrt64/metamod.2.cs2.so
#13 0x00007fffc4eb2789 in GameDllBridge::DLLInit_Pre(gamedll_bridge_info const*, char*, unsigned long) () from /home/steam/game/game/csgo/addons/metamod/bin/linuxsteamrt64/metamod.2.cs2.so
#14 0x00007ffff54388fb in ISource2Server::Init() () from /home/steam/game/game/csgo/addons/metamod/bin/linuxsteamrt64/libserver.so
#15 0x00007ffff60333fa in ?? () from /home/steam/game/game/bin/linuxsteamrt64/libengine2.so
#16 0x00007fffffffb8c0 in ?? ()
#17 0x00000000ffffb7f0 in ?? ()
#18 0x00007ffff7127800 in ?? ()
#19 0x00007fffc7c330ed in ?? () from /home/steam/game/game/bin/linuxsteamrt64/../../csgo/bin/linuxsteamrt64/libserver.so
#20 0x0000555500000046 in ?? ()
#21 0x00007fff00000032 in ?? ()
#22 0x0000000000000046 in ?? ()
#23 0x00000256d728e82e in ?? ()
#24 0x00007fffffffb878 in ?? ()
#25 0x00007fffffffb900 in ?? ()
#26 0x0000000000000000 in ?? ()

Seems to be failing around:

rc = get_delegate_fptr(cxt, hdt_load_assembly_and_get_function_pointer,

Looks like the failure point in dotnet is:
https://github.com/dotnet/runtime/blob/bf5e279d9239bfef5bb1b8d6212f1b971c434606/src/coreclr/dlls/mscoree/exports.cpp#L186

Which seems related to https://github.com/dotnet/runtime/blob/main/docs/design/features/host-runtime-information.md

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