box86: [bug] DohnaDohna failed to start with wine8 but fine on x86

Logs are here

Box86 with Dynarec v0.3.3 117fe48b built on Dec  3 2023 01:02:01
Box86 with Dynarec v0.3.3 117fe48b built on Dec  3 2023 01:02:01
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL PageSize:4096 Running on Cortex-A53 with 4 Cores
Params database has 25 entries
Box64 with Dynarec v0.2.5 90e2f04c built on Nov 15 2023 18:50:45
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 72 Env var
BOX64 LIB PATH: /opt/spark-wine/additional-lib/lib/x86_64-linux-gnu/:./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
BOX64 BIN PATH: ./:bin/:/flamescion-container-tools/bin-override/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/snap/bin/
Looking for /opt/spark-wine/bin/wineserver.real
argv[1]="-p0"
Rename process to "wineserver.real"
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
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL PageSize:4096 Running on Cortex-A53 with 4 Cores
Params database has 25 entries
Box64 with Dynarec v0.2.5 90e2f04c built on Nov 15 2023 18:50:45
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 72 Env var
BOX64 LIB PATH: /opt/spark-wine/additional-lib/lib/x86_64-linux-gnu/:./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
BOX64 BIN PATH: ./:bin/:/flamescion-container-tools/bin-override/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/snap/bin/
Looking for /opt/spark-wine/bin/wineserver.real
argv[1]="-p0"
Rename process to "wineserver.real"
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
002c:err:virtual:map_fixed_area out of memory for 0x6fffffc50000-0x6ffffffff000
002c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffc40000-0x7ffffffef000, unix_prot 0x7.
002c:err:virtual:map_fixed_area out of memory for 0x6fffffa90000-0x6fffffc48000
002c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
002c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
002c:err:virtual:map_fixed_area out of memory for 0x6fffff490000-0x6fffffa8b000
002c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
002c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
003c:err:virtual:map_fixed_area out of memory for 0x6fffffc50000-0x6ffffffff000
003c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffc40000-0x7ffffffef000, unix_prot 0x7.
003c:err:virtual:map_fixed_area out of memory for 0x6fffffa90000-0x6fffffc48000
003c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
003c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
003c:err:virtual:map_fixed_area out of memory for 0x6fffff490000-0x6fffffa8b000
003c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
003c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
0048:err:virtual:map_fixed_area out of memory for 0x6fffffc50000-0x6ffffffff000
0048:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffc40000-0x7ffffffef000, unix_prot 0x7.
0048:err:virtual:map_fixed_area out of memory for 0x6fffffa90000-0x6fffffc48000
0048:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
0048:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
0048:err:virtual:map_fixed_area out of memory for 0x6fffff490000-0x6fffffa8b000
0048:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
0048:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
006c:err:virtual:map_fixed_area out of memory for 0x6fffffc50000-0x6ffffffff000
006c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffc40000-0x7ffffffef000, unix_prot 0x7.
006c:err:virtual:map_fixed_area out of memory for 0x6fffffa90000-0x6fffffc48000
006c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
006c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
006c:err:virtual:map_fixed_area out of memory for 0x6fffff490000-0x6fffffa8b000
006c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
006c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
008c:err:virtual:map_fixed_area out of memory for 0x6fffffc50000-0x6ffffffff000
008c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffc40000-0x7ffffffef000, unix_prot 0x7.
008c:err:virtual:map_fixed_area out of memory for 0x6fffffa90000-0x6fffffc48000
008c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
008c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
008c:err:virtual:map_fixed_area out of memory for 0x6fffff490000-0x6fffffa8b000
008c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
008c:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0054:err:virtual:map_fixed_area out of memory for 0x6fffff480000-0x6fffff48a000
0054:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7ffffffe0000-0x7ffffffea000, unix_prot 0x7.
0054:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7ffffffe0000-0x7ffffffea000, unix_prot 0x7.
00ac:err:virtual:map_fixed_area out of memory for 0x6fffffc50000-0x6ffffffff000
00ac:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffc40000-0x7ffffffef000, unix_prot 0x7.
00ac:err:virtual:map_fixed_area out of memory for 0x6fffffa90000-0x6fffffc48000
00ac:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
00ac:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
00ac:err:virtual:map_fixed_area out of memory for 0x6fffff490000-0x6fffffa8b000
00ac:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
00ac:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL PageSize:4096 Running on Cortex-A53 with 4 Cores
Params database has 25 entries
Box64 with Dynarec v0.2.5 90e2f04c built on Nov 15 2023 18:50:45
BOX64: Wine64 detected, WINEPRELOADRESERVE="000400000-0004a6000"
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 74 Env var
BOX64 LIB PATH: /opt/spark-wine/additional-lib/lib/x86_64-linux-gnu/:./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
BOX64 BIN PATH: ./:bin/:/flamescion-container-tools/bin-override/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/snap/bin/
Looking for /opt/spark-wine/bin/wine64
argv[1]="C:\windows\system32\conhost.exe"
argv[2]="--unix"
argv[3]="--width"
argv[4]="172"
argv[5]="--height"
argv[6]="23"
argv[7]="--server"
argv[8]="0x10"
Rename process to "wine64"
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
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 emulated /opt/spark-wine/bin/../lib/wine/x86_64-unix/ntdll.so
Using emulated /opt/spark-wine/additional-lib/lib/x86_64-linux-gnu/libunwind.so.8
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Using native(wrapped) liblzma.so.5
00cc:err:virtual:map_fixed_area out of memory for 0x6fffffc50000-0x6ffffffff000
00cc:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffc40000-0x7ffffffef000, unix_prot 0x7.
00cc:err:virtual:map_fixed_area out of memory for 0x6fffffa90000-0x6fffffc48000
00cc:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
00cc:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
00cc:err:virtual:map_fixed_area out of memory for 0x6fffff490000-0x6fffffa8b000
00cc:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
00cc:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
Using emulated /opt/spark-wine/lib/wine/x86_64-unix/win32u.so
Using native(wrapped) libm.so.6
Using native(wrapped) libfreetype.so.6
Using native(wrapped) libfontconfig.so.1
Using native(wrapped) libexpat.so.1
shenmo128@armbian:~/Desktop$ Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
00dc:err:virtual:map_fixed_area out of memory for 0x6fffffc50000-0x6ffffffff000
00dc:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffc40000-0x7ffffffef000, unix_prot 0x7.
00dc:err:virtual:map_fixed_area out of memory for 0x6fffffa90000-0x6fffffc48000
00dc:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
00dc:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
00dc:err:virtual:map_fixed_area out of memory for 0x6fffff490000-0x6fffffa8b000
00dc:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
00dc:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
00f4:err:virtual:map_fixed_area out of memory for 0x6fffffc50000-0x6ffffffff000
00f4:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffc40000-0x7ffffffef000, unix_prot 0x7.
00f4:err:virtual:map_fixed_area out of memory for 0x6fffffa90000-0x6fffffc48000
00f4:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
00f4:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffffe30000-0x7ffffffe8000, unix_prot 0x7.
00f4:err:virtual:map_fixed_area out of memory for 0x6fffff490000-0x6fffffa8b000
00f4:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
00f4:err:virtual:try_map_free_area mmap() error 无法分配内存, range 0x7fffff9f0000-0x7ffffffeb000, unix_prot 0x7.
00d4:err:wininet:cache_containers_init Can't create container path accessible by ANSI functions
00d4:err:wininet:cache_containers_init Can't create container path accessible by ANSI functions
00d4:err:wininet:cache_containers_init Can't create container path accessible by ANSI functions


无法分配内存 means failed to allocate memory. I doubt whether it’s a memory fault because when i try to start explorer.exe it complain 无法分配内存 too but the explorer successfully launched. While, It still should be noticed that this warning does not show on x86


I tried to launch the dohnadohna.exe on explorer.exe to avoid noise, and i got err:wininet:cache_containers_init Can't create container path accessible by ANSI functions. I think that maybe the true question.

You can get the gamefile from https://cowtransfer.com/s/a20e576c777c40

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 18 (18 by maintainers)

Commits related to this issue

Most upvoted comments

So, after some analysis, it’s a new case of Obfuscation and Anti debug methods.

The Anti-debug use some Divide by 0 and classic Int 3. The Obfuscation as at least some new imul flag manipulation that I found a bit puzzling. Probably some other things too. I’ll work on this one on both box86 and box64 (using Wine/Wow64).