[Bug 45083] 64-bit MetaTrader 5 hangs on exit

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Apr 29 07:15:43 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=45083

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEEDINFO
            Summary|MetaTrader 5 hangs on exit  |64-bit MetaTrader 5 hangs
                   |                            |on exit
                URL|                            |https://download.mql5.com/c
                   |                            |dn/web/metaquotes.software.
                   |                            |corp/mt5/mt5setup.exe
           Keywords|                            |download, win64
                 CC|                            |focht at gmx.net
     Ever confirmed|0                           |1

--- Comment #2 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

I can't produce this, works fine here.

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/MetaTrader 5

$ file *.exe
metaeditor64.exe: PE32+ executable (GUI) x86-64, for MS Windows
metatester64.exe: PE32+ executable (GUI) x86-64, for MS Windows
terminal64.exe:   PE32+ executable (GUI) x86-64, for MS Windows
uninstall.exe:    PE32 executable (GUI) Intel 80386, for MS Windows, UPX
compressed

$ WINEDEBUG=+seh,+loaddll,+process wine ./terminal64.exe
...
002e:trace:loaddll:free_modref Unloaded module
L"C:\\windows\\system32\\d3d9.dll" : builtin
002e:trace:loaddll:free_modref Unloaded module
L"C:\\windows\\system32\\wined3d.dll" : builtin
002e:trace:loaddll:free_modref Unloaded module
L"C:\\windows\\system32\\opengl32.dll" : builtin
 ioctl 2d1400 (device=2d access=0 func=500 method=0)
...
002e:trace:loaddll:free_modref Unloaded module
L"C:\\windows\\system32\\ieframe.dll" : builtin
002e:fixme:kernelbase:AppPolicyGetProcessTerminationMethod 0xfffffffffffffffa,
0x22fcc0
--- snip ---

I've logged in using test account and watched some marketplace updates.
Then exited the app through main menu.

You log shows an app thread dying unexpectedly which could likely be the
culprit here:

--- snip ---
...
003a:err:seh:setup_exception stack overflow 2336 bytes in thread 003a eip
000000007bc75aa1 esp 0000000000610cf0 stack 0x610000-0x611000-0x710000
...
003b:err:ntdll:RtlpWaitForCriticalSection section 0x140d7ad40 "?" wait timed
out in thread 003b, blocked by 003a, retrying (60 sec)
003d:err:ntdll:RtlpWaitForCriticalSection section 0x140d7ad40 "?" wait timed
out in thread 003d, blocked by 003a, retrying (60 sec)
003f:err:ntdll:RtlpWaitForCriticalSection section 0x140d7ad40 "?" wait timed
out in thread 003f, blocked by 003a, retrying (60 sec)
...
--- snip ---

You could attach a full relay log (compressed) from start to hang of app o exit
(CTRL+C or 'wineserver -k' from other terminal).

--- snip ---
$ WINEDEBUG=+seh,+relay wine ./terminal64.exe >>log.txt 2>&1
--- snip ---

ProtectionID scan (for my own documentation):

--- snip ---
-=[ ProtectionID v0.6.9.0 DECEMBER]=-
(c) 2003-2017 CDKiLLER & TippeX
Build 24/12/17-21:05:42
Ready...
Scanning -> C:\Program Files\MetaTrader 5\terminal64.exe
File Type : 64-Bit Exe (Subsystem : Win GUI / 2), Size : 45852872 (02BBA8C8h)
Byte(s) | Machine: 0x8664 (AMD64)
Compilation TimeStamp : 0x02B46800 -> Thu 10th Jun 1971 04:52:16 (GMT)
[TimeStamp] 0x02B46800 -> Thu 10th Jun 1971 04:52:16 (GMT) | PE Header | - |
Offset: 0x00000000:00000140 | VA: 0x00000001:40000140 | -
[TimeStamp] 0x5A6F7A54 -> Mon 29th Jan 2018 19:47:32 (GMT) | DebugDirectory | -
| Offset: 0x00000000:00BA4724 | VA: 0x00000001:40BA5524 | -
[TimeStamp] 0x5A6F7A54 -> Mon 29th Jan 2018 19:47:32 (GMT) | DebugDirectory | -
| Offset: 0x00000000:00BA4740 | VA: 0x00000001:40BA5540 | -
[TimeStamp] 0x5A6F7A54 -> Mon 29th Jan 2018 19:47:32 (GMT) | DebugDirectory | -
| Offset: 0x00000000:00BA475C | VA: 0x00000001:40BA555C | -
-> File Appears to be Digitally Signed @ Offset 02BB8EB0h, size : 01A18h /
06680 byte(s)
-> File has 468656 (0726B0h) bytes of appended data starting at offset
02B46800h
[!] Executable uses TLS callbacks (3 total... 0 invalid addresses)
[LoadConfig] Struct determined as v8 (Expected size 232 | Actual size 256)
[LoadConfig] CFG (/Guard) - Handler @ 0x1:40A12FF0
[LoadConfig] CFG Table @ 0x0:00000000 | 0x00 (00) entries
[LoadConfig] CFG Flags : 0x100
[LoadConfig] CodeIntegrity -> Flags 0x0 | Catalog 0x0 (0) | Catalog Offset 0x0
| Reserved 0x0
[LoadConfig] GuardAddressTakenIatEntryTable 0x0:00000000 | Count 0x000000000
(00)
[LoadConfig] GuardLongJumpTargetTable 0x0:00000000 | Count 0x000000000 (00)
[LoadConfig] HybridMetadataPointer 0x1:00000000 | DynamicValueRelocTable
0x0:00000000
[LoadConfig] FailFastIndirectProc 0x0:00000000 | FailFastPointer 0x0:00000000
[LoadConfig] UnknownZero1 0x0       0
[LoadConfig] CFG Data Present, yet setting is not present in the
DllCharacteristics.. patched out?
[File Heuristics] -> Flag #1 : 00000100000001001101000000000101 (0x0404D005)
[Entrypoint Section Entropy] : 7.57 (section #5) ".cod1   " | Size : 0x389568
(3708264) byte(s)
[DllCharacteristics] -> Flag : (0x8160) -> HEVA | ASLR | DEP | TSA
[SectionCount] 8 (0x8) | ImageSize 0x2BCC000 (45924352) byte(s)
[VersionInfo] Company Name : MetaQuotes Software Corp.
[VersionInfo] Product Name : MetaTrader 5 Client Terminal
[VersionInfo] Product Version : 5.0.0.1755
[VersionInfo] File Description : MetaTrader 5 Client Terminal
[VersionInfo] File Version : 5.0.0.1755
[VersionInfo] Original FileName : terminal.exe
[VersionInfo] Internal Name : terminal.exe
[VersionInfo] Version Comments : https://www.metaquotes.net
[VersionInfo] Legal Trademarks : MetaTrader
[VersionInfo] Legal Copyrights : © 2001-2018. MetaQuotes Software Corp.
[ModuleReport] [IAT] Modules -> CRYPT32.dll | WINMM.dll | VERSION.dll |
NETAPI32.dll | WINHTTP.dll | gdiplus.dll | UxTheme.dll | KERNEL32.dll |
USER32.dll | GDI32.dll | MSIMG32.dll | WINSPOOL.DRV | ADVAPI32.dll |
SHELL32.dll | COMCTL32.dll | SHLWAPI.dll | ole32.dll | OLEAUT32.dll |
oledlg.dll | urlmon.dll | IPHLPAPI.DLL | dbghelp.dll | WS2_32.dll | Secur32.dll
| OLEACC.dll | IMM32.dll | WTSAPI32.dll | KERNEL32.dll | USER32.dll |
KERNEL32.dll | USER32.dll
[Debug Info] (record 1 of 3) (file offset 0xBA4720)
Characteristics : 0x0 | TimeDateStamp : 0x5A6F7A54 (Mon 29th Jan 2018 19:47:32
(GMT)) | MajorVer : 0 / MinorVer : 0 -> (0.0)
Type : 2 (0x2) -> CodeView | Size : 0x5B (91) 
AddressOfRawData : 0xBB5CFC | PointerToRawData : 0xBB4EFC
CvSig : 0x53445352 | SigGuid 3FFB8A37-51F2-4DBD-A6FF31E4B624C76E
Age : 0x1 (1) | Pdb :
E:\MetaTrader5\Client\MetaTrader5Terminal\Release64\terminal64.pdb
[Debug Info] (record 2 of 3) (file offset 0xBA473C)
Characteristics : 0x0 | TimeDateStamp : 0x5A6F7A54 (Mon 29th Jan 2018 19:47:32
(GMT)) | MajorVer : 0 / MinorVer : 0 -> (0.0)
Type : 12 (0xC) -> Undocumented | Size : 0x14 (20) 
AddressOfRawData : 0xBB5D58 | PointerToRawData : 0xBB4F58
[Debug Info] (record 3 of 3) (file offset 0xBA4758)
Characteristics : 0x0 | TimeDateStamp : 0x5A6F7A54 (Mon 29th Jan 2018 19:47:32
(GMT)) | MajorVer : 0 / MinorVer : 0 -> (0.0)
Type : 13 (0xD) -> Undocumented | Size : 0x3EC (1004) 
AddressOfRawData : 0xBB5D6C | PointerToRawData : 0xBB4F6C
[CompilerDetect] -> Borland Delphi (unknown version) - 20% probability
[CompilerDetect] -> Visual C/C++
[!] File appears to have no protection or is using an unknown protection
- Scan Took : 6.158 Second(s) [000001ABAh (6842) tick(s)] [234 of 580 scan(s)
done]
--- snip ---

$ sha1sum mt5setup.exe 
bcb518ce2df731ef0a9bcb808ac3829e41a90f99  mt5setup.exe

$ du -sh mt5setup.exe 
1.3M    mt5setup.exe

$ wine --version
wine-3.7

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list