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 go panic caused by unaligned atomic fields on certain architectures. #4729

Merged
merged 1 commit into from
Mar 19, 2019

Conversation

techninja1008
Copy link
Contributor

@techninja1008 techninja1008 commented Mar 16, 2019

On certain architectures (such as ARM and x86_32) the misalignment of these fields will cause a panic when an update is attempted.

On a side note, I've only checked this part of the repo - I came across this as it is depended on by ThalesIgnite/crypto11 - More checking might be required to fix this if it occurs in other places.

Relates to golang/go#599 and golang/go#23345

Copy link
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

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

This is rather disturbing because there may be other places where this could be happening. I'll accept this case since it's known to have caused issues.

@sougou sougou merged commit 5d425ed into vitessio:master Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants