You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the NativeAOT compiled dll, .NET runtime registers a vectored exception handler with AddVectoredExceptionHandler, the handler is not unregistered when the dll is unloaded. Subsequent calls to ntdll.dll!RtlpCallVectoredHandlers(), which triggered by win32 exception dispatch, will fall into the handler in the unloaded module, causing an access violation.
Solution:
Hook AddVectoredExceptionHandler to intercept registered handlers and unregistered them with RemoveVectoredExceptionHandler right after the dll was unloaded.
The text was updated successfully, but these errors were encountered:
In the NativeAOT compiled dll, .NET runtime registers a vectored exception handler with
AddVectoredExceptionHandler
, the handler is not unregistered when the dll is unloaded. Subsequent calls tontdll.dll!RtlpCallVectoredHandlers()
, which triggered by win32 exception dispatch, will fall into the handler in the unloaded module, causing an access violation.Solution:
Hook
AddVectoredExceptionHandler
to intercept registered handlers and unregistered them withRemoveVectoredExceptionHandler
right after the dll was unloaded.The text was updated successfully, but these errors were encountered: