https://bugs.winehq.org/show_bug.cgi?id=46271
Bug ID: 46271 Summary: Metatrader 5 Log Filearen't flushed, kill <pid> lose all log data Product: Wine Version: 3.0.3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: wineserver Assignee: wine-bugs@winehq.org Reporter: roberto@spadim.com.br Distribution: ---
this bug is a second problem found in 46269, the original bug was just to FileFlush MQL5 function, but it works, the problem now is the logs/<date>.log files saved by terminal64.exe when killing terminal64.exe the logs are lost, that's a critical bug since brokers need logs to help clients solving problem with trading strategies and sometimes paying the money losed in a broker side problem
--- grep output of: #"strace wine terminal64.exe /portable &> wine.strace.txt"
root@rspadim-Latitude-E5450:/home/rspadim/.wine/drive_c/mt5/1# grep "logs/" wine.strace.txt stat("/root/.wine/dosdevices/z:/home/rspadim/.wine/drive_c/mt5/1/MQL5/logs/", 0x22c0a0) = -1 ENOENT (No such file or directory) stat("/root/.wine/dosdevices/z:/home/rspadim/.wine/drive_c/mt5/1/tester/logs/", 0x22be30) = -1 ENOENT (No such file or directory) stat("/root/.wine/dosdevices/z:/home/rspadim/.wine/drive_c/mt5/1/logs/20181210.log", {st_mode=S_IFREG|0664, st_size=18784, ...}) = 0 stat("/root/.wine/dosdevices/z:/home/rspadim/.wine/drive_c/mt5/1/tester/logs/20181210.log", 0x2270c0) = -1 ENOENT (No such file or directory) stat("/root/.wine/dosdevices/z:/home/rspadim/.wine/drive_c/mt5/1/Tester/logs/20181210.log", 0x227150) = -1 ENOENT (No such file or directory) stat("/root/.wine/dosdevices/z:/home/rspadim/.wine/drive_c/mt5/1/tester/logs/20181210.log", 0x2270c0) = -1 ENOENT (No such file or directory) stat("/root/.wine/dosdevices/z:/home/rspadim/.wine/drive_c/mt5/1/Tester/logs/20181210.log", 0x227150) = -1 ENOENT (No such file or directory)
i will start strace of wineserver
https://bugs.winehq.org/show_bug.cgi?id=46271
roberto@spadim.com.br changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
--- Comment #1 from roberto@spadim.com.br --- closing this bug report
the solution is taskkill instead of linux kill
the problem is: we don't have a linux pid<->windows pid tool tasklist should do the job? but it don't even exists
talking with ken at IRC i will open a feature request
https://bugs.winehq.org/show_bug.cgi?id=46271
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Gijs Vermeulen gijsvrm@gmail.com --- Closing.