ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.88k stars 282 forks source link

Help to start Stardew Valley on K1 board #1772

Open lz-bro opened 2 months ago

lz-bro commented 2 months ago

I try to run Stardew Valley and I'm getting a segment fault. I would like to seek some help, maybe share some debug methods to learn.

bianbu@k1:~/workspace/GOG_Games$ LD_LIBRARY_PATH=~/workspace/gl4es-master/lib BOX64_SHOWBT=1 BOX64_SHOWSEGV=1 box64 StardewValley/game/Stardew\ Valley
Show Segfault signal even if a signal handler is present
Show a Backtrace when a Segfault signal is caught
Dynarec for RISC-V With extension: I M A F D C Zba Zbb Zbc Zbs Vector (vlen: 256) PageSize:4096 Running on Unknown CPU with 8 Cores
Will use Hardware counter measured at 24.0 MHz emulating 3.0 GHz
Params database has 87 entries
Box64 with Dynarec v0.3.1 0450371e built on Aug 29 2024 11:48:51
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 64 Env var
BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/games/:/usr/local/games/:/snap/bin/:/snap/bin/
Looking for StardewValley/game/Stardew Valley
Rename process to "Stardew Valley"
Using native(wrapped) libpthread.so.0
Using native(wrapped) libdl.so.2
Using emulated /lib/x86_64-linux-gnu/libstdc++.so.6
Using native(wrapped) libm.so.6
Using emulated /lib/x86_64-linux-gnu/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
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libhostfxr.so
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libhostpolicy.so
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so
Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db640 (0x75146)
Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db6d8 (0x75276)
Warning: Weak Symbol _ZTH27t_pStackWalkerWalkingThread not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db6e0 (0x75286)
Warning: Weak Symbol _ZTHN9StressLog19t_pCurrentThreadLogE not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db700 (0x752c6)
Warning: Weak Symbol _ZTH15t_CantStopCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db708 (0x752d6)
Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db760 (0x75386)
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclrtraceptprovider.so
Error loading needed lib liblttng-ust.so.0
Error loading one of needed lib
Error initializing needed lib /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclrtraceptprovider.so
Error loading needed lib liblttng-ust-tracepoint.so.0
Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x3f045c52fa, 102)
Error loading needed lib liblttng-ust-tracepoint.so.0
Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x3f045c52fa, 102)
Using native(wrapped) libnuma.so.1
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libclrjit.so
Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x3f06333750 (0x15c76)
Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f063337e0 (0x15d96)
Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x3f063337e8 (0x15da6)
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libSystem.Native.so
Error loading needed lib libicuuc.so.80
Warning: Cannot dlopen("libicuuc.so.80"/0x3f8d3f9820, 1)
Error loading needed lib libicuuc.so.79
Warning: Cannot dlopen("libicuuc.so.79"/0x3f8d3f9820, 1)
Error loading needed lib libicuuc.so.78
Warning: Cannot dlopen("libicuuc.so.78"/0x3f8d3f9820, 1)
Error loading needed lib libicuuc.so.77
Warning: Cannot dlopen("libicuuc.so.77"/0x3f8d3f9820, 1)
Error loading needed lib libicuuc.so.76
Warning: Cannot dlopen("libicuuc.so.76"/0x3f8d3f9820, 1)
Error loading needed lib libicuuc.so.75
Warning: Cannot dlopen("libicuuc.so.75"/0x3f8d3f9820, 1)
Error initializing native libicuuc.so.74 (last dlerror is libicuuc.so.74: cannot open shared object file: No such file or directory)
Error loading needed lib libicuuc.so.74
Warning: Cannot dlopen("libicuuc.so.74"/0x3f8d3f9820, 1)
Error initializing native libicuuc.so.73 (last dlerror is libicuuc.so.73: cannot open shared object file: No such file or directory)
Error loading needed lib libicuuc.so.73
Warning: Cannot dlopen("libicuuc.so.73"/0x3f8d3f9820, 1)
Using native(wrapped) libicuuc.so.72
Using native(wrapped) libicui18n.so.72
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libSDL2-2.0.so.0
Using native(wrapped) libwayland-client.so.0
Using native(wrapped) libwayland-egl.so.1
Using native(wrapped) libwayland-cursor.so.0
Using native(wrapped) libxkbcommon.so.0
BOX64: Warning, size difference in block between pass2 (296, 22) & pass3 (324, 22)!
Dump of 22 x64 opcodes:
0x3f042a8126:   0 -> 0
0x3f042a8126: 8A 43 08 A8 08 74 38 0F 1F 00 80 BB F8 05 00 00 00 75 2C 0F 1F 80 00 00 00 00 48 89 DF E8 88 14 00 00 8B 43 08 A8 08 75 F1    0 -> 0
0x3f042a814f: 89 C1 81 E1 F7 FF F7 FF F0 0F B1 4B 08 75 E2 8A 43 08 A8 08 75 CB BF 40 00 00 00 BE 08 00 00 00 E8 6C 64 10 00 85 C0 0F 84 F6 FE FF FF 48 8D 0D 91 72 30 00 BF 08 00 00 00 BE 40 00 00 00 31 D2 31 C0 48 83 C4 08 5B 5D E9 64 64 10 00 0F 1F 40 00 55 48 89 E5 53 50 8B 47 08 84 C0 78 07 48 83 C4 08 5B 5D C3 48 89 FB BF 40 00 00 00 BE 05 00 00 00 E8 1A 64 10 00 85 C0 74 27 4C 8B 83 20 01 00 00 48 8D 0D 97 75 300 -> 0
0x3f042a81d7: 00 BF 05 00 00 00 BE 40 00 00 00 BA 02 00 00 00 49 89 D9 31 C0 E8 0F 64 10 00 48 8B 83 20 01 00 00 48 8B 8B 28 01 00 00 48 89 01 F0 81 63 08 7F FF FF FF 48 83 C4 08 5B 5D C3 66 2E 0F 1F 84 00 00    0 -> 0
0x3f042a8218: 00 00 00 0F 1F 44 00 00 55 48 89 E5 53 50 85 F6 74 24 48 89 FB 0F 1F 00 48 89 DF E8 98 13 00 00 8B 43 08 A8 08 75 F1 89 C1 81 E1 F7 FF F7 FF F0 0F B1 4B 08 75 E2 48 83 C4 08 5B 5D C3 66 2E 0F 1F 84 00 00 00 00 0 -> 0
0x3f042a825e: 00 90 55 48 89 E5 53 50 83 7F 0C 00 74 41 48 89 FB 8A 47 08 A8 1B 74 37 C7 43 0C 00 00 00 00 8A 43 08 A8 1B 74 08 48 89 DF E8 D4 FD FF FF C7 43 0C 01 00 00 00 48 8D 05 86 6C 45 00 83 38 00 74 0E 48 89 DF 48 83 C4 08 5B    0 -> 0
0x3f042a82a7: 5D E9 23 F9 FF FF 48 83 C4 08 5B 5D C3 66 2E 0F 1F 84 00 00   0 -> 0
0x3f042a82bb:   0 -> 0
=====> 0x3f042a82bb:    0 -> 28
0x3f042a82bb: 00 00 00 66 90 55 48 89 E5 53 50 48 89 FB BF 40 00 00 00 BE 06 00 00 00 E8 08 63 10 00 85 C0 74 20 48 8D 0D 54 71 30 00 BF 06 00 00 00 BE 40 00 00 00 BA 01 00 00 00 49 89 D8 31 C0 E8 04 63 10 00 48 C7 43 10 00 00 00 00 48 83 C4 08 5B 5D C3 0F 1F 44 00 00 83 C7 FF 83 FF 07 77 0E 48 63 C7 48 8D 0D 46 54 33 00 8B 04 81 C3 31 C0 C3 0F 1F 80 00 00 00 00 55 48 89 E5 41 57 41 56 41 55 41 54 53 50 89 FB 66 48 8D 3D 58 2D 43 00 66 66 48 E8 30 CE DC FF 4C 8B 20 BF 40 00 00 00 BE 06 00 00 00 E8 7E 62 10 00 85 C0 74 20 41 89 D8 48 8D 0D FE 70 30 00 BF 06 00 00 00 BE 40 00 00 00 BA 01 00 00 00 31 C0 E8 7A 62 10 00 48 8D 0D 5B 6E 45 00 48 8B 81 78 07 00 00 23 81 60 07 00 00 A9 00 00 01 00 74 45 83 C3 FF 31 F6 83 FB 07 77 0D 48 63 C3 48 8D 0D B3 53 33 00 8B 34 81 48 8D 3D 29 6E 45 00 E8 3C 29 00 00 4D 85 E4 74 40 48 8D 3D 18 6E 45 00 4C 89 E6 E8 E8 26 00 00 4C 89 E7 E8 00 D3 EC FF 85 C0 79 25 EB 11 4D 85 E4 74 1E 4C 89 E7 E8 ED D2 EC FF 85 C0 79 12 41 89 84 24 C8 01 00 00 4C 89 E7 31 F6 E8 77 D1 EC FF C6 05 D8 89 45 00 01 E8 DB CF 26 00 41 B7 01 45 31 ED EB 15 0F 1F 00 48 8B 3D C9 89 45 00 E8 64 A6 FF FF 45 89 F5 41 B7 01 45 89 EE 31 DB 45 85 ED 0F 84 B6 00 00 00 48 89 DF E8 F8 44 ED FF 48 85 C0 0F 84 6F 01 00 00 4C 89 E3 4C 39 E0 74 E7 48 89 C3 F6 43 08 02 74 D5 83 7B 0C 00 0F 84 FB 00 00 00 41 F6 C7 01 74 C5 80 3D 97 89 45 00 00 75 13   0 -> 0
0x3f042a847b:   0 -> 0
0x3f042a847b:   0 -> 0
0x3f042a847b:   0 -> 0
0x3f042a847b:   0 -> 0
0x3f042a847b:   0 -> 0
0x3f042a847b:   0 -> 0
0x3f042a847b:   0 -> 0
0x3f042a847b:   0 -> 0
0x3f042a847b:   0 -> 0
0x3f042a847b:   0 -> 12
=====> 0x3f042a847b:    0 -> 44
0x3f042a847b:   0 -> 0
Table64     64 -> 64
 ------------
NativeBT: StardewValley/game/Stardew Valley() [0x34a1d40c]
NativeBT: linux-vdso.so.1(__vdso_rt_sigreturn+0) [0x3f8d5ff800]
NativeBT: [0x3f6b5daf70]
EmulatedBT: /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so+19fd7d [0x3f0419fd7d]
EmulatedBT: /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so+6ff158 [0x3f046ff158]
EmulatedBT: /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so+202225 [0x3f04202225]
EmulatedBT: /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so+17d82a [0x3f0417d82a]
EmulatedBT: ??? [(nil)]
2643|SIGSEGV @0x3f6b5daf70 (???(0x3f6b5daf70)) (x64pc=0x3f0419fd7d/"/home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so + 0x19fd7d", rsp=0x3f7b4fdd10, stack=0x3f7acfe000:0x3f7b4fe000 own=0x3f7acfe000 fp=0x3f7b4fda20), for accessing 0x630069004d (code=1/prot=0), db=0x3f6b8ee838(0x3f6b5dae98:0x3f6b5db280/0x3f0419fd40:0x3f0419fde5//home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so + 0x19fd40:clean, hash:17caf176/17caf176) handler=0x3f044dd240
RAX:0x0000000000000001 RCX:0x0000003f0470bf94 RDX:0x0000000000000006 RBX:0x007200630069004d 
RSP:0x0000003f7b4fdd10 RBP:0x0000003f7b4fdd40 RSI:0x0000000000000006 RDI:0x0000000036a24270 
 R8:0x0000000000000000  R9:0x0000003f7b4fdae8 R10:0x0000001b00000000 R11:0x0000003e8aca3918 
R12:0x0000003f045c9d0e R13:0x0000003f047006f0 R14:0x0000000000000001 R15:0x0000003f046fef20 
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053 
RSP-0x20:0x0000003f046f91f0 RSP-0x18:0xb229bab891314800 RSP-0x10:0x0000003f7b4fdd40 RSP-0x08:0x0000003f042a7df8
RSP+0x00:0x0000000000000001 RSP+0x08:0x0000003f046ff158 RSP+0x10:0x0000003f046def18 RSP+0x18:0x0000003f047006f0
2643|Double SIGSEGV (code=1, pc=0x3f6b5daf70, addr=0x630069004d, prot=00)!
Sigfault/Segbus while quitting, exiting silently
ksco commented 2 months ago

Please use the correct format for the code block. See https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code

lz-bro commented 2 months ago
Script started on 2024-08-30 13:47:13+08:00 [TERM="xterm-256color" TTY="/dev/pts/1" COLUMNS="80" LINES="24"]
[?2004h]0;bianbu@k1: ~/workspace/GOG_Gamesbianbu@k1:~/workspace/GOG_Games$ LD_LIBRARY_PATH=~/workspace/gl4es-master/lib BOX64_DYNAREC_TEST=1 box64 /home/bianbu/workspace/GOG_Games/StardewValley/
LD_LIBRARY_PATH=~/workspace/gl4es-master/lib BOX64_DYNAREC_TEST=1 box64 /home/bianbu/workspace/GOG_Games/StardewValley/game/Sta 
rdew\ Valley
[?2004l
Dynarec will compare it's execution with the interpreter (super slow, only for testing)
Dynarec for RISC-V With extension: I M A F D C Zba Zbb Zbc Zbs Vector (vlen: 256) PageSize:4096 Running on Unknown CPU with 8 Cores
Will use Hardware counter measured at 24.0 MHz emulating 3.0 GHz
Params database has 87 entries
Box64 with Dynarec v0.3.1 0450371e built on Aug 29 2024 11:48:51
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 65 Env var
BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/games/:/usr/local/games/:/snap/bin/:/snap/bin/
Looking for /home/bianbu/workspace/GOG_Games/StardewValley/game/Stardew Valley
Rename process to "Stardew Valley"
Using native(wrapped) libpthread.so.0
Using native(wrapped) libdl.so.2
Using emulated /lib/x86_64-linux-gnu/libstdc++.so.6
Using native(wrapped) libm.so.6
Using emulated /lib/x86_64-linux-gnu/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
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libhostfxr.so
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libhostpolicy.so
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so
Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db640 (0x75146)
Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db6d8 (0x75276)
Warning: Weak Symbol _ZTH27t_pStackWalkerWalkingThread not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db6e0 (0x75286)
Warning: Weak Symbol _ZTHN9StressLog19t_pCurrentThreadLogE not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db700 (0x752c6)
Warning: Weak Symbol _ZTH15t_CantStopCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db708 (0x752d6)
Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db760 (0x75386)
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclrtraceptprovider.so
Error loading needed lib liblttng-ust.so.0
Error loading one of needed lib
Error initializing needed lib /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclrtraceptprovider.so
Error loading needed lib liblttng-ust-tracepoint.so.0
Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x3f045c52fa, 102)
Error loading needed lib liblttng-ust-tracepoint.so.0
Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x3f045c52fa, 102)
Using native(wrapped) libnuma.so.1
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libclrjit.so
Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x3f06333750 (0x15c76)
Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f063337e0 (0x15d96)
Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x3f063337e8 (0x15da6)
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libSystem.Native.so
Error loading needed lib libicuuc.so.80
Warning: Cannot dlopen("libicuuc.so.80"/0x3faa7d6800, 1)
Error loading needed lib libicuuc.so.79
Warning: Cannot dlopen("libicuuc.so.79"/0x3faa7d6800, 1)
Error loading needed lib libicuuc.so.78
Warning: Cannot dlopen("libicuuc.so.78"/0x3faa7d6800, 1)
Error loading needed lib libicuuc.so.77
Warning: Cannot dlopen("libicuuc.so.77"/0x3faa7d6800, 1)
Error loading needed lib libicuuc.so.76
Warning: Cannot dlopen("libicuuc.so.76"/0x3faa7d6800, 1)
Error loading needed lib libicuuc.so.75
Warning: Cannot dlopen("libicuuc.so.75"/0x3faa7d6800, 1)
Error initializing native libicuuc.so.74 (last dlerror is libicuuc.so.74: cannot open shared object file: No such file or directory)
Error loading needed lib libicuuc.so.74
Warning: Cannot dlopen("libicuuc.so.74"/0x3faa7d6800, 1)
Error initializing native libicuuc.so.73 (last dlerror is libicuuc.so.73: cannot open shared object file: No such file or directory)
Error loading needed lib libicuuc.so.73
Warning: Cannot dlopen("libicuuc.so.73"/0x3faa7d6800, 1)
Using native(wrapped) libicuuc.so.72
Using native(wrapped) libicui18n.so.72
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libSDL2-2.0.so.0
Using native(wrapped) libwayland-client.so.0
Using native(wrapped) libwayland-egl.so.1
Using native(wrapped) libwayland-cursor.so.0
Using native(wrapped) libxkbcommon.so.0
Warning, difference between x64 Interpreter and Dynarec in 0x3f04505fe9 (f0 0f b1 4b 08 75 f0 e9)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000001 | 0000000000000000
MEM: @0x369965b8 : 00 00 00 00 | 01 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x10080 (cc 53 43 00 00 00 00 00)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
XMM[00]: 0000003faa7d6bec-0000000000000398 | 0000000000000000-0000000000000000
Warning, difference between x64 Interpreter and Dynarec in 0x10080 (cc 53 43 00 00 00 00 00)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
XMM[00]: 000000000400044e-00000000000000a0 | 0000000036a803b0-0000000000000551
Warning, difference between x64 Interpreter and Dynarec in 0x10080 (cc 53 43 00 00 00 00 00)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
XMM[00]: 0000000036a803b0-0000000000000444 | 0000000000000000-0000000000000000
Warning, difference between x64 Interpreter and Dynarec in 0x10080 (cc 53 43 00 00 00 00 00)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
XMM[00]: 0000003faa7d6df4-0000003faa7d6d9c | 0000000000000000-0000000000000000
Warning, difference between x64 Interpreter and Dynarec in 0x3f0450602b (f0 0f b1 4b 08 75 ee 48)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000000 | 0000000000000001
MEM: @0x369964e0 : 00 00 00 00 | 05 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f0450602b (f0 0f b1 4b 08 75 ee 48)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000005 | 0000000000000001
MEM: @0x369964e0 : 00 00 00 00 | 05 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f04505fda (8b 43 08 0f 1f 00 a8 01)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000001 | 0000000000000000
Warning, difference between x64 Interpreter and Dynarec in 0x3f0450602b (f0 0f b1 4b 08 75 ee 48)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000005 | 0000000000000001
MEM: @0x369964e0 : 00 00 00 00 | 05 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f04506355 (f0 0f b1 4b 08 74 26 83)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000005 | 0000000000000001
MEM: @0x369964e0 : 05 00 00 00 | 00 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f0450602b (f0 0f b1 4b 08 75 ee 48)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000005 | 0000000000000001
MEM: @0x369964e0 : 01 00 00 00 | 05 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f0450602b (f0 0f b1 4b 08 75 ee 48)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000005 | 0000000000000001
MEM: @0x369964e0 : 00 00 00 00 | 05 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x10080 (cc 53 43 00 00 00 00 00)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
XMM[00]: 0000003f0470b460-0000000060f2ff40 | 0000000000000000-0000000000000000
Warning, difference between x64 Interpreter and Dynarec in 0x3f04505fe9 (f0 0f b1 4b 08 75 f0 e9)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000001 | 0000000000000000
MEM: @0x369964e0 : 00 00 00 00 | 01 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f0450602b (f0 0f b1 4b 08 75 ee 48)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000005 | 0000000000000001
MEM: @0x369964e0 : 00 00 00 00 | 05 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x10080 (cc 53 43 00 00 00 00 00)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
XMM[00]: 0000000000000001-0000000061113098 | 0000000000000001-0000000000000001
Warning, difference between x64 Interpreter and Dynarec in 0x3f04505fe9 (f0 0f b1 4b 08 75 f0 e9)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000001 | 0000000000000000
MEM: @0x369965b8 : 00 00 00 00 | 01 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f04505fe9 (f0 0f b1 4b 08 75 f0 e9)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000001 | 0000000000000000
MEM: @0x369964e0 : 00 00 00 00 | 01 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f04505f60 (8a 43 08 a8 01 75 21 eb)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000036ce8d00 | 0000000036ce8d01
Warning, difference between x64 Interpreter and Dynarec in 0x3f04505fe9 (f0 0f b1 4b 08 75 f0 e9)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000001 | 0000000000000000
MEM: @0x369964e0 : 00 00 00 00 | 01 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f0450602b (f0 0f b1 4b 08 75 ee 48)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000005 | 0000000000000001
MEM: @0x369964e0 : 01 00 00 00 | 05 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f04505fe9 (f0 0f b1 4b 08 75 f0 e9)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000001 | 0000000000000000
MEM: @0x369964e0 : 02 00 00 00 | 01 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f04505fe9 (f0 0f b1 4b 08 75 f0 e9)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000001 | 0000000000000000
MEM: @0x369964e0 : 00 00 00 00 | 01 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f04505fe9 (f0 0f b1 4b 08 75 f0 e9)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000001 | 0000000000000000
MEM: @0x369964e0 : 00 00 00 00 | 01 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f0450602b (f0 0f b1 4b 08 75 ee 48)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000005 | 0000000000000001
MEM: @0x369964e0 : 00 00 00 00 | 05 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x10080 (cc 53 43 00 00 00 00 00)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
XMM[00]: 0000003f0470b460-0000000036a40ae0 | 0000000000000001-0000000000000001
Warning, difference between x64 Interpreter and Dynarec in 0x3f0450602b (f0 0f b1 4b 08 75 ee 48)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000000 | 0000000000000001
MEM: @0x3f047266d0 : 00 00 00 00 | 05 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f0450602b (f0 0f b1 4b 08 75 ee 48)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000005 | 0000000000000001
MEM: @0x369964e0 : 00 00 00 00 | 05 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f04505fe9 (f0 0f b1 4b 08 75 f0 e9)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000001 | 0000000000000000
MEM: @0x369964e0 : 00 00 00 00 | 01 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f0450602b (f0 0f b1 4b 08 75 ee 48)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000005 | 0000000000000001
MEM: @0x369964e0 : 00 00 00 00 | 05 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x3f0450602b (f0 0f b1 4b 08 75 ee 48)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: 0000000000000005 | 0000000000000001
MEM: @0x369964e0 : 01 00 00 00 | 05 00 00 00
Warning, difference between x64 Interpreter and Dynarec in 0x52200 (cc 53 43 62 e7 a2 34 00)
=======================================
DIFF: Dynarec |  Interpreter
----------------------
RAX: b229bab891314800 | 0000000000000000
RCX: 0000000000000001 | 0000003faa7d7bc8
RDX: 0000003faa7d4a60 | 0000000000000080
RBX: 0000003f0422afa7 | 00000000613251e8
RSP: 0000003faa7d4a48 | 0000003faa7d7e30
RBP: 0000003faa7d4a50 | 0000003faa7d7e50
RSI: 0000000000000020 | 0000003e8b0ec158
RDI: 0000003fd90e02a8 | 0000003e8b0ebd30
 R8: 0000003faa7d4df0 | 0000003faa7d7c30
 R9: 0000003f045ee844 | 0000000000000023
