box64: SOMA, v1.61 (50361), Linux x64, GOG, Segmentation fault
Description
SOMA, v1.61 (50361), Linux x64, GOG, Engine: HPL Rock 5B, Box64 with Dynarec v0.2.3 38a5e55, PAN_MESA_DEBUG=gofaster,gl3
Not working, ending with Segmentation fault. Also reported here, https://github.com/ptitSeb/box86-compatibility-list/issues/245
Already tested:
-force-opengl, no effect.
rico [ /opt/games/soma ]$ ./Soma.bin.x86_64
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096 Running on Cortex-A55 Cortex-A76 with 8 Cores
Params database has 21 entries
Using bash "/home/rico/box64/tests/bash"
Box64 with Dynarec v0.2.1 c5e085b built on Mar 10 2023 13:29:51
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 57 Env var
Looking for ./Soma.bin.x86_64
Rename process to "Soma.bin.x86_64"
Using native(wrapped) libGL.so.1
Using native(wrapped) libGLU.so.1
Using emulated /opt/games/soma/lib64/libtheora.so.0
Using native(wrapped) libvorbis.so.0
Using native(wrapped) libvorbisfile.so.3
Using native(wrapped) libogg.so.0
Using emulated /opt/games/soma/lib64/libIL.so.1
Using native(wrapped) libz.so.1
Using emulated /opt/games/soma/lib64/libfmodex64-4.44.62.so
Using emulated /opt/games/soma/lib64/libfmodevent64-4.44.62.so
Using native(wrapped) libSDL2-2.0.so.0
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libm.so.6
Using emulated /lib/x86_64-linux-gnu/libstdc++.so.6
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Look for pthread_yield in loaded elfs
Found symbol with version GLIBC_2.17, value = 0x7fa64f1520
1484|SIGSEGV @0x7fa6448f54 (pthread_setschedparam (/usr/lib/libc.so.6)) (x64pc=0xa0613/???:"???", rsp=0x101fff148, stack=0x101800000:0x102000000 own=(nil) fp=(nil)), for accessing 0xd0 (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
RSP-0x20:0x00000000012746bf RSP-0x18:0x000000007079f090 RSP-0x10:0x0000000000e95259 RSP-0x08:0x0000000072c2b1e8
RSP+0x00:0x000000000127474d RSP+0x08:0x0000000000000000 RSP+0x10:0x00000000705b2c10 RSP+0x18:0x000000007427d780
RAX:0x000000007079f0e0 RCX:0x00000000366cadf0 RDX:0x000000007079f090 RBX:0x000000007079f090
RSP:0x0000000101fff148 RBP:0x0000000000000000 RSI:0x0000000072c2b1e8 RDI:0x0000000001279e20
R8:0x0000000001f55640 R9:0x0000000000000000 R10:0x00000000019ce935 R11:0x0000000070786af0
R12:0x00000000705bd820 R13:0x00000000705d18b0 R14:0x0000000000000001 R15:0x0000000101fff180
Segmentation fault (core dumped)
Tested on
RADXA Rock 5B (rk3588) 16GB LFS, BSP kernel 5.10.110+ rkr3.6, Gnome 43.4, Box64 with Dynarec v0.2.3 38a5e55 1080p, default game setting
Reproduce
cd $game_folder
export PAN_MESA_DEBUG=gofaster,gl3
./Soma.bin.x86_64
Logs
Pasted above
Status
Previous behavior:
None reported
Current behavior:
Segmentation fault via box64
Screenshots
OpenGL
OpenGL 3.3 HPL Engine 3
Additional Information
PAN_MESA_DEBUG=gofaster,gl3
Box64 with Dynarec v0.2.3 38a5e55, compiled with -DRK3588=1
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (4 by maintainers)
@ricoazzurro according to the trace, I see
SDL_GetThreadID(XXX)returning “0”, wich is not normal at all. The subsequent call topthread_setschedparam(...)with0x0as ThreadID then crash… I would say it’s normal. The issue isSDL_GetThreadID(..)here that is returning NULL. It’s used with the return value ofSDL_CreateThread(...)as paramter, so this sequence is completly normal! I would say the issue is in sdl2-compat probably yes. I don’t see box64 being at fault here. If you have a copy of the x64 version of sdl2 (maybe in the game folder), you might run it with emulated sdl2, that might just works.Hi @ricoazzurro, I pushed a fix 2ee846f48e7fa9b103f0949f63f91712ca7b03ca which might solve your issue, can you try again on this?