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: unassignedb...@nondot.org
Reporter: rob...@ycbcr.xyz
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs