box86 icon indicating copy to clipboard operation
box86 copied to clipboard

A debugger has been found running in your system. Please unload it from memory and restart your program

Open dmedhora opened this issue 3 years ago • 22 comments

Hi, I'm trying to run mt4setup.exe ( the setup executable for the Metatrader 4 software ) via wine inside box86 inside a debian proot inside termux inside my android 9 phone.

After a while of going through the installation a popup window titled mt4setup.exe with the message "a debugger has been found running in your system. Please unload it from memory and restart your program" pops up asking to press "ok".

I am unable to run the resulting executable (terminal.exe) extracted after the setup process is over as I get the exact same message above.

I would like to ask if box86 is causing this by having some kind of debugger lurking in memory which is being detected by wine and the terminal.exe program.

Would not passing -DCMAKE_BUILD_TYPE=RelWithDebInfo help me with this by not having any debugger/debugging symbols around so that wine will run the program fully properly inside of box86 ? Note this message does not arise if I don't use box86 and run wine on my linux pc.

Any help would be very greatly appreciated. Thanks so much!

dmedhora avatar Sep 12 '22 14:09 dmedhora

Yes, I am aware of this message for this particular program, and unfortunatly I have no idea how to fix for now. I don't know what triggers this protection.

ptitSeb avatar Sep 12 '22 14:09 ptitSeb

What about if I don't make box86 with the mentioned build type ? :)

dmedhora avatar Sep 12 '22 14:09 dmedhora

I will try it out in a few hours and update here if that was ok.

dmedhora avatar Sep 12 '22 14:09 dmedhora

That wont change the result. it's not the same "debug". The compilation option is just to have debug symbol in box86.

ptitSeb avatar Sep 12 '22 14:09 ptitSeb

ok, well thanks ptitSeb. I appreciate your super quick reply. Please, if you can think of / have any idea how I might be able to get this to work, do let me know. I've tried many tricks but can't seem to succeed. Cheers!

dmedhora avatar Sep 12 '22 14:09 dmedhora

Hi. I've tried this as well and never been able to get it to work either. I tried recompiling Box86 as described and also different versions of Wine with no success. As you say it works on a Linux PC setup which is how I run it currently. MT4 is odd in how it loads into memory as the terminal.exe seems to be an image which is extracted into memory, presumably to stop people trying to hack into it. If you run MT4 on a Windows PC and have some sort of debugger running on the system you see the same issue. I've tried multiple things to "hide" the debugger but it always detects it and doesn't run. So I think without knowing how it's detecting the debugger it's hard to know how to get it to run.

AxlPr avatar Nov 24 '22 13:11 AxlPr

Hello mate, did you find any way to make MT4 run?

welisonmiranda avatar May 13 '23 16:05 welisonmiranda

Ok, I have found a workaround. Update to the latest box86 and MT4 should works fine.

ptitSeb avatar May 24 '23 17:05 ptitSeb

I still cant open, i`m getting this

Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 002c:fixme:winediag:LdrInitializeThunk wine-staging 8.7 is a testing version containing experimental patches. 002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org. wine: failed to open L"C:\windows\system32\winemenubuilder.exe": c0000135 002c:err:wineboot:process_run_key Error running cmd L"C:\windows\system32\winemenubuilder.exe -a -r" (126). 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 007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 wine: Unhandled page fault on write access to 042A5F8D at address 0116B0CF (thread 010c), starting debugger... Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 winedbg detected, not launching it! 010c:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 264 192" (1359) Read the Wine Developers Guide on how to set up winedbg or another debugger

welisonmiranda avatar May 25 '23 09:05 welisonmiranda

I could launch it on my side. Please re-install it. Are you using a 64bits or 32bits version of wine?

ptitSeb avatar May 25 '23 09:05 ptitSeb

I`m using 32bits, I will re-install and try again

welisonmiranda avatar May 25 '23 11:05 welisonmiranda

still no working for me, which version of wine are you using?

welisonmiranda avatar May 25 '23 14:05 welisonmiranda

I tried on 5.3 32bits and 8.7 64bits. I noticed that DXVK trigger on my side, so it might be a graphic driver issue. You can try with software rendering, to see if it goes further.

ptitSeb avatar May 25 '23 14:05 ptitSeb

I tried in those ones as well, but didn't work. I'm using a VPS, so I only have software rendering, I was able to run with exagear

welisonmiranda avatar May 25 '23 17:05 welisonmiranda

Well, I don't reproduce on my side, so that will be more tricky to debug. Try to launch with BOX86_LOG=1 BOX86_SHOWSEGV=1 BOX86_SHOWBT=1 to have more logs

ptitSeb avatar May 25 '23 17:05 ptitSeb

I got this in the logs

Debug level is 1 Show Segfault signal even if a signal handler is present Show Backtrace for signals Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores Params database has 22 entries Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 BOX86: Wine detected, WINEPRELOADRESERVE="" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/ Using default BOX86_PATH: ./:bin/ Counted 65 Env var Looking for /home/welisonm/wine/bin/wine argv[1]="/home/welisonm/Desktop/MT4 - 1/terminal.exe" Rename process to "wine" Using native(wrapped) libdl.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/welisonm/wine/bin/../lib/wine/i386-unix/ntdll.so Using native(wrapped) libm.so.6 Debug level is 1 Show Segfault signal even if a signal handler is present Show Backtrace for signals Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores Params database has 22 entries Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 BOX86: Wine detected, WINEPRELOADRESERVE="" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/ Using default BOX86_PATH: ./:bin/ Counted 67 Env var Looking for /home/welisonm/wine/bin/wine argv[1]="/home/welisonm/Desktop/MT4 - 1/terminal.exe" Rename process to "wine" Using native(wrapped) libdl.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/welisonm/wine/bin/../lib/wine/i386-unix/ntdll.so Using native(wrapped) libm.so.6 Debug level is 1 Show Segfault signal even if a signal handler is present Show Backtrace for signals Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores Params database has 22 entries Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/ Using default BOX86_PATH: ./:bin/ Counted 67 Env var Looking for /home/welisonm/wine/bin/wineserver Rename process to "wineserver" Using native(wrapped) libdl.so.2 Using native(wrapped) librt.so.1 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) libpthread.so.0 002c:fixme:winediag:LdrInitializeThunk wine-staging 8.7 is a testing version containing experimental patches. 002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org. 0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0044:fixme:imm:ImeSetActiveContext himc 00010026, flag 0 stub! 002c:fixme:imm:ImeSetActiveContext himc 0001005E, flag 0x1 stub! wine: configuration in L"/home/welisonm/.wine" has been updated. Debug level is 1 Show Segfault signal even if a signal handler is present Show Backtrace for signals Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores Params database has 22 entries Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 BOX86: Wine detected, WINEPRELOADRESERVE="000400000-000438000" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/ Using default BOX86_PATH: ./:bin/ Counted 69 Env var Looking for /home/welisonm/wine/bin/wine argv[1]="C:\windows\system32\conhost.exe" argv[2]="--unix" argv[3]="--width" argv[4]="165" argv[5]="--height" argv[6]="18" argv[7]="--server" argv[8]="0xc" Rename process to "wine" Using native(wrapped) libdl.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/welisonm/wine/bin/../lib/wine/i386-unix/ntdll.so Using native(wrapped) libm.so.6 Using emulated /home/welisonm/wine/lib/wine/i386-unix/win32u.so Using native(wrapped) libfreetype.so.6 Using native(wrapped) libfontconfig.so.1 Using emulated /home/welisonm/wine/lib/wine/i386-unix/win32u.so Using native(wrapped) libfreetype.so.6 Using native(wrapped) libfontconfig.so.1 Using emulated /home/welisonm/wine/lib/wine/i386-unix/winex11.so Using native(wrapped) libXext.so.6 Using native(wrapped) libX11.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libXau.so.6 Using native(wrapped) libXdmcp.so.6 Using native(wrapped) libXinerama.so.1 Using native(wrapped) libXxf86vm.so.1 Using native(wrapped) libXrender.so.1 Using native(wrapped) libXrandr.so.2 Using native(wrapped) libXcomposite.so.1 Using native(wrapped) libXi.so.6 Using native(wrapped) libXcursor.so.1 Debug level is 1 Show Segfault signal even if a signal handler is present Show Backtrace for signals Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores Params database has 22 entries Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 BOX86: Wine detected, WINEPRELOADRESERVE="000400000-001dc4000" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/ Using default BOX86_PATH: ./:bin/ Counted 69 Env var Looking for /home/welisonm/wine/bin/wine argv[1]="Z:\home\welisonm\Desktop\MT4 - 1\terminal.exe" Rename process to "wine" Using native(wrapped) libdl.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/welisonm/wine/bin/../lib/wine/i386-unix/ntdll.so Using native(wrapped) libm.so.6 Using emulated /home/welisonm/wine/lib/wine/i386-unix/ws2_32.so Using emulated /home/welisonm/wine/lib/wine/i386-unix/win32u.so Using native(wrapped) libfreetype.so.6 Using native(wrapped) libfontconfig.so.1 Using emulated /home/welisonm/wine/lib/wine/i386-unix/bcrypt.so Using native(wrapped) libgnutls.so.30 Using emulated /home/welisonm/wine/lib/wine/i386-unix/crypt32.so Using emulated /home/welisonm/wine/lib/wine/i386-unix/winex11.so Using native(wrapped) libXext.so.6 Using native(wrapped) libX11.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libXau.so.6 Using native(wrapped) libXdmcp.so.6 Using native(wrapped) libXinerama.so.1 Using native(wrapped) libXxf86vm.so.1 Using native(wrapped) libXrender.so.1 Using native(wrapped) libXrandr.so.2 Using native(wrapped) libXcomposite.so.1 Using native(wrapped) libXi.so.6 Using native(wrapped) libXcursor.so.1 Using emulated /home/welisonm/wine/lib/wine/i386-unix/winspool.so Using emulated /home/welisonm/wine/lib/wine/i386-unix/dnsapi.so Using native(wrapped) libresolv.so.2 Look for __res_query in loaded elfs Found symbol with version GLIBC_2.4, value = 0x4062cead Using emulated /home/welisonm/wine/lib/wine/i386-unix/secur32.so Using emulated /home/welisonm/wine/lib/wine/i386-unix/kerberos.so Using native(wrapped) libkrb5.so.3 Using native(wrapped) libgssapi_krb5.so.2 Using emulated /home/welisonm/wine/lib/wine/i386-unix/netapi32.so Using emulated /home/welisonm/wine/lib/wine/i386-unix/msv1_0.so 15110|SIGSEGV @0x44a3d800 (???(0x44a3d800)) (x86pc=0x116b0cf/???:"???", esp=0x1fcfe05, stack=0x40f78000:0x41778000 own=(nil) fp=(nil)), for accessing 0x42a5f8d (code=2/prot=0), db=0x44956018(0x44a3d7d4:0x44a3d860/0x116b0c4:0x116b0d5/???:clean, hash:e0411b17/e0411b17) EAX:0xdd01186c ECX:0x0116b0c4 EDX:0xdfa50000 EBX:0xfefab18b ESP:0x01fcfe05 EBP:0x0313afec ESI:0x01175254 EDI:0x0119189d ESP-0x10:0x00000000 ESP-0x0c:0x25000000 ESP-0x08:0xa0012cc0 ESP-0x04:0xdd01186c ESP+0x00:0xb9011837 ESP+0x04:0x8e0113ba ESP+0x08:0x48011719 ESP+0x0c:0x0001fcff Native bactrace: /home/welisonm/wine/bin/wine() [0x6296389c] /lib/arm-linux-gnueabihf/libc.so.6(+0x2d6f0) [0x4058d6f0] wine: Unhandled page fault on write access to 042A5F8D at address 0116B0CF (thread 012c), starting debugger... Debug level is 1 Show Segfault signal even if a signal handler is present Show Backtrace for signals Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores Params database has 22 entries Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 BOX86: Wine detected, WINEPRELOADRESERVE="000400000-0004d0000" winedbg detected, not launching it! 012c:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 296 192" (1359) Read the Wine Developers Guide on how to set up winedbg or another debugger