R10: 0000003f01023220 | 0000000000000008
R11: 0000003faa7d55a0 | 0000000000000008
R12: 0000003faa7d4f48 | 0000000061321a88
R13: 0000003f0472aa30 | 0000000000000000
R14: 0000003faa7d4df0 | 00000000613251e8
R15: 0000000000000001 | 0000000000000000
RIP: 0000003f04524c50 | 0000003e8c4139d5
XMM[00]: 0000000000000000-0000000000000000 | ff80ff80ff80ff80-ff80ff80ff80ff80
XMM[01]: 0000003f040da4da-0000003faa7d5a20 | 6174736e49657361-426465636e617473
XMM[02]: 0000000000000000-0000003f0456c14c | 6174736e49657361-426465636e617473
XMM[03]: 0000003f040da020-0000000000000000 | 006300740077006f-006f006500770073
XMM[04]: 0000000000000000-4000000000000000 | 007f007f007f007f-007f007f007f007f
XMM[05]: 0000000000000000-0000000000000000 | 0000000000000000-0000000042c80000
XMM[06]: 0000000000000000-0000000000000000 | 0000000000000000-00000000c2c80000
XMM[07]: 0000003faa7d5a08-0000003faa7d5a00 | 0000000000000000-000000003f000000
Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll
Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0x3faa7d34e0, 1)
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libSystem.IO.Compression.Native.so
Using native(wrapped) libz.so.1
Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll
Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0x3faa7d3540, 1)
2887|SIGSEGV @0x34eb5c1e (???(/home/bianbu/workspace/GOG_Games/StardewValley/game/Stardew Valley+0x6b5c1e)) (x64pc=0x3e00000002/"???", rsp=0x3e8c41cdf1, stack=0x3fa9fda000:0x3faa7da000 own=(nil) fp=0x3000000030), for accessing 0x3e00000002 (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
RSP-0x20:0xa4e8fb8b48f08b48 RSP-0x18:0x253c8b4890feb978 RSP-0x10:0x107f8b4878075788 RSP-0x08:0x7808429825348b4c
RSP+0x00:0x3900000140bf8b48 RSP+0x08:0x8b48ffc0b411e83f RSP+0x10:0xb7b46ee8fe8b49f0 RSP+0x18:0xe8fb8b48f08b48fe
RAX:0x00000100c0000005 RCX:0x0000000000000000 RDX:0x0000003faa7d4120 RBX:0x0000003faa7d4850 
RSP:0x0000003e8c41cdf1 RBP:0x0000003000000030 RSI:0x0000003faa7d42c0 RDI:0x0000000000000000 
 R8:0x000000006133d5ae  R9:0x0000000000000000 R10:0x0000003faa7d4228 R11:0x0000003faa7d42c0 
R12:0xffffffffffffffff R13:0x0000003faa7d4e01 R14:0x0000000000000000 R15:0x0000000000000000 
ES:0x002b CS:0x0140 SS:0x002b DS:0x002b FS:0x0000 GS:0x0000 
段错误
[?2004h]0;bianbu@k1: ~/workspace/GOG_Gamesbianbu@k1:~/workspace/GOG_Games$ exit 
[?2004l
exit

Script done on 2024-08-30 17:46:34+08:00 [COMMAND_EXIT_CODE="139"]

Is that mean someting bad happened in DynaRec?

ksco commented 2 months ago

Looks like some noise. Can you force rv64_vector to be 0 to see if that fixed this issue? Stardew Valley has been working fine on other RISC-V machines.

lz-bro commented 2 months ago

Looks like some noise. Can you force rv64_vector to be 0 to see if that fixed this issue? Stardew Valley has been working fine on other RISC-V machines.

I use BOX64_DYNAREC_RV64NOEXT=1 to disable rvv and zb* extensions, but it still failling.

bianbu@k1:~/workspace/GOG_Games$ LD_LIBRARY_PATH=~/workspace/gl4es-master/lib BOX64_SHOWBT=1 BOX64_SHOWSEGV=1 BOX64_DYNAREC_RV64NOEXT=1 box64 StardewValley/game/Stardew\ Valley
Show Segfault signal even if a signal handler is present
Show a Backtrace when a Segfault signal is caught
Dynarec for RISC-V With extension: I M A F D C PageSize:4096 Running on Unknown CPU with 8 Cores
Will use Hardware counter measured at 24.0 MHz emulating 3.0 GHz
Params database has 87 entries
Box64 with Dynarec v0.3.1 0450371e built on Aug 29 2024 11:48:51
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 64 Env var
BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/games/:/usr/local/games/:/snap/bin/:/snap/bin/
Looking for StardewValley/game/Stardew Valley
Rename process to "Stardew Valley"
Using native(wrapped) libpthread.so.0
Using native(wrapped) libdl.so.2
Using emulated /lib/x86_64-linux-gnu/libstdc++.so.6
Using native(wrapped) libm.so.6
Using emulated /lib/x86_64-linux-gnu/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
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libhostfxr.so
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libhostpolicy.so
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so
Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db640 (0x75146)
Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db6d8 (0x75276)
Warning: Weak Symbol _ZTH27t_pStackWalkerWalkingThread not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db6e0 (0x75286)
Warning: Weak Symbol _ZTHN9StressLog19t_pCurrentThreadLogE not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db700 (0x752c6)
Warning: Weak Symbol _ZTH15t_CantStopCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db708 (0x752d6)
Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db760 (0x75386)
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclrtraceptprovider.so
Error loading needed lib liblttng-ust.so.0
Error loading one of needed lib
Error initializing needed lib /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclrtraceptprovider.so
Error loading needed lib liblttng-ust-tracepoint.so.0
Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x3f045c52fa, 102)
Error loading needed lib liblttng-ust-tracepoint.so.0
Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x3f045c52fa, 102)
Using native(wrapped) libnuma.so.1
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libclrjit.so
Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x3f06333750 (0x15c76)
Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f063337e0 (0x15d96)
Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x3f063337e8 (0x15da6)
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libSystem.Native.so
Error loading needed lib libicuuc.so.80
Warning: Cannot dlopen("libicuuc.so.80"/0x3fb1c0d820, 1)
Error loading needed lib libicuuc.so.79
Warning: Cannot dlopen("libicuuc.so.79"/0x3fb1c0d820, 1)
Error loading needed lib libicuuc.so.78
Warning: Cannot dlopen("libicuuc.so.78"/0x3fb1c0d820, 1)
Error loading needed lib libicuuc.so.77
Warning: Cannot dlopen("libicuuc.so.77"/0x3fb1c0d820, 1)
Error loading needed lib libicuuc.so.76
Warning: Cannot dlopen("libicuuc.so.76"/0x3fb1c0d820, 1)
Error loading needed lib libicuuc.so.75
Warning: Cannot dlopen("libicuuc.so.75"/0x3fb1c0d820, 1)
Error initializing native libicuuc.so.74 (last dlerror is libicuuc.so.74: cannot open shared object file: No such file or directory)
Error loading needed lib libicuuc.so.74
Warning: Cannot dlopen("libicuuc.so.74"/0x3fb1c0d820, 1)
Error initializing native libicuuc.so.73 (last dlerror is libicuuc.so.73: cannot open shared object file: No such file or directory)
Error loading needed lib libicuuc.so.73
Warning: Cannot dlopen("libicuuc.so.73"/0x3fb1c0d820, 1)
Using native(wrapped) libicuuc.so.72
Using native(wrapped) libicui18n.so.72
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libSDL2-2.0.so.0
Using native(wrapped) libwayland-client.so.0
Using native(wrapped) libwayland-egl.so.1
Using native(wrapped) libwayland-cursor.so.0
Using native(wrapped) libxkbcommon.so.0
NativeBT: StardewValley/game/Stardew Valley() [0x34a1d40c]
NativeBT: linux-vdso.so.1(__vdso_rt_sigreturn+0) [0x3fb1e13800]
NativeBT: [0x3f8e4b8dc8]
EmulatedBT: ??? [0x3e8c3e34f5]
EmulatedBT: ??? [0x3e8c3e0930]
EmulatedBT: ??? [0x3e8c3e051b]
EmulatedBT: ??? [0x3e8bc07233]
EmulatedBT: ??? [0x3e8bff9889]
EmulatedBT: ??? [0x3e8bff8b51]
EmulatedBT: ??? [0x3e8bff6335]
EmulatedBT: ??? [0x3e8bff5c5b]
EmulatedBT: ??? [0x3e8bff518b]
EmulatedBT: ??? [0x3e8af73781]
EmulatedBT: /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so+382e67 [0x3f04382e67]
EmulatedBT: /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so+1b91eb [0x3f041b91eb]
EmulatedBT: /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so+6febc8 [0x3f046febc8]
EmulatedBT: ??? [0x3fb1c0f170]
2735|SIGSEGV @0x3f8e4b8dc8 (???(0x3f8e4b8dc8)) (x64pc=0x3e8c3e34f5/"???", rsp=0x3fb1c0ee50, stack=0x3fb1411000:0x3fb1c11000 own=(nil) fp=0x3fb1c0e4c0), for accessing 0x8 (code=1/prot=0), db=0x3f8f657af8(0x3f8e4b8d98:0x3f8e4b8e80/0x3e8c3e34e0:0x3e8c3e3501/???:clean, hash:8aee4c6e/8aee4c6e) handler=0x3f044dd240
RAX:0x0000000000000000 RCX:0x0000003fb1c0ebe8 RDX:0x0000000000000080 RBX:0x00000000615e1698 
RSP:0x0000003fb1c0ee50 RBP:0x0000003fb1c0ee70 RSI:0x0000003e8b0bc158 RDI:0x0000003e8b0bbd30 
 R8:0x0000003fb1c0ec50  R9:0x0000000000000023 R10:0x0000000000000008 R11:0x0000000000000008 
