[llvm-bugs] [Bug 45713] New: use RtlRestoreContext which is forbidden in winstore builds

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Apr 28 07:49:40 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45713

            Bug ID: 45713
           Summary: use RtlRestoreContext which is forbidden in winstore
                    builds
           Product: Runtime Libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: libunwind
          Assignee: unassignedbugs at nondot.org
          Reporter: robux4 at ycbcr.xyz
                CC: llvm-bugs at lists.llvm.org

The current template AbstractUnwindCursor on Windows seems to create a context
along the way and when jumpto() is called, RtlRestoreContext is called.

This call is not allowed in some UCRT/UWP context. Here are the list of allowed
API entries: https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis
In particular the RTL support:
https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-core-rtlsupport-l1-2-0dll

Maybe RtlUnwind or RtlUnwindEx could be used instead. But it seems like the
code would need a big rework.

In the meantime, builds with _LIBUNWIND_SUPPORT_SEH_UNWIND (the default when
__SEH__ is enable, which is also the default on win64) cannot be published on
the Windows Store for some devices because this API is not allowed (mostly for
C++ based code).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200428/30a03d7f/attachment.html>


More information about the llvm-bugs mailing list