welisonmiranda avatar May 26 '23 07:05 welisonmiranda

Strange. can you add BOX86_ROLLING_LOG=1 and run again, to have even more logs

ptitSeb avatar May 26 '23 08:05 ptitSeb

BOX86_LOG=1 BOX86_SHOWSEGV=1 BOX86_SHOWBT=1 BOX86_ROLLING_LOG=1 wine '/home/welisonm/Desktop/MT4 - 1/terminal.exe' Debug level is 1 Rolling log, showing last 16 function call on signals Show Segfault signal even if a signal handler is present Show Backtrace for signals Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores Params database has 22 entries Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 BOX86: Wine detected, WINEPRELOADRESERVE="" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/ Using default BOX86_PATH: ./:bin/ Counted 65 Env var Looking for /home/welisonm/wine/bin/wine argv[1]="/home/welisonm/Desktop/MT4 - 1/terminal.exe" Rename process to "wine" Using native(wrapped) libdl.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/welisonm/wine/bin/../lib/wine/i386-unix/ntdll.so Using native(wrapped) libm.so.6 Debug level is 1 Rolling log, showing last 16 function call on signals Show Segfault signal even if a signal handler is present Show Backtrace for signals Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores Params database has 22 entries Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 BOX86: Wine detected, WINEPRELOADRESERVE="" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/ Using default BOX86_PATH: ./:bin/ Counted 67 Env var Looking for /home/welisonm/wine/bin/wine argv[1]="/home/welisonm/Desktop/MT4 - 1/terminal.exe" Rename process to "wine" Using native(wrapped) libdl.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/welisonm/wine/bin/../lib/wine/i386-unix/ntdll.so Using native(wrapped) libm.so.6 Debug level is 1 Rolling log, showing last 16 function call on signals Show Segfault signal even if a signal handler is present Show Backtrace for signals Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores Params database has 22 entries Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/ Using default BOX86_PATH: ./:bin/ Counted 67 Env var Looking for /home/welisonm/wine/bin/wineserver Rename process to "wineserver" Using native(wrapped) libdl.so.2 Using native(wrapped) librt.so.1 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) libpthread.so.0 002c:fixme:winediag:LdrInitializeThunk wine-staging 8.7 is a testing version containing experimental patches. 002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org. 0094:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0094:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0094:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0094:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0050:err:ole:start_rpcss Failed to start RpcSs service Debug level is 1 Rolling log, showing last 16 function call on signals Show Segfault signal even if a signal handler is present Show Backtrace for signals Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores Params database has 22 entries Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 BOX86: Wine detected, WINEPRELOADRESERVE="000400000-000438000" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/ Using default BOX86_PATH: ./:bin/ Counted 69 Env var Looking for /home/welisonm/wine/bin/wine argv[1]="C:\windows\system32\conhost.exe" argv[2]="--unix" argv[3]="--width" argv[4]="188" argv[5]="--height" argv[6]="40" argv[7]="--server" argv[8]="0xc" Rename process to "wine" Using native(wrapped) libdl.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/welisonm/wine/bin/../lib/wine/i386-unix/ntdll.so Using native(wrapped) libm.so.6 Using emulated /home/welisonm/wine/lib/wine/i386-unix/win32u.so Using native(wrapped) libfreetype.so.6 Using native(wrapped) libfontconfig.so.1 Using emulated /home/welisonm/wine/lib/wine/i386-unix/win32u.so Using native(wrapped) libfreetype.so.6 Using native(wrapped) libfontconfig.so.1 Using emulated /home/welisonm/wine/lib/wine/i386-unix/winex11.so Using native(wrapped) libXext.so.6 Using native(wrapped) libX11.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libXau.so.6 Using native(wrapped) libXdmcp.so.6 Using native(wrapped) libXinerama.so.1 Using native(wrapped) libXxf86vm.so.1 Using native(wrapped) libXrender.so.1 Using native(wrapped) libXrandr.so.2 Using native(wrapped) libXcomposite.so.1 Using native(wrapped) libXi.so.6 Using native(wrapped) libXcursor.so.1 Debug level is 1 Rolling log, showing last 16 function call on signals Show Segfault signal even if a signal handler is present Show Backtrace for signals Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores Params database has 22 entries Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 BOX86: Wine detected, WINEPRELOADRESERVE="000400000-001dc4000" Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/ Using default BOX86_PATH: ./:bin/ Counted 69 Env var Looking for /home/welisonm/wine/bin/wine argv[1]="Z:\home\welisonm\Desktop\MT4 - 1\terminal.exe" Rename process to "wine" Using native(wrapped) libdl.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux.so.2 Using native(wrapped) librt.so.1 Using emulated /home/welisonm/wine/bin/../lib/wine/i386-unix/ntdll.so Using native(wrapped) libm.so.6 Using emulated /home/welisonm/wine/lib/wine/i386-unix/ws2_32.so Using emulated /home/welisonm/wine/lib/wine/i386-unix/win32u.so Using native(wrapped) libfreetype.so.6 Using native(wrapped) libfontconfig.so.1 Using emulated /home/welisonm/wine/lib/wine/i386-unix/bcrypt.so Using native(wrapped) libgnutls.so.30 Using emulated /home/welisonm/wine/lib/wine/i386-unix/crypt32.so Using emulated /home/welisonm/wine/lib/wine/i386-unix/winex11.so Using native(wrapped) libXext.so.6 Using native(wrapped) libX11.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libXau.so.6 Using native(wrapped) libXdmcp.so.6 Using native(wrapped) libXinerama.so.1 Using native(wrapped) libXxf86vm.so.1 Using native(wrapped) libXrender.so.1 Using native(wrapped) libXrandr.so.2 Using native(wrapped) libXcomposite.so.1 Using native(wrapped) libXi.so.6 Using native(wrapped) libXcursor.so.1 Using emulated /home/welisonm/wine/lib/wine/i386-unix/winspool.so Using emulated /home/welisonm/wine/lib/wine/i386-unix/dnsapi.so Using native(wrapped) libresolv.so.2 Look for __res_query in loaded elfs Found symbol with version GLIBC_2.4, value = 0x401ecead Using emulated /home/welisonm/wine/lib/wine/i386-unix/secur32.so Using emulated /home/welisonm/wine/lib/wine/i386-unix/kerberos.so Using native(wrapped) libkrb5.so.3 Using native(wrapped) libgssapi_krb5.so.2 Using emulated /home/welisonm/wine/lib/wine/i386-unix/netapi32.so Using emulated /home/welisonm/wine/lib/wine/i386-unix/msv1_0.so Last calls 20166|0x404f9823: Calling pthread_sigmask (/lib/arm-linux-gnueabihf/libc.so.6) (00000002, 01ECFBD0, 00000000...) => return 0x0 20166|0x404f971e: Calling pthread_sigmask (/lib/arm-linux-gnueabihf/libc.so.6) (00000000, 40575FC0, 01ECFA60...) => return 0x0 20166|0x4051b1d3: Calling pthread_getspecific (/lib/arm-linux-gnueabihf/libc.so.6) (00000004, 00000040, 6D4980CC...) => return 0x3E2000 20166|0x404f9650: Calling write (/lib/arm-linux-gnueabihf/libc.so.6) (00000006, 01ECFBC0, 00000040...) => return 0x40 20166|0x4051b1d3: Calling pthread_getspecific (/lib/arm-linux-gnueabihf/libc.so.6) (00000004, 00000022, 01ECFB14...) => return 0x3E2000 20166|0x404f8fe9: Calling my_read (/home/welisonm/wine/bin/wine) (00000007, 01ECFBC0, 00000040...) => return 0x40 20166|0x404f973e: Calling pthread_sigmask (/lib/arm-linux-gnueabihf/libc.so.6) (00000002, 01ECFA60, 00000000...) => return 0x0 20166|0x404fc000: Calling pthread_sigmask (/lib/arm-linux-gnueabihf/libc.so.6) (00000000, 40575FC0, 01ECFB70...) => return 0x0 20166|0x4051b1d3: Calling pthread_getspecific (/lib/arm-linux-gnueabihf/libc.so.6) (00000004, 01ECFBC0, 00000040...) => return 0x3E2000 20166|0x404f95f3: Calling writev (/lib/arm-linux-gnueabihf/libc.so.6) (00000006, 01ECFA00, 00000002...) => return 0x68 20166|0x4051b1d3: Calling pthread_getspecific (/lib/arm-linux-gnueabihf/libc.so.6) (00000004, 00000022, 01ECFB14...) => return 0x3E2000 20166|0x404f8fe9: Calling my_read (/home/welisonm/wine/bin/wine) (00000007, 01ECFB00, 00000040...) => return 0x40 20166|0x404fc1ce: Calling pthread_sigmask (/lib/arm-linux-gnueabihf/libc.so.6) (00000002, 01ECFB70, 00000000...) => return 0x0 20166|0x4051b1d3: Calling pthread_getspecific (/lib/arm-linux-gnueabihf/libc.so.6) (00000004, 00000000, 00000000...) => return 0x3E2000 20166|0x4051b1d3: Calling pthread_getspecific (/lib/arm-linux-gnueabihf/libc.so.6) (00000004, 00000000, 00000000...) => return 0x3E2000 20166|0x404f983c: Calling my_pthread_mutex_unlock (/home/welisonm/wine/bin/wine) (40575F30, 40575FC0, 01ECFBD0...) => return 0x0 20166|SIGSEGV @0x444e3608 (???(0x444e3608)) (x86pc=0x116b0cf/???:"???", esp=0x1fcfe05, stack=0x40b38000:0x41338000 own=(nil) fp=(nil)), for accessing 0x42a5f8d (code=2/prot=0), db=0x443fc2e8(0x444e35dc:0x444e3668/0x116b0c4:0x116b0d5/???:clean, hash:e0411b17/e0411b17) EAX:0xdd01186c ECX:0x0116b0c4 EDX:0xdfa50000 EBX:0xfefab18b ESP:0x01fcfe05 EBP:0x0313afec ESI:0x01175254 EDI:0x0119189d ESP-0x10:0x00000000 ESP-0x0c:0x25000000 ESP-0x08:0xa0012cc0 ESP-0x04:0xdd01186c ESP+0x00:0xb9011837 ESP+0x04:0x8e0113ba ESP+0x08:0x48011719 ESP+0x0c:0x0001fcff Native bactrace: /home/welisonm/wine/bin/wine() [0x6296389c] /lib/arm-linux-gnueabihf/libc.so.6(+0x2d6f0) [0x4014d6f0] wine: Unhandled page fault on write access to 042A5F8D at address 0116B0CF (thread 0148), starting debugger... Debug level is 1 Rolling log, showing last 16 function call on signals Show Segfault signal even if a signal handler is present Show Backtrace for signals Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Neoverse-N1 with 4 Cores Params database has 22 entries Box86 with Dynarec v0.3.1 54d5aaa1 built on May 24 2023 19:00:11 BOX86: Wine detected, WINEPRELOADRESERVE="000400000-0004d0000" winedbg detected, not launching it! 0148:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 324 192" (1359) Read the Wine Developers Guide on how to set up winedbg or another debugger

