Skip to content
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

TargetInfo::getSizeOfUnwindException wrong for CHERI #680

Open
jrtc27 opened this issue Feb 1, 2023 · 0 comments
Open

TargetInfo::getSizeOfUnwindException wrong for CHERI #680

jrtc27 opened this issue Feb 1, 2023 · 0 comments
Assignees
Labels
bug Something isn't working wrong codegen The generate code is wrong (and causes crashes at runtime or wrong behaviour)

Comments

@jrtc27
Copy link
Member

jrtc27 commented Feb 1, 2023

Our structure is twice as big (note that 32-bit still uses uint64_t so is the same as 64-bit) for L64PC128 and so this needs to be 64 not 32. The consequence of this is that catching a pointer to a non-record type by reference loads the pointer from the wrong place within the exception object: https://cheri-compiler-explorer.cl.cam.ac.uk/z/M5so3o crashes, but patching the 32 immediate to 64 works.

@jrtc27 jrtc27 self-assigned this Feb 1, 2023
@arichardson arichardson added bug Something isn't working wrong codegen The generate code is wrong (and causes crashes at runtime or wrong behaviour) labels Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wrong codegen The generate code is wrong (and causes crashes at runtime or wrong behaviour)
Projects
None yet
Development

No branches or pull requests

2 participants