[Bug 52396] Stack overflows when running any 64-bit .Net 6 (.Net Core) program

WineHQ Bugzilla wine-bugs at winehq.org
Tue Apr 12 11:15:50 CDT 2022


https://bugs.winehq.org/show_bug.cgi?id=52396

Paul Gofman <pgofman at codeweavers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pgofman at codeweavers.com

--- Comment #8 from Paul Gofman <pgofman at codeweavers.com> ---
This is my patch from official Proton, where it got to GE custom probably and
where it has proper subject and authorship.

The background of the issue is that .Net 6 has its own replacement for
RtlRestoreContext. Wine uses a workaround for own exception handlers on x64:
using TIB handlers just like on i386 and pops them in RtlRestoreContext. When
the handkers are not popped they are erroneously used later with unrelated
stack contents. My patch adds the functionally correct handling of that for
exception processing part, although it is not a complete solution as there are
more Wine handlers which are not fixed by this patch. Upstream solution is
waiting fir proper .seh exception handling support by compiler.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list