ptitSeb / box86

Box86 - Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices
https://box86.org
MIT License
3.31k stars 227 forks source link

Arma 3 server crash #512

Open Vitsowdy opened 2 years ago

Vitsowdy commented 2 years ago

Hello, I am having problem with launching Arma 3 server. I didn't worked with Box86/Box64 before.

With Box86 (Box86 with Dynarec v0.2.3 3a7cc57f built on Jul 9 2021 17:31:35) it crashes with this error:

1274|SIGSEGV @0xf5647cac (???(0xf5647cac)) (x86pc=0x98ba811/./arma3server:"./arma3server/free", esp=0xf719d710, stack=0xf699f000:0xf719f000 own=(nil) fp=0x26), for accessing 0xa8444f4 (code=1/prot=0), db=0x63879690(0xf5647b84:0xf5647ce4/0x98ba7b0:0x98ba81c/./arma3server/free:clean, hash:a471170a/a471170a)
1274|Double SIGSEGV (code=1, pc=0xf5647cac, addr=0xa8444f4)!
1274|SIGSEGV @0xef2f16b0 (???(0xef2f16b0)) (x86pc=0x98c96fd/./arma3server:"???", esp=0xf719d528, stack=0xf699f000:0xf719f000 own=(nil) fp=0xb0), for accessing 0x2c (code=1/prot=0), db=0x63f40030(0xef2f1008:0xef2f188c/0x98c93d0:0x98c977c/???:clean, hash:b1210830/b1210830)
1274|Double SIGSEGV (code=1, pc=0xef2f16b0, addr=0x2c)!

With Box64 (Box64 with Dynarec v0.1.7 40c5824 built on Nov 27 2021 22:05:42) I get this:

Using emulated /home/ubuntu/steam/arma3/linux64/steamclient.so
1401|SIGSEGV @0xffff8ce70058 (???(0xffff8ce70058)) (x64pc=0x1bcd7d0//home/ubuntu/steam/arma3/arma3server_x64:"/home/ubuntu/steam/arma3/arma3server_x64/free + 392", rsp=0xffff8fbd4db0, stack=0xffff8f3d7000:0xffff8fbd7000 own=(nil) fp=0xffff8fbd4f30), for accessing 0x10000e4dd8f80 (code=1/prot=0), db=0x9b048b10(0xffff8ce6ffa0:0xffff8ce700fc/0x1bcd798:0x1bcd80b//home/ubuntu/steam/arma3/arma3server_x64/free + 392:clean, hash:ce61bbf9/ce61bbf9) handler=(nil)
Segmentation fault (core dumped)

How can I fix it?

ptitSeb commented 2 years ago

Seem to be a similar issue on 32 and 64 bits. I need to debug. Is Arma3 server free to download somewhere?

Vitsowdy commented 2 years ago

It is free to download in Steam (steam://run/233780), but if you need, I can upload files.

Edit: Somewhy in Steam PC Client it's free, but in SteamCMD it requires to have Arma 3 on account.

altyee commented 2 years ago

Seem to be a similar issue on 32 and 64 bits. I need to debug. Is Arma3 server free to download somewhere?

Can confirm the same problem. Btw I don't think you need to own Arma3 in order to get the dedicated server files, but it seems you do need to have a steam account (not anonymous) to download the files from steamcmd.

Tried to manually update and compile the latest version of box86 (inside a container), and the segfault is not appearing. But the server shutdown itself after "BattlEye Server: Initialized" message. Even if I specified disable BattleEye in the server config file, the BattleEye initialized message is still appearing. Tried the same config file on an x86 Ubuntu server (also in a container) and the BattleEye message is not appearing there. Don't know if this info would help.