blob: 869ab5f83882c9b573496fcf532a0b0153d919ff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
Braid with box32: Stack is corrupted
I've been trying to get Braid working via box32. I'm currently testing on an Ubuntu VM on an M1 Mac. In addition to the i386 libraries that come with the game (libCg, libCgGL, libfltk.so.1.3, libSDL), I've provided an i386 libXft.so.2. The game launcher crashes on startup with the following log, which suggests that _IO_2_1_stdout_ can't be found, which is strange given that libc.so.6 is loaded a few lines earlier.
I'm using the box64 from current github. Thanks for any insight!
```
$ box64 ./launcher.bin.x86
[BOX64] Box64 with Dynarec v0.3.5 built on Mar 20 2025 13:41:48
[BOX64] Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 USCAT FLAGM FLAGM2 FRINT
[BOX64] Running on unknown aarch64 cpu with 2 cores, pagesize: 4096
[BOX64] Will use hardware counter measured at 24.0 MHz emulating 3.0 GHz
[BOX64] Detected 48bits at least of address space
[BOX64] Counted 56 Env var
[BOX64] BOX64 trying to Preload libCg.so libCgGL.so
[BOX64] Library search path:
[BOX64] Binary search path: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/games/:/usr/local/games/:/snap/bin/
[BOX64] Looking for ./launcher.bin.x86
[BOX32] Using Box32 to load 32bits elf
[BOX32] Memory higher than 32bits reserved
[BOX32] Rename process to "launcher.bin.x86"
[BOX32] Using emulated libCg.so
[BOX32] Using native(wrapped) libm.so.6
[BOX32] Using native(wrapped) libpthread.so.0
[BOX32] Using native(wrapped) libc.so.6
[BOX32] Using native(wrapped) ld-linux.so.2
[BOX32] Using native(wrapped) librt.so.1
[BOX32] Using native(wrapped) libdl.so.2
[BOX32] Error: Symbol sym=_IO_2_1_stdout_(_IO_2_1_stdout_@GLIBC_2.1/version 7) not found, cannot apply R_386_32 0x40b3140c ((nil)) in libCg.so
[BOX32] Using emulated libCgGL.so
[BOX32] Using native(wrapped) libSDL2-2.0.so.0
[BOX32] Using emulated /home/ben/.hgfs/shared/braid/Braid/game/lib/libfltk.so.1.3
[BOX32] Using native(wrapped) libX11.so.6
[BOX32] Using emulated /usr/lib/box64-i386-linux-gnu/libstdc++.so.6
[BOX32] Using emulated /usr/lib/box64-i386-linux-gnu/libgcc_s.so.1
[BOX32] Using native(wrapped) libXcursor.so.1
[BOX32] Using native(wrapped) libXfixes.so.3
[BOX32] Using native(wrapped) libXrender.so.1
[BOX32] Using native(wrapped) libXext.so.6
[BOX32] Using emulated /home/ben/.hgfs/shared/braid/Braid/game/lib/libXft.so.2
[BOX32] Using native(wrapped) libfontconfig.so.1
[BOX32] Using native(wrapped) libexpat.so.1
[BOX32] Using native(wrapped) libfreetype.so.6
[BOX32] Using native(wrapped) libXinerama.so.1
No XIM style found
[BOX32] Using native(wrapped) libXrandr.so.2
[BOX32] 0x40eded28: Stack is corrupted, aborting ESP=0x3080ebfc /home/ben/.hgfs/shared/braid/Braid/game/lib/libXft.so.2 + 0x11d28
[BOX32] ==== CPU Registers ====
ES=0x002b CS=0x0023 SS=0x002b DS=0x002b FS=0x0000 GS=0x0033
RAX=d1694800 RCX=00000000 RDX=00000001 RBX=40ee6000 FLAGS=---Z---
RSP=3080ebfc RBP=40edf01c RSI=58366130 RDI=40edf073 EIP=30818053
[BOX32] ======== Stack ========
Stack is from 40EDF01C to 3080EBFC
[BOX32] Old IP: 0
```
|