Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run wineserver #1009

Open
wiegell opened this issue Nov 2, 2024 · 5 comments
Open

Cannot run wineserver #1009

wiegell opened this issue Nov 2, 2024 · 5 comments

Comments

@wiegell
Copy link

wiegell commented Nov 2, 2024

Hello there.
I have tried to run box86 inside docker to get the user space 32-bit libs installed in an isolated manner.
I'm running it on a odroid n2. However, i cannot get the wineserver to do anything else than outputting the version.

My docker setup:
https://github.com/wiegell/box

What i do when trying to run a wine command:

box86 ./bash

wine --version

# OUTPUT
# Box86 with Dynarec v0.3.7 c993aacd built on Oct 30 2024 06:36:16
# wine-9.0 

wineserver --version

# OUTPUT
# Box86 with Dynarec v0.3.7 c993aacd built on Oct 30 2024 06:36:16
# wine-9.0 

wine ./data/h3.exe

# OUTPUT
# Box86 with Dynarec v0.3.7 c993aacd built on Oct 30 2024 06:36:16
# Box86 with Dynarec v0.3.7 c993aacd built on Oct 30 2024 06:36:16
# wine: could not exec wineserver

wineserver -d -f -p

# OUTPUT
# Box86 with Dynarec v0.3.7 c993aacd built on Oct 30 2024 06:36:16
# sock_init: shutdown() causes EOF
# wineserver: starting (pid=721)

And then no wineserver can be seen when running top.
I should note, that l have tried this both via docker exec and via the terminal i have running in lxde (via VNC) to no avail.

Any help is welcome

@ptitSeb
Copy link
Owner

ptitSeb commented Nov 3, 2024

Run with BOX86_LOG=1 so we can have more details.

@wiegell
Copy link
Author

wiegell commented Nov 3, 2024

Thank you for the quick reply, here i'm running wine directly without bash (same error):

bjoern@6475f8b41325:~$ BOX86_LOG=1 box86 ./wine/bin/wine ./data/h3.exe
Debug level is 1
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA AES PMULL PageSize:4096 Running on Cortex-A53 Cortex-A73 with 6 Cores
Params database has 32 entries
Box86 with Dynarec v0.3.7 c993aacd built on Oct 30 2024 06:36:16
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/
Using default BOX86_PATH: ./:bin/
Counted 10 Env var
Looking for ./wine/bin/wine
argv[1]="./data/h3.exe"
Rename process to "wine"
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using native(wrapped) libm.so.6
Using native(wrapped) libbsd.so.0
Using emulated /home/bjoern/wine/bin/../lib/wine/i386-unix/ntdll.so
Debug level is 1
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA AES PMULL PageSize:4096 Running on Cortex-A53 Cortex-A73 with 6 Cores
Params database has 32 entries
Box86 with Dynarec v0.3.7 c993aacd built on Oct 30 2024 06:36:16
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/
Using default BOX86_PATH: ./:bin/
Counted 12 Env var
Looking for /home/bjoern/wine/bin/wine
argv[1]="./data/h3.exe"
Rename process to "wine"
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using native(wrapped) libm.so.6
Using native(wrapped) libbsd.so.0
Using emulated /home/bjoern/wine/bin/../lib/wine/i386-unix/ntdll.so
wine: could not exec wineserver
bjoern@6475f8b41325:~$

and for wineserver directly:

bjoern@6475f8b41325:~$ BOX86_LOG=1 box86 ./wine/bin/wineserver -d -f -p
Debug level is 1
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA AES PMULL PageSize:4096 Running on Cortex-A53 Cortex-A73 with 6 Cores
Params database has 32 entries
Box86 with Dynarec v0.3.7 c993aacd built on Oct 30 2024 06:36:16
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/
Using default BOX86_PATH: ./:bin/
Counted 10 Env var
Looking for ./wine/bin/wineserver
argv[1]="-d"
argv[2]="-f"
argv[3]="-p"
Rename process to "wineserver"
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using native(wrapped) libm.so.6
Using native(wrapped) libbsd.so.0
sock_init: shutdown() causes EOF
wineserver: starting (pid=934)
0934|SIGSEGV @0xf7682db0 (???(0xf7682db0)) (x86pc=0x30027914/"/home/bjoern/wine/bin/wineserver + 0x27914", esp=0xf6fc0630, stack=0xf67c1000:0xf6fc1000 own=(nil) fp=0x63b15bf8), for accessing (nil) (code=1/prot=0), db=0xf749a858(0xf7682d8c:0xf7682f48/0x30027900:0x3002793d//home/bjoern/wine/bin/wineserver + 0x27900:clean, hash:f5f1e8ac/f5f1e8ac)
EAX:0x00000000 ECX:0x300a8ff4 EDX:0x00000000 EBX:0x300a8ff4
ESP:0xf6fc0630 EBP:0x63b15bf8 ESI:0x00000000 EDI:0x63b15b68
ESP-0x10:0x300a8ff4 ESP-0x0c:0x63b15ad8 ESP-0x08:0x63b15b68 ESP-0x04:0x30014d54
ESP+0x00:0x63b15bf8 ESP+0x04:0x300a8ff4 ESP+0x08:0x63b15ad8 ESP+0x0c:0x30014d5d
0934|Double SIGSEGV (code=1, pc=0xf7682db0, addr=(nil))!

Both of the above are run via docker exec, but the vnc is running on display 1 and i have a virtual adapter dummy in the hdmi port of the odroid.

@ptitSeb
Copy link
Owner

ptitSeb commented Nov 3, 2024

Oh, there is a segault running wineserver?!

Well, this message "sock_init: shutdown() causes EOF" should not be here. I don't know were it comes from but I'm guessing it's part of the issue.

@wiegell
Copy link
Author

wiegell commented Nov 3, 2024

Hmm... i looked a little bit on the source of wine regarding sock_init: shutdown() causes EOF. I think it has something to do with IPC between wine and wineserver. Might IPC be hindered by running it all inside docker? And does box86 play a role in the IPC?

@wiegell
Copy link
Author

wiegell commented Nov 5, 2024

So it seems to be a compatibility issue with the newer versions of wine. The errors above were from wine 9.0.0.0.
On 8.0.2 i get:

myuser@cb03f9b8bb5c:~$ wine ./data/h3.exe
Box86 with Dynarec v0.3.7 c993aacd built on Oct 30 2024 06:36:16
Box86 with Dynarec v0.3.7 c993aacd built on Oct 30 2024 06:36:16
Box86 with Dynarec v0.3.7 c993aacd built on Oct 30 2024 06:36:16
wine client error:0: recvmsg: Connection reset by peer

While 7.0.2 seems to be working:
Pasted Graphic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants