box64: Segmentation Fault on start - Stardew Valley on Asahi Linux

Unsure if this is an issue on Asahi Linux side or not, but whenever I try to run it I’m getting seg fault?

BOX64_SHOWSEGV=1 LD_LIBRARY_PATH="/home/ishimachi/GOG Games/Stardew Valley/game" box64.asahi '/home/ishimachi/GOG Games/Stardew Valley/game/Stardew Valley' Show Segfault signal even if a signal handler is present
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 USCAT FLAGM FLAGM2 FRINT PageSize:16384 Running on Blizzard-M2-Max Avalanche-M2-Max with 12 Cores
Params database has 38 entries
Box64 with Dynarec v0.2.6 nogit built on Jan 24 2024 00:00:00
BOX64: Detected 48bits at least of address space
Counted 52 Env var
BOX64 LIB PATH: /home/ishimachi/GOG Games/Stardew Valley/game/:/home/ishimachi/Downloads/box64/x64lib/:/home/ishimachi/Downloads/box64/x64lib/
BOX64 BIN PATH: ./:bin/:/home/ishimachi/.local/bin/:/home/ishimachi/bin/:/usr/lib64/ccache/:/usr/local/bin/:/usr/local/sbin/:/usr/bin/:/usr/sbin/:/home/ishimachi/.dotnet/tools/
Looking for /home/ishimachi/GOG Games/Stardew Valley/game/Stardew Valley
Rename process to "Stardew Valley"
Using native(wrapped) libpthread.so.0
Using native(wrapped) libdl.so.2
Using emulated libstdc++.so.6
Using native(wrapped) libm.so.6
Using emulated libgcc_s.so.1
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libbsd.so.0
Warning: Global Symbol _ZN9__gnu_cxx21zoneinfo_dir_overrideEv not found, cannot apply R_X86_64_GLOB_DAT @0x7fff0024e268 ((nil)) in libstdc++.so.6
Using emulated /home/ishimachi/GOG Games/Stardew Valley/game/libhostfxr.so
Using emulated /home/ishimachi/GOG Games/Stardew Valley/game/libhostpolicy.so
Using emulated /home/ishimachi/GOG Games/Stardew Valley/game/libcoreclr.so
Warning: Global Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_GLOB_DAT @0x7fff046a3110 ((nil)) in /home/ishimachi/GOG Games/Stardew Valley/game/libcoreclr.so
Warning: Global Symbol _ZTH27t_pStackWalkerWalkingThread not found, cannot apply R_X86_64_GLOB_DAT @0x7fff046a3128 ((nil)) in /home/ishimachi/GOG Games/Stardew Valley/game/libcoreclr.so
Warning: Global Symbol _ZTHN9StressLog19t_pCurrentThreadLogE not found, cannot apply R_X86_64_GLOB_DAT @0x7fff046a3148 ((nil)) in /home/ishimachi/GOG Games/Stardew Valley/game/libcoreclr.so
Warning: Global Symbol _ZTH15t_CantStopCount not found, cannot apply R_X86_64_GLOB_DAT @0x7fff046a3160 ((nil)) in /home/ishimachi/GOG Games/Stardew Valley/game/libcoreclr.so
Warning: Global Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_GLOB_DAT @0x7fff046a3250 ((nil)) in /home/ishimachi/GOG Games/Stardew Valley/game/libcoreclr.so
Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff046a3650 (0x71e86)
Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff046a36e8 (0x71fb6)
Warning: Weak Symbol _ZTH27t_pStackWalkerWalkingThread not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff046a36f0 (0x71fc6)
Warning: Weak Symbol _ZTHN9StressLog19t_pCurrentThreadLogE not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff046a3708 (0x71ff6)
Warning: Weak Symbol _ZTH15t_CantStopCount not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff046a3710 (0x72006)
Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff046a3778 (0x720d6)
Using emulated /home/ishimachi/GOG Games/Stardew Valley/game/libcoreclrtraceptprovider.so
Error loading needed lib liblttng-ust.so.0
Error loading one of needed lib
Error initializing needed lib /home/ishimachi/GOG Games/Stardew Valley/game/libcoreclrtraceptprovider.so
Error loading needed lib liblttng-ust-tracepoint.so.0
Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x7fff04591e30, 102)
Error loading needed lib liblttng-ust-tracepoint.so.0
Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x7fff04591e30, 102)
14787|SIGSEGV @0xfffee01a8490 (???(0xfffee01a8490)) (x64pc=0x7fff04178bce//home/ishimachi/GOG Games/Stardew Valley/game/libcoreclr.so:"/home/ishimachi/GOG Games/Stardew Valley/game/libcoreclr.so + 0x178bc0", rsp=0x100a2e760, stack=0x100230000:0x100a30000 own=(nil) fp=0x100a2e780), for accessing 0x8 (code=1/prot=0), db=0xfffee0db0828(0xfffee01a8458:0xfffee01a84e0/0x7fff04178bc0:0x7fff04178bcf//home/ishimachi/GOG Games/Stardew Valley/game/libcoreclr.so + 0x178bc0:clean, hash:a5c029d7/a5c029d7) handler=(nil)
RAX:0x0000000000000002 RCX:0x0000000000000003 RDX:0x0000000100a2ede8 RBX:0x00007fff0325a0b0 
RSP:0x0000000100a2e760 RBP:0x0000000100a2e760 RSI:0x00000000357ffc80 RDI:0x0000fffee10e2340 
 R8:0x0000000000000001  R9:0x0000000046c01ba8 R10:0x0000000000000001 R11:0x0000000000000000 
R12:0x0000000000000001 R13:0x0000000046c01b10 R14:0x0000000100a2e798 R15:0x00007fff030487a1 
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053 
Segmentation fault (core dumped)

box64 works perfectly fine as I managed to get a different game working (amazing performance with it too) so unsure whats going on here?

I tried looking for dyn lib of liblttng-ust.so.0 and liblttng-ust-tracepoint.so.0 but couldn’t find it anywhere. However, I saw some issue here where someone had a similar output on RISC-V and it worked for them regardless.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (8 by maintainers)

Commits related to this issue

Most upvoted comments

I have updated stuffs in box64. I tried Stardexw Valley on a max M1 with Fedora Remix 39 and it’s now starting fine. Can you update and try again?

I’ll check soon, this game must works!

there is an unstability somewhere in the dynarec, so might need to run it again if it crashes. Appart from this, its working fine on my side (I didn’t even installed libFAudio).

A related fix f3d1ffb was just pushed to main, can you pull the latest code and retry?

Recompiled the lib and built it for M1 rather than installing box64.asahi on Asahi Linux and it looks worse, less output:

Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 USCAT FLAGM FLAGM2 FRINT PageSize:16384 Running on Blizzard-M2-Max Avalanche-M2-Max with 12 Cores
Params database has 58 entries
Using bash "/home/ishimachi/Downloads/box64/tests/bash"
Box64 with Dynarec v0.2.7 f09b541a built on Feb 21 2024 18:12:08
BOX64: Detected 48bits at least of address space
Counted 51 Env var
BOX64 LIB PATH: /home/ishimachi/Downloads/box64/x64lib/:/home/ishimachi/Downloads/box64/x64lib/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
BOX64 BIN PATH: ./:bin/:/home/ishimachi/.local/bin/:/home/ishimachi/bin/:/usr/lib64/ccache/:/usr/local/bin/:/usr/local/sbin/:/usr/bin/:/usr/sbin/:/home/ishimachi/.dotnet/tools/
Looking for /home/ishimachi/Downloads/box64/tests/bash
bash detected, disabling banner
Apply RC params for bash
Cannot create memory map (@0x100121000 0x17000/0xfff) for elf "/home/ishimachi/Downloads/box64/tests/bash" error=22/Invalid argument
Error: Loading elf /home/ishimachi/Downloads/box64/tests/bash

tested it with another game but that one works fine.