R12:0x00000000615ddf38 R13:0x0000000000000000 R14:0x00000000615e1698 R15:0x0000000000000000 
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053 
RSP-0x20:0x0000003fb1c0ebe8 RSP-0x18:0x0000003fb1c0ec50 RSP-0x10:0x0000000000000023 RSP-0x08:0x00000000615ddf38
RSP+0x00:0x0000000000000000 RSP+0x08:0x00000000615e1698 RSP+0x10:0x00000000615e1698 RSP+0x18:0x00000000615e1698
Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll
Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0x3fb1c0a500, 1)
Using emulated /home/bianbu/workspace/GOG_Games/StardewValley/game/libSystem.IO.Compression.Native.so
Using native(wrapped) libz.so.1
Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll
Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0x3fb1c0a560, 1)
NativeBT: StardewValley/game/Stardew Valley() [0x34a1d40c]
NativeBT: linux-vdso.so.1(__vdso_rt_sigreturn+0) [0x3fb1e13800]
NativeBT: StardewValley/game/Stardew Valley() [0x34eb64a0]
NativeBT: StardewValley/game/Stardew Valley() [0x34a07a40]
NativeBT: StardewValley/game/Stardew Valley() [0x34a1c222]
NativeBT: StardewValley/game/Stardew Valley() [0x34a1cac4]
NativeBT: StardewValley/game/Stardew Valley() [0x34a1d610]
NativeBT: linux-vdso.so.1(__vdso_rt_sigreturn+0) [0x3fb1e13800]
NativeBT: [0x3f8e4b8dc8]
EmulatedBT: ??? [0x3e8c3ec1a1]
EmulatedBT: ??? [0x3e8c3e3ab7]
EmulatedBT: /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so+382e67 [0x3f04382e67]
EmulatedBT: /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so+1b8aee [0x3f041b8aee]
EmulatedBT: /home/bianbu/workspace/GOG_Games/StardewValley/game/libcoreclr.so+6bcbd0 [0x3f046bcbd0]
EmulatedBT: ??? [0x3fb1c0bb38]
2735|SIGSEGV @0x34eb64a0 (???(StardewValley/game/Stardew Valley+0x6b64a0)) (x64pc=0x3e8c3ec1a1/"???", rsp=0x3fb1c0b9c0, stack=0x3fb1411000:0x3fb1c11000 own=(nil) fp=0x3fb1c0b9f0), for accessing 0x140 (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=0x3f044dd240
RSP-0x20:0x00000000615ff7d0 RSP-0x18:0x00000000615e71b0 RSP-0x10:0x0000003fb1c0b9f0 RSP-0x08:0x0000003e8c3ec18c
RSP+0x00:0x0000003fb1c0b9c0 RSP+0x08:0x00000000615e6660 RSP+0x10:0x00000000615e71b0 RSP+0x18:0x00000000615e6520
RAX:0x00000000615e71b0 RCX:0x00000000615f7a00 RDX:0x000000000000000a RBX:0x00000000615e71b0 
RSP:0x0000003fb1c0b9c0 RBP:0x0000003fb1c0b9f0 RSI:0x000000006009bb20 RDI:0x0000000000000000 
 R8:0x00000000615f79fe  R9:0x0000000000000000 R10:0x0000000000000038 R11:0x0000000000000006 
R12:0x00000000615e6660 R13:0x0000003fb1c0bed0 R14:0x00000000615fee78 R15:0x00000000615e6260 
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053 
NativeBT: StardewValley/game/Stardew Valley() [0x34a1d40c]
NativeBT: linux-vdso.so.1(__vdso_rt_sigreturn+0) [0x3fb1e13800]
NativeBT: StardewValley/game/Stardew Valley() [0x34eb5c1e]
NativeBT: StardewValley/game/Stardew Valley() [0x349fbb8a]
NativeBT: StardewValley/game/Stardew Valley(my___libc_start_main+0x1a6) [0x34a0c654]
NativeBT: StardewValley/game/Stardew Valley() [0x34a3c774]
NativeBT: StardewValley/game/Stardew Valley() [0x34eb7492]
NativeBT: StardewValley/game/Stardew Valley() [0x349f76e4]
NativeBT: StardewValley/game/Stardew Valley() [0x349f315e]
NativeBT: /lib/riscv64-linux-gnu/libc.so.6(+0x26778) [0x3fb1cbf778]
NativeBT: /lib/riscv64-linux-gnu/libc.so.6(__libc_start_main+0x74) [0x3fb1cbf820]
NativeBT: StardewValley/game/Stardew Valley(_start+0x20) [0x349f3198]
EmulatedBT: ??? [0x3e00000002]
2735|SIGSEGV @0x34eb5c1e (???(StardewValley/game/Stardew Valley+0x6b5c1e)) (x64pc=0x3e00000002/"???", rsp=0x3e8c3ec1a1, stack=0x3fb1411000:0x3fb1c11000 own=(nil) fp=0x3000000030), for accessing 0x3e00000002 (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
RSP-0x20:0xf4e8fb8b48f08b48 RSP-0x18:0x253c8b4890feb984 RSP-0x10:0x107f8b4878075788 RSP-0x08:0x7808429825348b4c
RSP+0x00:0x3900000140bf8b48 RSP+0x08:0x8b48ffc0c101e83f RSP+0x10:0xb7c0bee8fe8b49f0 RSP+0x18:0xe8fb8b48f08b48fe
RAX:0x00000100c0000005 RCX:0x0000000000000000 RDX:0x0000003fb1c0b140 RBX:0x0000003fb1c0b870 
RSP:0x0000003e8c3ec1a1 RBP:0x0000003000000030 RSI:0x0000003fb1c0b2e0 RDI:0x0000000000000000 
 R8:0x00000000615f79fe  R9:0x0000000000000000 R10:0x0000003fb1c0b248 R11:0x0000003fb1c0b2e0 
R12:0xffffffffffffffff R13:0x0000003fb1c0be01 R14:0x0000000000000000 R15:0x0000000000000000 
ES:0x002b CS:0x0140 SS:0x002b DS:0x002b FS:0x0000 GS:0x0000 
段错误
ksco commented 2 months ago

Can you try the old version of Stardew Valley? I suspect the new version, which was released not long ago, is not working.

lz-bro commented 2 months ago

Can you try the old version of Stardew Valley? I suspect the new version, which was released not long ago, is not working.

Stardew Valley v1.5.6

bianbu@k1:~/workspace$ LD_LIBRARY_PATH=~/workspace/gl4es-master/lib BOX64_DYNAREC_RV64NOEXT=1 box64 squashfs-root/usr/lib/StardewValley/Stardew\ Valley
Dynarec for RISC-V With extension: I M A F D C PageSize:4096 Running on Unknown CPU with 8 Cores
Will use Hardware counter measured at 24.0 MHz emulating 3.0 GHz
Params database has 87 entries
Box64 with Dynarec v0.3.1 0450371e built on Aug 29 2024 11:48:51
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 64 Env var
BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/games/:/usr/local/games/:/snap/bin/:/snap/bin/
Looking for squashfs-root/usr/lib/StardewValley/Stardew Valley
Rename process to "Stardew Valley"
Using native(wrapped) libpthread.so.0
Using native(wrapped) libdl.so.2
Using emulated /lib/x86_64-linux-gnu/libstdc++.so.6
Using native(wrapped) libm.so.6
Using emulated /lib/x86_64-linux-gnu/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
Using emulated /home/bianbu/workspace/squashfs-root/usr/lib/StardewValley/libhostfxr.so
Using emulated /home/bianbu/workspace/squashfs-root/usr/lib/StardewValley/libhostpolicy.so
Using emulated /home/bianbu/workspace/squashfs-root/usr/lib/StardewValley/libcoreclr.so
Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046a3650 (0x71e86)
Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046a36e8 (0x71fb6)
Warning: Weak Symbol _ZTH27t_pStackWalkerWalkingThread not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046a36f0 (0x71fc6)
Warning: Weak Symbol _ZTHN9StressLog19t_pCurrentThreadLogE not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046a3708 (0x71ff6)
Warning: Weak Symbol _ZTH15t_CantStopCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046a3710 (0x72006)
Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046a3778 (0x720d6)
Using emulated /home/bianbu/workspace/squashfs-root/usr/lib/StardewValley/libcoreclrtraceptprovider.so
Error loading needed lib liblttng-ust.so.0
Error loading one of needed lib
Error initializing needed lib /home/bianbu/workspace/squashfs-root/usr/lib/StardewValley/libcoreclrtraceptprovider.so
Error loading needed lib liblttng-ust-tracepoint.so.0
Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x3f04591e30, 102)
Error loading needed lib liblttng-ust-tracepoint.so.0
Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x3f04591e30, 102)
Using native(wrapped) libnuma.so
Using emulated /home/bianbu/workspace/squashfs-root/usr/lib/StardewValley/libclrjit.so
Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x3f063067d0 (0x15676)
Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f06306870 (0x157b6)
Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x3f06306878 (0x157c6)
Using emulated /home/bianbu/workspace/squashfs-root/usr/lib/StardewValley/libSystem.Native.so
Look for sysctl in loaded elfs
Found symbol with version GLIBC_2.27, value = 0x3f966ccc70
Using emulated /home/bianbu/workspace/squashfs-root/usr/lib/StardewValley/libSDL2-2.0.so.0
Using native(wrapped) libwayland-client.so.0
Using native(wrapped) libwayland-egl.so.1
Using native(wrapped) libwayland-cursor.so.0
Using native(wrapped) libxkbcommon.so.0
Error loading needed lib libicuuc.so.80
Warning: Cannot dlopen("libicuuc.so.80"/0x3f9654b840, 1)
Error loading needed lib libicuuc.so.79
Warning: Cannot dlopen("libicuuc.so.79"/0x3f9654b840, 1)
Error loading needed lib libicuuc.so.78
Warning: Cannot dlopen("libicuuc.so.78"/0x3f9654b840, 1)
Error loading needed lib libicuuc.so.77
Warning: Cannot dlopen("libicuuc.so.77"/0x3f9654b840, 1)
Error loading needed lib libicuuc.so.76
Warning: Cannot dlopen("libicuuc.so.76"/0x3f9654b840, 1)
Error loading needed lib libicuuc.so.75
Warning: Cannot dlopen("libicuuc.so.75"/0x3f9654b840, 1)
Error initializing native libicuuc.so.74 (last dlerror is libicuuc.so.74: cannot open shared object file: No such file or directory)
Error loading needed lib libicuuc.so.74
Warning: Cannot dlopen("libicuuc.so.74"/0x3f9654b840, 1)
Error initializing native libicuuc.so.73 (last dlerror is libicuuc.so.73: cannot open shared object file: No such file or directory)
Error loading needed lib libicuuc.so.73
Warning: Cannot dlopen("libicuuc.so.73"/0x3f9654b840, 1)
Using native(wrapped) libicuuc.so.72
Using native(wrapped) libicui18n.so.72
Warning, table64 bigger than expected 7 vs 7
BOX64: Warning, size difference in block between pass2 (260, 23) & pass3 (324, 23)!
Dump of 23 x64 opcodes:
0x3f0429e58c: 8A 43 08  0 -> 0
=====> 0x3f0429e58f: A8 08  68 -> 60
=====> 0x3f0429e591: 74 42  72 -> 48
0x3f0429e593: 66 2E 0F 1F 84 00 00 00 00 00 180 -> 180
0x3f0429e59d: 0F 1F 00  4 -> 4
=====> 0x3f0429e5a0: 80 BB A0 05 00 00 00   64 -> 44
=====> 0x3f0429e5a7: 75 2C  56 -> 52
0x3f0429e5a9: 0F 1F 80 00 00 00 00  12 -> 12
0x3f0429e5b0: 48 89 DF  8 -> 8
0x3f0429e5b3: E8 B8 15 00 00    48 -> 48
0x3f0429e5b8: 8B 43 08  4 -> 4
0x3f0429e5bb: A8 08 104 -> 104
0x3f0429e5bd: 75 F1 0 -> 0
0x3f0429e5bf: 89 C1 0 -> 0
0x3f0429e5c1: 81 E1 F7 FF F7 FF 0 -> 0
0x3f0429e5c7: F0 0F B1 4B 08    0 -> 0
0x3f0429e5cc: 75 E2 0 -> 0
0x3f0429e5ce: 8A 43 08  0 -> 0
0x3f0429e5d1: A8 08 0 -> 0
0x3f0429e5d3: 75 CB 0 -> 0
0x3f0429e5d5: BF 40 00 00 00    12 -> 12
0x3f0429e5da: BE 08 00 00 00    12 -> 12
0x3f0429e5df: E8 DC 83 0F 00    52 -> 52
Table64     56 -> 64
 ------------
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Collections.CollectionBase..ctor()
   at System.Xml.Serialization.XmlAttributes..ctor(System.Reflection.ICustomAttributeProvider)
   at System.Xml.Serialization.XmlReflectionImporter.GetAttributes(System.Reflection.MemberInfo)
   at System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(System.Xml.Serialization.StructMapping, System.Xml.Serialization.StructModel, Boolean, System.String, System.Xml.Serialization.RecursionLimiter)
   at System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(System.Xml.Serialization.StructModel, System.String, Boolean, System.Xml.Serialization.XmlAttributes, System.Xml.Serialization.RecursionLimiter)
   at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(System.Xml.Serialization.TypeModel, System.String, ImportContext, System.String, System.Xml.Serialization.XmlAttributes, Boolean, Boolean, System.Xml.Serialization.RecursionLimiter)
   at System.Xml.Serialization.XmlReflectionImporter.ImportElement(System.Xml.Serialization.TypeModel, System.Xml.Serialization.XmlRootAttribute, System.String, System.Xml.Serialization.RecursionLimiter)
   at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(System.Type, System.Xml.Serialization.XmlRootAttribute, System.String)
   at System.Xml.Serialization.XmlSerializer.GenerateXmlTypeMapping(System.Type, System.Xml.Serialization.XmlAttributeOverrides, System.Type[], System.Xml.Serialization.XmlRootAttribute, System.String)
   at System.Xml.Serialization.XmlSerializer..ctor(System.Type, System.Xml.Serialization.XmlAttributeOverrides, System.Type[], System.Xml.Serialization.XmlRootAttribute, System.String, System.String)
   at System.Xml.Serialization.XmlSerializer..ctor(System.Type, System.Type[])
   at StardewValley.SaveGame..cctor()
   at System.Runtime.CompilerServices.RuntimeHelpers._RunClassConstructor(System.RuntimeType)
   at StardewValley.LocalMultiplayer.GetStaticFieldsAndDefaults()
   at StardewValley.GameRunner..ctor()
   at StardewValley.Program.Main(System.String[])
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley() [0x34a1d40c]
NativeBT: linux-vdso.so.1(__vdso_rt_sigreturn+0) [0x3f96752800]
NativeBT: /lib/riscv64-linux-gnu/libc.so.6(+0x6c0da) [0x3f966440da]
NativeBT: /lib/riscv64-linux-gnu/libc.so.6(gsignal+0x12) [0x3f9660e29a]
NativeBT: /lib/riscv64-linux-gnu/libc.so.6(abort+0xac) [0x3f965fe3c4]
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley() [0x34eb7492]
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley() [0x34a07a40]
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley() [0x34a1c222]
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley() [0x34a1cac4]
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley() [0x34a1d610]
NativeBT: linux-vdso.so.1(__vdso_rt_sigreturn+0) [0x3f96752800]
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley() [0x34eb9844]
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley() [0x349fbb8a]
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley(my___libc_start_main+0x1a6) [0x34a0c654]
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley() [0x34a3c774]
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley() [0x34eb7492]
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley() [0x349f76e4]
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley() [0x349f315e]
NativeBT: /lib/riscv64-linux-gnu/libc.so.6(+0x26778) [0x3f965fe778]
NativeBT: /lib/riscv64-linux-gnu/libc.so.6(__libc_start_main+0x74) [0x3f965fe820]
NativeBT: squashfs-root/usr/lib/StardewValley/Stardew Valley(_start+0x20) [0x349f3198]
EmulatedBT: box64(abort+0) [0x50080]
EmulatedBT: /home/bianbu/workspace/squashfs-root/usr/lib/StardewValley/libcoreclr.so+4e582e [0x3f044e582e]
EmulatedBT: /home/bianbu/workspace/squashfs-root/usr/lib/StardewValley/libcoreclr.so+4e577c [0x3f044e577c]
EmulatedBT: /home/bianbu/workspace/squashfs-root/usr/lib/StardewValley/libcoreclr.so+1e3208 [0x3f041e3208]
EmulatedBT: ??? [0x3f9654b400]
EmulatedBT: ??? [(nil)]
2495|SIGABRT @0x3f966440da (???(/lib/riscv64-linux-gnu/libc.so.6+0x6c0da)) (x64pc=0x50093/"???", rsp=0x3f9654aca8, stack=0x3f95d50000:0x3f96550000 own=(nil) fp=0x3f9654acb0), for accessing 0x3e8000009bf (code=-6/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
RSP-0x20:0x0000000000000000 RSP-0x18:0xb229bab891314800 RSP-0x10:0x0000000000000001 RSP-0x08:0x0000003f9654acb0
RSP+0x00:0x0000003f044e582e RSP+0x08:0x0000003f9654ace0 RSP+0x10:0x0000003f044e577c RSP+0x18:0x00000000ffffff01
RAX:0xb229bab891314800 RCX:0x0000000000000000 RDX:0x0000000000000000 RBX:0x0000000000000001 
RSP:0x0000003f9654aca8 RBP:0x0000003f9654acb0 RSI:0x0000003f046e9968 RDI:0x0000000000000003 
 R8:0x0000000036a10de0  R9:0x0000000000000000 R10:0x0000003f9654a696 R11:0x0000003f9654a69a 
R12:0x00000000c0000005 R13:0x0000003f042c27db R14:0x00000000c0000005 R15:0x0000000000000000 
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053 
已放弃