https://bugs.winehq.org/show_bug.cgi?id=48052
Bug ID: 48052 Summary: kernel32:debugger - Wine randomly fails to get the thread context Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
The kernel32:debugger test randomly fails with a variable number of these failures:
debugger.c:320: Test failed: GetThreadContext failed: 5 debugger.c:320: Test failed: GetThreadContext failed: 5 debugger.c:320: Test failed: GetThreadContext failed: 5 debugger.c:320: Test failed: GetThreadContext failed: 5
See https://test.winehq.org/data/tests/kernel32:debugger.html
These happen in test_debugger(), when fetch_process_context() tries to get the context of each thread. In Wine GetThreadContext() randomly fails causing a variable number of the above messages depending on how many threads are impacted.
All three Wine builds are impacted. The ERROR_ACCESS_DENIED probably comes from get_handle_obj() in server/handle.c. Given that this test was added to test a Wine exception handling race (*), maybe the race is still present?
(*) Based on the commit message for: commit 42a9b58b066ff374148cee088ac57cfba46e3b76 Author: Jacek Caban jacek@codeweavers.com AuthorDate: Mon Aug 26 19:37:20 2019 +0200
kernel32/tests: Add exception handling race test.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
The tests were later enabled on Wine by:
commit 27da4fa4498c3b6e0e46c72a9cdd13b620726e92 Author: Jacek Caban jacek@codeweavers.com AuthorDate: Fri Sep 20 16:33:53 2019 +0200
kernel32/tests: Enable debug break exception race tests on i386 Wine.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org