Summary: | pixman_implementation_create_mmx crashes on win32 | ||
---|---|---|---|
Product: | pixman | Reporter: | M Welinder <terra> |
Component: | pixman | Assignee: | Søren Sandmann Pedersen <soren.sandmann> |
Status: | RESOLVED FIXED | QA Contact: | Søren Sandmann Pedersen <soren.sandmann> |
Severity: | normal | ||
Priority: | medium | CC: | mikkel |
Version: | 0.28.x | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
M Welinder
2013-10-10 15:48:45 UTC
Can you try this branch: http://cgit.freedesktop.org/~sandmann/pixman/log/?h=stackrealign If that fixes it, it's probably a dup of https://bugs.freedesktop.org/show_bug.cgi?id=68300 and is indeed caused by stack alignment. That looks promising, thanks. Actually testing it will probably happen mid-next-week. Actually, please test this branch: http://cgit.freedesktop.org/~sandmann/pixman/log/?h=stackrealign2 instead. Blindly relying on -mstackrealign might not be the way to go. Here's a report from 2011 that it causes stack corruption with -O. http://lists.freedesktop.org/archives/mesa-commit/2011-February/028770.html The only references to that stack corruption bug I can all ultimately come from the Mesa bug, so I'm not convinced it's a real issue. However, there are some other reasons that -mstackrealign may not be the way to go, so now I intend to just add more __force_align_arg_pointer__ attributes. This branch, specifically: http://cgit.freedesktop.org/~sandmann/pixman/log/?h=stackrealign3 I can confirm a similar crash running cross-compiled 32-Bit MinGW code on Windows XP with PIXMAN 0.30.2 / CAIRO 1.12.16. Stack trace ends up in sse2_composite_add(). With the proposed workaround --disable-sse2 --disable-mmx the crash disappears. The crash doesn't show up with PIXMAN 0.26.2. (In reply to comment #6) > I can confirm a similar crash running cross-compiled 32-Bit MinGW code on > Windows XP with PIXMAN 0.30.2 / CAIRO 1.12.16. > > Stack trace ends up in sse2_composite_add(). > With the proposed workaround --disable-sse2 --disable-mmx the crash > disappears. > > The crash doesn't show up with PIXMAN 0.26.2. Please test this branch: http://cgit.freedesktop.org/~sandmann/pixman/log/?h=stackrealign3 confirming that adding just this patch from the stackrealign3 fixes all crashes I can find: http://cgit.freedesktop.org/~sandmann/pixman/commit/?h=stackrealign3&id=4978392c6d6d6e69bef3bb66ea53f41a58e8eafc Fixed in master *** Bug 68300 has been marked as a duplicate of this bug. *** |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.