https://bugs.winehq.org/show_bug.cgi?id=53497
Bug ID: 53497 Summary: d3d8:device - test_resource_access() crashes in Wine Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: d3d Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
d3d8:device - test_resource_access() crashes in Wine:
device.c:9782: Test marked todo: Test DS 29: Got unexpected hr 0x8876086c. Unhandled exception: page fault on read access to 0x0000400c in 32-bit code (0x714b859f). Register dump: CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b EIP:714b859f ESP:0069f570 EBP:0069f5c8 EFLAGS:00210246( R- -- I Z- -P- ) EAX:00000000 EBX:00000000 ECX:0019e9d0 EDX:00000000 ESI:00004000 EDI:00167e1c Stack dump: 0x0069f570: 0018e618 00000000 00000020 0069f5a0 0x0069f580: 00000001 00168900 0069f5b8 71552eae 0x0069f590: 00130000 00000000 0069f5c8 71552eae 0x0069f5a0: 715d6480 0018e618 0069f5d0 0019e9d0 0x0069f5b0: 00000000 0069f5d0 0069f628 00000001 0x0069f5c0: 00168900 0069f7a4 0069f628 6854c9e5 Backtrace: =>0 0x714b859f mode_matches_filter+0x3f(scanline_ordering=<internal error>, format=<internal error>, mode=<internal error>, adapter=<internal error>) [Z:\home\winetest\tools\testbot\var\wine\dlls\wined3d\directx.c:1285] in wined3d (0x0069f5c8) 1 0x714b859f wined3d_output_get_mode+0xaf(output=00167E1C, format_id=WINED3DFMT_UNKNOWN, scanline_ordering=WINED3D_SCANLINE_ORDERING_UNKNOWN, mode_idx=0, mode=0069F5FC, cached=true) [Z:\home\winetest\tools\testbot\var\wine\dlls\wined3d\directx.c:1350] in wined3d (0x0069f5c8) 2 0x6854c9e5 d3d8_EnumAdapterModes+0x65(iface=00168900, adapter=0x1, mode_idx=0, mode=0069F7A4) [Z:\home\winetest\tools\testbot\var\wine\dlls\d3d8\directx.c:176] in d3d8 (0x0069f628) 3 0x004315e5 in d3d8_test (+0x315e5) (0x0069fe08) 4 0x004670cb in d3d8_test (+0x670cb) (0x0069fee8) 5 0x00466c6f in d3d8_test (+0x66c6f) (0x0069ff30) 6 0x7b62a170 in kernel32 (+0x2a170) (0x0069ff48) 7 0x7bc5c627 in ntdll (+0x5c627) (0x0069ff5c) 8 0x7bc5cce0 RtlCreateUserThread(entry=00466BF0, arg=7FFD1000) [Z:\home\winetest\tools\testbot\var\wine\dlls\ntdll\thread.c:261] in ntdll (0x0069ffec) 0x714b859f wined3d_output_get_mode+0xaf [Z:\home\winetest\tools\testbot\var\wine\dlls\wined3d\directx.c:1350] in wined3d: movl 0xc(%esi),%eax 1350 const struct wined3d_display_mode *wined3d_mode = &output->modes[i];
https://test.winehq.org/data/patterns.html#d3d8:device
The crash seems to only happen on multi-monitor configurations and is not 100% systematic.
A bisect shows that it started with the commit below:
commit 95352c096f0bbb0c2be3dc09c972792894d5315e Author: Zebediah Figura zfigura@codeweavers.com AuthorDate: Tue Jul 26 18:15:28 2022 -0500
wined3d: Build a list of wined3d_display_mode structures in wined3d_output_get_mode[_count]().
https://bugs.winehq.org/show_bug.cgi?id=53497
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |95352c096f0bbb0c2be3dc09c97 | |2792894d5315e CC| |z.figura12@gmail.com Keywords| |regression, source, | |testcase
https://bugs.winehq.org/show_bug.cgi?id=53497
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|d3d8:device - |d3d8:device & d3d8:device - |test_resource_access() |test_resource_access() |crashes in Wine |crashes in Wine
--- Comment #1 from François Gouget fgouget@codeweavers.com --- The same issue is causing d3d9:device to crash too:
device.c:13551: Test marked todo: Test PLAIN 22: Got unexpected hr 0. Unhandled exception: page fault on read access to 0xffffffffffffffff in 64-bit code (0x0000021ffe2d7e). ... Backtrace: =>0 0x0000021ffe2d7e mode_matches_filter+0x46(scanline_ordering=<internal error>, format=<internal error>, mode=<internal error>, adapter=<internal error>) [Z:\home\winetest\tools\testbot\var\wine\dlls\wined3d\directx.c:1285] in wined3d (0000000000000000) 1 0x0000021ffe2d7e wined3d_output_get_mode+0xce(output=<register RSI not accessible in this frame>, format_id=[<register RSP not accessible in this frame>, scanline_ordering=<register R15 not accessible in this frame>, mode_idx=[<register RSP not accessible in this frame>, mode=[<register RSP not accessible in this frame>, cached=[<register RSP not accessible in this frame>) [Z:\home\winetest\tools\testbot\var\wine\dlls\wined3d\directx.c:1350] in wined3d (0000000000000000) 2 0x000002967bfd35 d3d9_EnumAdapterModes+0x75(iface=<register RSI not accessible in this frame>, adapter=<register RBX not accessible in this frame>, format=<register R12 not accessible in this frame>, mode_idx=<register RDI not accessible in this frame>, mode=[<register RSP not accessible in this frame>) [Z:\home\winetest\tools\testbot\var\wine\dlls\d3d9\directx.c:206] in d3d9 (0x0000000021f5a0) 3 0x0000014003a263 in d3d9_test (+0x3a263) (0x00000000000280) 4 0x0000014004d5ac in d3d9_test (+0x4d5ac) (0x0000000021f728) 5 0x000001400b8abe in d3d9_test (+0xb8abe) (0x00000000339fd1) 6 0x000001400b8727 in d3d9_test (+0xb8727) (0000000000000000) 7 0x0000007b628fa9 BaseThreadInitThunk+0x9(unknown=<internal error>, entry=<internal error>, arg=<internal error>) [Z:\home\winetest\tools\testbot\var\wine\dlls\kernel32\thread.c:61] in kernel32 (0000000000000000) 8 0x0000017005eaa3 __wine_pop_frame(unknown=<internal error>, entry=<internal error>, arg=<internal error>) [Z:\home\winetest\tools\testbot\var\wine\include\wine\exception.h:277] in ntdll (0000000000000000) 9 0x0000017005eaa3 RtlUserThreadStart+0x83(entry=[<register RSP not accessible in this frame>, arg=[<register RSP not accessible in this frame>) [Z:\home\winetest\tools\testbot\var\wine\dlls\ntdll\thread.c:240] in ntdll (0000000000000000) 0x0000021ffe2d7e wined3d_output_get_mode+0xce [Z:\home\winetest\tools\testbot\var\wine\dlls\wined3d\directx.c:1350] in wined3d: movl 0x0000000000000c(%r13),%edx 1350 const struct wined3d_display_mode *wined3d_mode = &output->modes[i];
https://bugs.winehq.org/show_bug.cgi?id=53497
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |4d81825f3a489c5e36eae1cc8a4 | |6834a104e5894 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #2 from Zeb Figura z.figura12@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commitdiff/4d81825f3a489c5e36eae1cc8a46834a104e5894.
https://bugs.winehq.org/show_bug.cgi?id=53497
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.16.