ptitSeb / box64

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

fzf failing when box64 is installed #1125

Closed mobedoor closed 5 months ago

mobedoor commented 9 months ago

Hi. I'm using Asahi Linux. When box64 is installed, invoking fzf throws the following.

Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:16384 Running on Icestorm-M1 Firestorm-M1 with 8 Cores
Params database has 25 entries
Box64 with Dynarec v0.2.4 nogit built on Aug 23 2023 00:00:00
Error: PageSize configuration is wrong: configured with 4096, but got 16384

While it works normally without it installed.

ptitSeb commented 9 months ago

You box64 is not configured correctly for your machine. You should read the COMPILE.md and use the "M1" configuration to have it built on a 16K page.

mobedoor commented 8 months ago

I followed the instructions. Program still fails with the following


Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 USCAT FLAGM FLAGM2 FRINT PageSize:16384 Running on Icestorm-M1 Firestorm-M1 with 8 Cores
Params database has 38 entries
Box64 with Dynarec v0.2.6 e42001b2 built on Dec 16 2023 21:19:25
BOX64: Detected 48bits at least of address space
Counted 100 Env var
BOX64 LIB PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
BOX64 BIN PATH: ./:bin/:/home/user/.local/share/zinit/plugins/sharkdp---bat/:/home/user/.local/share/zinit/plugins/ogham---exa/:/home/user/.local/share/zinit/plugins/starship---starship/:/home/user/.local/share/zinit/plugins/junegunn---fzf-bin/:/home/user/.local/share/zinit/polaris/bin/:/run/user/1000/fnm_multishells/2322_1702743140549/bin/:/home/user/.local/share/flatpak/exports/bin/:/home/user/.cargo/bin/:/home/user/.local/bin/:/home/user/.scripts/:/home/user/.local/share/pnpm/:/home/user/.spicetify/:/home/user/.cargo/bin/:/usr/local/bin/:/usr/local/sbin/:/usr/bin/:/usr/sbin/
Looking for /home/user/.local/share/zinit/plugins/junegunn---fzf-bin/fzf
Rename process to "fzf"
14309|BOX64: Warning, calling Signal 11 function handler SIG_DFL
Unhandled signal caught, aborting
NativeBT: /home/user/.local/share/zinit/plugins/junegunn---fzf-bin/fzf() [0x3485778c]
NativeBT: linux-vdso.so.1(__kernel_rt_sigreturn+0) [0xfffed160c800]
NativeBT: /lib64/libc.so.6(+0x92280) [0xfffed1472280]
NativeBT: /lib64/libc.so.6(raise+0x20) [0xfffed1425800]
NativeBT: /lib64/libc.so.6(abort+0xf8) [0xfffed1410288]
NativeBT: /home/user/.local/share/zinit/plugins/junegunn---fzf-bin/fzf() [0x34856128]
NativeBT: /home/user/.local/share/zinit/plugins/junegunn---fzf-bin/fzf() [0x34856734]
NativeBT: /home/user/.local/share/zinit/plugins/junegunn---fzf-bin/fzf() [0x34858254]
NativeBT: /home/user/.local/share/zinit/plugins/junegunn---fzf-bin/fzf() [0x34d4c260]
NativeBT: /home/user/.local/share/zinit/plugins/junegunn---fzf-bin/fzf() [0x34822308]
NativeBT: /lib64/libc.so.6(+0x309dc) [0xfffed14109dc]
NativeBT: /lib64/libc.so.6(__libc_start_main+0x9c) [0xfffed1410ab0]
NativeBT: /home/user/.local/share/zinit/plugins/junegunn---fzf-bin/fzf(_start+0x30) [0x34822bb0]
EmulatedBT: /home/user/.local/share/zinit/plugins/junegunn---fzf-bin/fzf(runtime.abort+0) [0x460680]
14309|SIGABRT @0xfffed1472280 (???(/lib64/libc.so.6+0x92280)) (x64pc=0x460680//home/user/.local/share/zinit/plugins/junegunn---fzf-bin/fzf:"???", rsp=0x1007fc098, stack=0x100000000:0x100800000 own=(nil) fp=(nil)), for accessing 0x3e8000037e5 (code=-6/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
RSP-0x20:0x0000000000000000 RSP-0x18:0x0000000000000000 RSP-0x10:0x0000000000000000 RSP-0x08:0x0000000000000000
RSP+0x00:0x0000000000000000 RSP+0x08:0x0000000000000000 RSP+0x10:0x0000000000000000 RSP+0x18:0x0000000000000002
RAX:0x0000000000000000 RCX:0x0000000002d83203 RDX:0x0000000017888915 RBX:0x0000000000010800 
RSP:0x00000001007fc098 RBP:0x0000000000000000 RSI:0x0000000000694a50 RDI:0x0000000000001002 
 R8:0x0000000000000000  R9:0x0000000000000000 R10:0x0000000000000000 R11:0x0000000000000000 
R12:0x0000000000000000 R13:0x0000000000000000 R14:0x0000000000000000 R15:0x0000000000000000 
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053 
zsh: IOT instruction (core dumped)  fzf```
mobedoor commented 5 months ago

Was an issue on my end. Sorry for the bother.