Corekeeper Dedicated server - segfault on run I'm trying to run a dedicated corekeeper server on a headless OCI ARM instance. It will reproducibly segfault on attempt. I am not sure what is causing the segfault. Environment: ``` OS: Ubuntu 22.04 jammy Kernel: aarch64 Linux 6.5.0-1027-oracle CPU: 4x ARM Neoverse-N1 RAM: 2646MiB / 23981MiB ``` To reproduce, I have: - Installed box64, box86. - Installed steamcmd. - Installed the corekeeper dedicated server app AND the steamworks SDK Redist ``` ./steamcmd.sh \ +@sSteamCmdForcePlatformType linux \ +force_install_dir "/home/ubuntu/corekeeper" \ +login anonymous \ +app_update 1963720 validate \ +quit ./steamcmd.sh \ +@sSteamCmdForcePlatformType linux \ +force_install_dir "/home/ubuntu/corekeeper\Steamworks SDK Redist" \ +login anonymous \ +app_update 1007 validate \ +quit ``` I have been able to run a Valheim dedicated server instance previously with the below box64rc settings, so I have trialled the same in my .box64rc. ``` BOX64_DYNAREC_BLEEDING_EDGE=0 BOX64_DYNAREC_BIGBLOCK=0 BOX64_DYNAREC_STRONGMEM=2 ``` I then try to run the server by `./_launch.sh`. Of note, the launch bashfile does rely on `Xvfb`, as shown by this snippet: ``` Xvfb :99 -screen 0 1x1x24 -nolisten tcp & xvfbpid=$! chmod +x "$exepath" # this is the binary executable for the server DISPLAY=:99 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$installdir/Steamworks SDK Redist/linux64/" \ "$exepath" -batchmode -logfile CoreKeeperServerLog.txt "$@" & ``` Log as below. ``` Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2_XSERVTransSocketUNIXCreateListener: Will use Hardware counter measured at 25.0 MHz emulating 3.2 GHz Params database has 80 entries Params database has 82 entries Box64 with Dynarec v0.3.0 62695cee built on Aug 8 2024 12:07:50 BOX64: Detected 48bits at least of address space Counted 28 Env var BOX64 LIB PATH: ./Steamworks SDK Redist/linux64/:./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/ BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/games/:/usr/local/games/:/snap/bin/ Looking for ./CoreKeeperServer Apply RC params for CoreKeeperServer Applying BOX64_LOG=1 Applying BOX64_DYNAREC_BIGBLOCK=0 Applying BOX64_DYNAREC_STRONGMEM=1 Applying BOX64_DYNAREC_BLEEDING_EDGE=0 Applying BOX64_TRACE_FILE=/home/ubuntu/corekeeperbox64.log BOX64 Trace redirected to "/home/ubuntu/corekeeperbox64.log" [UnityMemory] Configuration Parameters - Can be set up in boot.config "memorysetup-bucket-allocator-granularity=16" "memorysetup-bucket-allocator-bucket-count=8" "memorysetup-bucket-allocator-block-size=4194304" "memorysetup-bucket-allocator-block-count=1" "memorysetup-main-allocator-block-size=16777216" "memorysetup-thread-allocator-block-size=16777216" "memorysetup-gfx-main-allocator-block-size=16777216" "memorysetup-gfx-thread-allocator-block-size=16777216" "memorysetup-cache-allocator-block-size=4194304" "memorysetup-typetree-allocator-block-size=2097152" "memorysetup-profiler-bucket-allocator-granularity=16" "memorysetup-profiler-bucket-allocator-bucket-count=8" "memorysetup-profiler-bucket-allocator-block-size=4194304" "memorysetup-profiler-bucket-allocator-block-count=1" "memorysetup-profiler-allocator-block-size=16777216" "memorysetup-profiler-editor-allocator-block-size=1048576" "memorysetup-temp-allocator-size-main=4194304" "memorysetup-job-temp-allocator-block-size=2097152" "memorysetup-job-temp-allocator-block-size-background=1048576" "memorysetup-job-temp-allocator-reduction-small-platforms=262144" "memorysetup-allocator-temp-initial-block-size-main=262144" "memorysetup-allocator-temp-initial-block-size-worker=262144" "memorysetup-temp-allocator-size-background-worker=32768" "memorysetup-temp-allocator-size-job-worker=262144" "memorysetup-temp-allocator-size-preload-manager=262144" "memorysetup-temp-allocator-size-nav-mesh-worker=65536" "memorysetup-temp-allocator-size-audio-worker=65536" "memorysetup-temp-allocator-size-cloud-worker=32768" "memorysetup-temp-allocator-size-gfx=262144" argv[1]="-batchmode" argv[2]="-logfile" argv[3]="CoreKeeperServerLog.txt" Rename process to "CoreKeeperServer" Using emulated UnityPlayer.so Using native(wrapped) libm.so.6 Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1 Using native(wrapped) libpthread.so.0 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux-x86-64.so.2 Using native(wrapped) libdl.so.2 Using native(wrapped) libutil.so.1 Using native(wrapped) librt.so.1 Using native(wrapped) libbsd.so.0 Using native(wrapped) libdbus-1.so.3 Using native(wrapped) libX11.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libXau.so.6 Using native(wrapped) libXdmcp.so.6 Using native(wrapped) libXext.so.6 Using native(wrapped) libXcursor.so.1 Using native(wrapped) libXfixes.so.3 Using native(wrapped) libXrender.so.1 Using native(wrapped) libXinerama.so.1 Using native(wrapped) libXi.so.6 Using native(wrapped) libXrandr.so.2 Using native(wrapped) libXss.so.1 Using native(wrapped) libXxf86vm.so.1 Using native(wrapped) libudev.so.1 Using emulated /home/ubuntu/corekeeper/CoreKeeperServer_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so Using native(wrapped) libz.so.1 Using emulated /home/ubuntu/corekeeper/CoreKeeperServer_Data/Plugins/discord_game_sdk.so Using emulated /home/ubuntu/corekeeper/CoreKeeperServer_Data/Plugins/libEOSSDK-Linux-Shipping.so Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff07acead0 (0x1a10786) Using emulated /home/ubuntu/corekeeper/CoreKeeperServer_Data/Plugins/libPlayFabMultiplayer.so Using emulated /lib/x86_64-linux-gnu/libstdc++.so.6 Warning: Weak Symbol _ITM_memcpyRtWn not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff0924f060 (0x9c0f6) Warning: Weak Symbol _ITM_RU1 not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff0924f6a0 (0x9cd76) Warning: Weak Symbol _ZGTtdlPv not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff0924fb00 (0x9d636) Warning: Weak Symbol _ITM_RU8 not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff0924fff8 (0x9e026) Warning: Weak Symbol _ITM_memcpyRnWt not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff092504a8 (0x9e986) Warning: Weak Symbol _ZGTtnam not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff09250c88 (0x9f946) Using emulated /home/ubuntu/corekeeper/CoreKeeperServer_Data/Plugins/lib_burst_generated.so Using emulated /home/ubuntu/corekeeper/CoreKeeperServer_Data/Plugins/libparty.so Using native(wrapped) libatomic.so.1 Using native(wrapped) libpulse.so.0 Using native(wrapped) libpulse-simple.so.0 Using emulated /home/ubuntu/corekeeper/CoreKeeperServer_Data/Plugins/libsentry.so Using native(wrapped) libcurl.so.4 Using emulated /home/ubuntu/corekeeper/CoreKeeperServer_Data/Plugins/libsteam_api.so Using native(wrapped) libGL.so.1 Using emulated /home/ubuntu/corekeeper/CoreKeeperServer_Data/MonoBleedingEdge/x86_64/libmono-native.so Error loading needed lib libmonosgen-2.0.so Warning: Cannot dlopen("libmonosgen-2.0.so"/0x4d6bb950, 102) Using emulated /home/ubuntu/corekeeper/CoreKeeperServer_Data/MonoBleedingEdge/x86_64/libMonoPosixHelper.so Error loading needed lib data-0x4db61330.so Warning: Cannot dlopen("data-0x4db61330.so"/0x4db6c1b0, 101) Error loading needed lib data-0x4dcacc40.so Warning: Cannot dlopen("data-0x4dcacc40.so"/0x4dcbba70, 101) Using emulated steamclient.so Redirecting overridden malloc from symtab function for steamclient.so Warning: Weak Symbol _ITM_RU1 not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff1a277698 (0xb25700) Warning: Weak Symbol _ZGTtnam not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff1a2776a0 (0xb25700) Warning: Weak Symbol _ITM_memcpyRtWn not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff1a2776a8 (0xb25700) Warning: Weak Symbol _ITM_RU8 not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff1a2776b0 (0xb25700) Using native(wrapped) crashhandler.so Error loading needed lib libsteam.so Warning: Cannot dlopen("libsteam.so"/0x7fff1503fe79, 2) 57093|Double SIGSEGV (code=1, pc=0xf2d36d6fec14, addr=0x20, prot=00)! Sigfault/Segbus while quitting, exiting silently ```