welisonmiranda avatar May 26 '23 09:05 welisonmiranda

Well, I see nothing wrong in this log... Except there is sudenly a segfault out of nowhere. Do you know if MT4 evolved lately or it is still the same installer / same exe as last year? Also, on what hardware / os are you running?

ptitSeb avatar May 26 '23 09:05 ptitSeb

I`m not sure if is the same, but I,m trying to run the one from my broker EightCap. The hardware is a VPS on Oracle CPU Ampere A1

welisonmiranda avatar May 26 '23 10:05 welisonmiranda

I tried again with proot in termux, and I`m having the same problem

welisonmiranda avatar May 28 '23 10:05 welisonmiranda

Hi. I've tried a build of MT4 (Build 1355) from March 2022 which works. But running the latest versions (Build 1360 onwards) from Sept 2022 doesn't. I'm getting same issue:

Box86 with Dynarec v0.3.1 5cdc1b9f built on Jun 15 2023 08:36:41 Box86 with Dynarec v0.3.1 5cdc1b9f built on Jun 15 2023 08:36:41 Box86 with Dynarec v0.3.1 5cdc1b9f built on Jun 15 2023 08:36:41 Box86 with Dynarec v0.3.1 5cdc1b9f built on Jun 15 2023 08:36:41 wine: Unhandled page fault on write access to 3F9CD000 at address 3F9CCFFF (thread 0024), starting debugger... Box86 with Dynarec v0.3.1 5cdc1b9f built on Jun 15 2023 08:36:41 winedbg detected, not launching it! 0024:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 32 176" (1359)

Appears something has changed in latest version in MT4.

Although Build 1355 works you can't connect to the broker as it's an old version.

There is an archive of versions here: http://www.rosasurfer.com/.mt4/

Many Thanks

AxlPr avatar Jun 15 '23 09:06 AxlPr