https://bugs.winehq.org/show_bug.cgi?id=41138
Bug ID: 41138 Summary: `apitrace wine` can't save traces Product: Wine Version: 1.9.16 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: b7.10110111@gmail.com Distribution: ---
Due to NtTerminateProcess() now calling _exit() instead of exit(), apitrace has no opportunity to save its traces to file.
Could wine provide some recompilation-free way to enable apitrace to work — maybe an environment variable, or a registry key?
https://bugs.winehq.org/show_bug.cgi?id=41138
Ruslan Kabatsayev b7.10110111@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Regression SHA1| |4a1629c4117fda9eca63b6f56ea | |45771dc9734ac
https://bugs.winehq.org/show_bug.cgi?id=41138
Ruslan Kabatsayev b7.10110111@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://github.com/apitrace | |/apitrace/issues/479
https://bugs.winehq.org/show_bug.cgi?id=41138
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=41138
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
--- Comment #1 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Ruslan Kabatsayev from comment #0)
Due to NtTerminateProcess() now calling _exit() instead of exit(), apitrace has no opportunity to save its traces to file.
Could wine provide some recompilation-free way to enable apitrace to work — maybe an environment variable, or a registry key?
Just by accident I saw that this regression is related to one of my commits. Please always add the author(s) in the future to make sure they can analyze their bugs as quickly as possible.
From the description and the apitrace bug report it is not clear to me what
exactly calls NtTerminateProcess. If it is the application itself it is expected that exit handlers are skipped. If you have any additional information / analysis what exactly is going wrong, feel free to attach it to the bug report.
I will take a closer look and try to reproduce it in the meantime.
https://bugs.winehq.org/show_bug.cgi?id=41138
--- Comment #2 from Ruslan Kabatsayev b7.10110111@gmail.com --- (In reply to Sebastian Lackner from comment #1)
From the description and the apitrace bug report it is not clear to me what exactly calls NtTerminateProcess. If it is the application itself it is expected that exit handlers are skipped. If you have any additional information / analysis what exactly is going wrong, feel free to attach it to the bug report.
Yes, it's the application itself, which returns from WinMain.
https://bugs.winehq.org/show_bug.cgi?id=41138
--- Comment #3 from Ruslan Kabatsayev b7.10110111@gmail.com --- OK, so now apitrace intercepts _exit too [1]. I guess this can be closed for Wine... not sure with what resolution though.
[1]: https://github.com/apitrace/apitrace/commit/886e2aeefb352550831aa04643b81792...
https://bugs.winehq.org/show_bug.cgi?id=41138
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de Status|UNCONFIRMED |RESOLVED Resolution|--- |NOTOURBUG
--- Comment #4 from André H. nerv@dawncrow.de --- I think "resolved not our bug" seems appropriate
https://bugs.winehq.org/show_bug.cgi?id=41138
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|regression | URL| |https://github.com/apitrace | |/apitrace/issues/479 Status|RESOLVED |CLOSED Regression SHA1|4a1629c4117fda9eca63b6f56ea | |45771dc9734ac |
--- Comment #5 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to André H. from comment #4)
I think "resolved not our bug" seems appropriate
Okay, then let's close it since it was fixed in apitrace.