Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Fix exception propagation over HW exception frame on macOS arm64 #63596
Fix exception propagation over HW exception frame on macOS arm64 #63596
Changes from 3 commits
16652fa
f15b34e
cc2df9c
62f2e7e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@janvorli, should this:
runtime/src/coreclr/pal/src/exception/seh-unwind.cpp
Lines 186 to 187 in f3e4e76
(only pass one argument to
ASSIGN_FP_REG
)While working on #64043, I had a misconfiguration (related to
UNWIND_CONTEXT_IS_UCONTEXT_T
detection) and was getting errors during macro expansion, when this code compiled on linux arm64.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@am11 Seems to be the case considering the only use of
ASSIGN_FP_REG
has a single argument.runtime/src/coreclr/pal/src/exception/seh-unwind.cpp
Lines 134 to 157 in f3e4e76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this code was ever compiling and is dead? cl.exe on Windows and clang on Linux both fail the
UNWIND_CONTEXT_IS_UCONTEXT_T
test and set it to 0 onmain
. To unveil the problem, i.e. misconfiguration which I had -- in order to set it to 1, delete the last/include
from:runtime/src/coreclr/pal/src/configure.cmake
Line 1033 in f3e4e76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@am11 you are right, it is a dead code. I've added it when fixing floating point registers unwind because we had that code path for ARM64. However, the libunwind currently doesn't use the ucontext_t as unwind context for ARM64, IIRC a comment in there says it is done that way in order to reduce size of the unwind context. So everything for ARM64 with
UNWIND_CONTEXT_IS_UCONTEXT_T
set is not being ever compiled.I think that we should just remove all of that and replace it with
#error