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

Fix arm64 panics by updating google/snappy library to latest, 0.0.4 #11396

Merged
merged 2 commits into from Oct 27, 2021

Conversation

notnoop
Copy link
Contributor

@notnoop notnoop commented Oct 27, 2021

Pick up golang/snappy#56 to handle arm64 architectures to fix panics. tldr; Golang 1.16 changed memmove implementation for arm64 requiring additional cpu registers that snappy wasn't preserving in its assembly implementation.

Other projects have experienced this issue as well, searching for encode_arm64.s:666 on your favorite search engine will reveal some. Vault updated the dependency earlier this August: hashicorp/vault#12371 .

I believe this issue affects Nomad 1.2.x and 1.1.x. Nomad 1.0.x use Golang 1.15 and isn't affected. However, backporting the change to 1.0.x should be harmless.

Fixed #11385 .

@notnoop notnoop added this to the 1.2.0 milestone Oct 27, 2021
@notnoop notnoop self-assigned this Oct 27, 2021
Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@notnoop notnoop merged commit 5f6ad87 into main Oct 27, 2021
@notnoop notnoop deleted the b-deps-snappy-0.0.4 branch October 27, 2021 13:39
lgfa29 pushed a commit that referenced this pull request Nov 15, 2021
…11396)

Pick up golang/snappy#56 to handle arm64 architectures to fix panics. tldr; Golang 1.16 changed `memmove` implementation for arm64 requiring additional cpu registers that snappy wasn't preserving in its assembly implementation.

Other projects have experienced this issue as well, searching for `encode_arm64.s:666` on your favorite search engine will reveal some.  Vault updated the dependency earlier this August: hashicorp/vault#12371 .

I believe this issue affects Nomad 1.2.x and 1.1.x. Nomad 1.0.x use Golang 1.15 and isn't affected. However, backporting the change to 1.0.x should be harmless.

Fixed #11385 .
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dispatch API returning 500 only for some Payloads
3 participants