-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NativeAOT fast fails process from hw exception after winrt loaded by external code #359
Comments
Here are a few things to try:
One possible explanation of the crash is that there is a unmanaged heap corruption caused by unrelated code that is corrupting |
Yes, the NativeAOT subscribes to all exceptions. It should filter out the ones that does not belong to it, but it is what's not happening in this case. I suspect that the problem will be that the ranges inside
You may need to reference it as
Yes, you should be able to turn on the heap verification using application verifier. gflags.exe tool that comes with windbg can be used to turn on the pageheap as well. |
Closing inactive issues. |
Hi,
I managed to reencounter the issue that I mentioned in #182 where winrt is loaded by libcef which loads twinapi which loads combase. Im not sure entirely the reason for this. The thread in question is at points hijacked by some NativeAOT code but at the point where the crash occurs there is no NativeAOT code in the callstack.
This HW exception is then picked up by RhpThrowEx which goes and fast fails the process.
the top of the callstack is as follows

The locals of

RhThrowHwEx
are as followsI suspect that its because its attempting to load winrt when thats not allowed by NativeAOT (once again thats not by me but by libcef which is used by the process my dll resides in).
errco.de suggests that a 0x00001001 is a stack overflow but I cant belive that is the case since there are only 50 or so functions on the stack...
Thanks,
Em
The text was updated successfully, but these errors were encountered: