Wine on raspberry pi Unhandled illegal instruction

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Alastair0100
Newbie
Newbie
Posts: 4
Joined: Thu Apr 01, 2021 7:43 pm

Wine on raspberry pi Unhandled illegal instruction

Post by Alastair0100 »

Hello,

Im using a raspberry pi 1 b+ installing wine through Pi-apps with a 3g split thing kernal, box86 is also installed.
I am using debian 10 based pi operating system.

I keep gettting this error, winecfg launches but with many errors and when i try launch an exe it does not launch. ive tried unsintalled wine and box86 and resintalling both and tried looking online for people with same problem but noone.
I have no idea whats causing it to crash.

can anyone help me?
thanks

terminal window:
pi@raspberrypi:~ $ winecfg
Box86 with Dynarec v0.2.1 3da4e03d built on Mar 30 2021 23:16:31
Box86 with Dynarec v0.2.1 3da4e03d built on Mar 30 2021 23:16:31
Box86 with Dynarec v0.2.1 3da4e03d built on Mar 30 2021 23:16:31
wine: Unhandled illegal instruction at address 7BC7C69A (thread 004c), starting debugger...
004c:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 60 148" (1359)
Read the Wine Developers Guide on how to set up winedbg or another debugger
004c:err:seh:NtRaiseException Unhandled exception code c000001d flags 0 addr 0x7bc7c679
0034:err:service:process_send_command service protocol error - failed to read pipe r = 0 count = 0!
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1053
0024:err:winecfg:open_mountmgr failed to open mount manager err 2
pi@raspberrypi:~ $ wine /home/pi/Downloads/setup.exe
Box86 with Dynarec v0.2.1 3da4e03d built on Mar 30 2021 23:16:31
Box86 with Dynarec v0.2.1 3da4e03d built on Mar 30 2021 23:16:31
Box86 with Dynarec v0.2.1 3da4e03d built on Mar 30 2021 23:16:31
wine: Unhandled illegal instruction at address 7BC7C69A (thread 004c), starting debugger...
004c:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 60 148" (1359)
Read the Wine Developers Guide on how to set up winedbg or another debugger
004c:err:seh:NtRaiseException Unhandled exception code c000001d flags 0 addr 0x7bc7c679
0034:err:service:process_send_command service protocol error - failed to read pipe r = 0 count = 0!
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1053
17766|SIGILL @0x48f0da24 (???(0x48f0da24)) (x86pc=0x7297c2/???:"???", esp=0x31feb0, stack=0x40bde000:0x413de000 own=(nil)), for accessing 0x48f0da24 (code=1/prot=7), db=0x653d5fd0(0x48f0d93c:0x48f0da68/0x72977f:0x7297ca/???:clean, hash:55e1346c/55e1346c) opcode=04 80 28 E5 04 30 00 E3
wine: Unhandled illegal instruction at address 007297C2 (thread 0024), starting debugger...
Box86 with Dynarec v0.2.1 3da4e03d built on Mar 30 2021 23:16:31
winedbg detected, not launching it!
0024:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 32 116" (1359)
Read the Wine Developers Guide on how to set up winedbg or another debugger
17766|SIGILL @0x48f15940 (???(0x48f15940)) (x86pc=0x7bc7c679//home/pi/wine/lib/wine/ntdll.dll.so:"/home/pi/wine/lib/wine/ntdll.dll.so/RtlUnwind + 23", esp=0x31f764, stack=0x40bde000:0x413de000 own=(nil)), for accessing 0x48f15940 (code=1/prot=7), db=0x653e1300(0x48f15938:0x48f1598c/0x7bc7c66f:0x7bc7c68c//home/pi/wine/lib/wine/ntdll.dll.so/RtlUnwind + 23:clean, hash:62988fa7/62988fa7) opcode=04 80 28 E5 14 10 99 E5
0024:err:seh:NtRaiseException Unhandled exception code c000001d flags 0 addr 0x7bc7c679
nru1979
Level 2
Level 2
Posts: 16
Joined: Thu Nov 05, 2020 3:23 am

Re: Wine on raspberry pi Unhandled illegal instruction

Post by nru1979 »

Wild guess: try from a pristine wineprefix? (as in WINEPREFIX=/home/pi/mywineprefix /home/pi/wine/bin/wine winecfg)

If you still have that exception might be an idea to ask ptitSeb.

Other track: what is your Setup.exe?
I know for sure that box86 doesn't handle 16 bits neither 64 bits apps (example of 16 bit app: Red alert windows 95)
Alastair0100
Newbie
Newbie
Posts: 4
Joined: Thu Apr 01, 2021 7:43 pm

Re: Wine on raspberry pi Unhandled illegal instruction

Post by Alastair0100 »

nru1979 wrote: Sun Apr 04, 2021 7:55 am Wild guess: try from a pristine wineprefix? (as in WINEPREFIX=/home/pi/mywineprefix /home/pi/wine/bin/wine winecfg)

If you still have that exception might be an idea to ask ptitSeb.

Other track: what is your Setup.exe?
I know for sure that box86 doesn't handle 16 bits neither 64 bits apps (example of 16 bit app: Red alert windows 95)
thanks for the help, the setup.exe is setup for mt5 trader, i checked the details and its 64bit. so i tried a debian x86 chroot system on the pi instead of box86 but i still get the illegal instruction error. i will look into this pristine wineprefix in the meantime.
thanks
nru1979
Level 2
Level 2
Posts: 16
Joined: Thu Nov 05, 2020 3:23 am

Re: Wine on raspberry pi Unhandled illegal instruction

Post by nru1979 »

Don't use a x86 chroot.
You should try an amd64 chroot, as the one made with:
sudo debootstrap --foreign --arch amd64 stretch ./chroot-stretch-amd64 http://ftp.us.debian.org/debian
Alastair0100
Newbie
Newbie
Posts: 4
Joined: Thu Apr 01, 2021 7:43 pm

Re: Wine on raspberry pi Unhandled illegal instruction

Post by Alastair0100 »

nru1979 wrote: Mon Apr 05, 2021 7:39 am Don't use a x86 chroot.
You should try an amd64 chroot, as the one made with:
sudo debootstrap --foreign --arch amd64 stretch ./chroot-stretch-amd64 http://ftp.us.debian.org/debian
thanks for the help,
i tried using the amd64 chroot system (qemu-aarch64-static) with wine64 installed on it but it gave me exe format error so i installed wine32 and added 32bit architecutre however it gives me colnitalizesecurity errors and Segmentation fault when running wine64 and when i try running the wine32 version it still gives me illegal instruction. i looked over some details and the pi turns out to be a pi 2 b not a pi 1 b+ sorry.
any ideas on whats going on?
thanks

pi@raspberrypi:~ $ sudo chroot /home/pi/chroot-stretch-amd64/ /bin/su -l pi
pi@raspberrypi:~$ wine64 setup.exe
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),0,3,(nil),0,(nil)) - stub!
err:ole:CoGetClassObject class {4590f811-1d3a-11d0-891f-00aa004b2e24} not registered
err:ole:CoGetClassObject no class object {4590f811-1d3a-11d0-891f-00aa004b2e24} could be created for context 0x1
fixme:thread:SetThreadStackGuarantee (0x33f6e4): stub
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
Segmentation fault
pi@raspberrypi:~$ winecfg
Illegal instruction
pi@raspberrypi:~$ wine setup.exe
Illegal instruction
Locked