-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: stalls under Rosetta2 with MacOS 14.5 #68485
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
Comments
Related Issues and Documentation (Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
Why are you using an amd64 binary when an arm64 one is available? |
Thanks for reporting. This looks like a bug in Rosetta2. The assertion failure is Rosetta 2's internal failure. Do you have a simpler reproducer, without an AWS account? Does this reproduce consistently, or just fail occasionally? With more information we can report to Apple and have them reproduce. Thanks. |
In triage @cherrymui mentioned that she tried to reproduce on the latest macOS at the time (14.5 and 15.0 beta) and was unable to (at least with |
@cherrymui @mknyszek I know this is a very convoluted repro, but we sadly don't have a simpler one :/ It is failing constantly for us. Let me know if I can help you repro in any way! |
If you could make it self-contained, without an AWS account, it would be helpful. Even if it is just a binary, we can point the binary and let Apple know that, run that binary in Rosetta 2 and it fails. Thanks. |
There is a relatively simple way to replicate the issue that does not rely on any accounts: compile v.5.69.0 or any newer version of https://github.com/hashicorp/terraform-provider-aws with golang v1.23 for Darwin-amd64, and just run the compiled binary multiple times on Apple Silicon Macs. It hangs quite reliably, every few other runs. |
Go version
go version go1.22.4 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
I have a go amd64 binary that is running fine with Rosetta2 in MacOS 14.4 and earlier. After upgrading to MacOS 14.5 it stalls.
As a workaround, running the binary with
GODEBUG=asyncpreemptoff=1
works.The binary is https://github.com/pulumi/pulumi-aws with version
v6.42.0+
.I wasn't able to create a minimal example that triggers this, but to reproduce it you can do the following (you need an AWS account but nothing gets created):
brew install pulumi
mkdir rosetta-stall-repro && cd rosetta-stall-repro && pulumi new aws-typescript
yarn upgrade @pulumi/[email protected]
pulumi preview
pushd ~/.pulumi/plugins/resource-aws-v6.42.0
wget https://github.com/pulumi/pulumi-aws/releases/download/v6.42.0/pulumi-resource-aws-v6.42.0-darwin-amd64.tar.gz
tar -xvzf pulumi-resource-aws-v6.42.0-darwin-amd64.tar.gz
popd
pulumi preview
What did you see happen?
Getting the following error before the runtime stalls:
CodeFragmentMetadata.cpp seems to be part of Rosetta2:
What did you expect to see?
The runtime shouldn't stall and execute normally.
The text was updated successfully, but these errors were encountered: