-
Notifications
You must be signed in to change notification settings - Fork 119
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
macOS unhandled exception #84
Comments
Hey, thanks for reporting! Just a quick note to let you know this is on my radar, but I'm out of office at the moment without access to the Apple hardware so can't look into it at the moment. In the meantime, can you maybe check if you get the same issues on the host or is this something that's UTM specific? |
Hello @ifratric On more thing regarding the issue: I hope we can solve this problem. I appreciate your time in advance. |
I can try it on Apple Silicon host once I'm back in the office (next week, hopefully). One thing you can try is remove the PAC bits in
|
FYI: I'm back and looking into this. You are correct that the PC (and some other register values) read from the thread context are PAC-signed when the target is an arm64e (as opposed to arm64) binary. While we can strip the PAC signature when reading these values, this is not sufficient because we also need to sign the values when writing into these registers. Unfortunately, this doesn't appear possible from an arm64 binary (which TinyInst currently compiles as). While we can call pac-signing instructions such as PACIZA, they simply do nothing in arm64 mode. So TinyInst would need to be compiled as arm64e binary first and then we can start to work on this issue and possibly other issues related to arm64e mode. Stay tuned. |
There has been some progress in 23e026a, but while this works for my own arm64e programs (assuming TinyInst was built with |
Hello,
I am running litecov on macOS 14.6.1 running under UTM (host is an M3).
When I try it using a simple test program I wrote, it works well:
But I get error when running using programs in e.g. sbin or bin ...:
Can you please provide a hint how to solve it?
The text was updated successfully, but these errors were encountered: