https://bugs.winehq.org/show_bug.cgi?id=45123
Bug ID: 45123 Summary: gdiplus/graphicspath test crashes under clang-5.0.1 but not gcc-7.3.0 Product: Wine Version: 3.7 Hardware: x86 URL: https://test.winehq.org/data/8dca6c35e11a104385242ed83 46ee05707b78ef7/linux_ae-gentoo-dbg-clang/gdiplus:grap hicspath.html OS: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: gdiplus Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com CC: madewokherd@gmail.com Distribution: Gentoo
Backtrace: =>0 0x7eca42d9 widen_joint+0x139(p1=<is not available>, p2=<is not available>, p3=<is not available>, pen=<is not available>, last_point=<has been optimized away by compiler>) [/var/lib/jenkins/home/workspace/wine-clang/dlls/gdiplus/graphicspath.c:1849] in gdiplus (0x0033fc38) 1 0x7eca2ac1 GdipWidenPath+0x3a0(path=<is not available>, pen=<is not available>, matrix=<is not available>, flatness=<is not available>) [/var/lib/jenkins/home/workspace/wine-clang/dlls/gdiplus/graphicspath.c:2029] in gdiplus (0x0033fca8) 2 0x7ed36262 func_graphicspath+0x3331() in gdiplus_test (0x0033fe08) 3 0x7ed74968 main+0x457() in gdiplus_test (0x0033fea8) 4 0x7ed74caa in gdiplus_test (+0x8fca9) (0x0033fee0) 5 0x7b45df9c call_process_entry+0xb() in kernel32 (0x0033fef8) 6 0x7b45e0f3 start_process+0x122(entry=0x7ed74f7a, peb=<is not available>) [/var/lib/jenkins/home/workspace/wine-clang/dlls/kernel32/process.c:1099] in kernel32 (0x0033ffdc) 7 0x7b45dfaa start_process_wrapper+0x9() in kernel32 (0x0033ffec) 0x7eca42d9 widen_joint+0x139 [/var/lib/jenkins/home/workspace/wine-clang/dlls/gdiplus/graphicspath.c:1849] in gdiplus: divps %xmm5,%xmm0 1849 float dx0 = distance * (p2->X - p1->X) / length_0;
https://bugs.winehq.org/show_bug.cgi?id=45123
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=45123
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fgouget@codeweavers.com
--- Comment #1 from François Gouget fgouget@codeweavers.com --- clang-5.0 is probably obsolete: Debian Stable has clang 11.0. So is the crash still happening with newer clang versions?
https://bugs.winehq.org/show_bug.cgi?id=45123
--- Comment #2 from Austin English austinenglish@gmail.com --- (In reply to François Gouget from comment #1)
clang-5.0 is probably obsolete: Debian Stable has clang 11.0.
We frequently fix issues in old gcc (within reason), I don't see why clang should be any different.
So is the crash still happening with newer clang versions?
It doesn't crash for me in clang-14.0.6.
I downloaded and build llvm/clang-5.0.1, a couple llvm tools wouldn't build with a modern toolchain, but clang did. With that, the bug is still present in wine-8.0.1 (used CC=clang-5.0.1 --without-mingw). If --with-mingw is used, the bug is not present.
https://bugs.winehq.org/show_bug.cgi?id=45123
Neko-san nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch
https://bugs.winehq.org/show_bug.cgi?id=45123
Bartosz gang65@poczta.onet.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gang65@poczta.onet.pl
https://bugs.winehq.org/show_bug.cgi?id=45123
--- Comment #3 from Bartosz gang65@poczta.onet.pl --- Solution proposal: https://gitlab.winehq.org/wine/wine/-/merge_requests/4475
https://bugs.winehq.org/show_bug.cgi?id=45123
--- Comment #4 from Bartosz gang65@poczta.onet.pl --- Most propably dlls/gdiplus/tests/customlinecap.c test is causing such failure: https://gitlab.winehq.org/wine/wine/-/blob/wine-8.20/dlls/gdiplus/tests/cust...
as it is operates on extreme numbers.
https://bugs.winehq.org/show_bug.cgi?id=45123
--- Comment #5 from Bartosz gang65@poczta.onet.pl --- The issue was resolved with commit: https://gitlab.winehq.org/wine/wine/-/commit/08653cf36870e595f4cda3012c42e8f...
Please verify if it is working for you.
https://bugs.winehq.org/show_bug.cgi?id=45123
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |08653cf36870e595f4cda3012c4 | |2e8f417a3a354
--- Comment #6 from Austin English austinenglish@gmail.com --- (In reply to Bartosz from comment #5)
The issue was resolved with commit: https://gitlab.winehq.org/wine/wine/-/commit/ 08653cf36870e595f4cda3012c42e8f417a3a354
Please verify if it is working for you.
I can't easily retest, so I'll take your word for it. Thanks!
https://bugs.winehq.org/show_bug.cgi?id=45123
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.0-rc2.