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 segmentation fault on 32-bit ARM #22

Merged
merged 1 commit into from
Jul 17, 2018
Merged

Fix segmentation fault on 32-bit ARM #22

merged 1 commit into from
Jul 17, 2018

Conversation

kdrag0n
Copy link
Contributor

@kdrag0n kdrag0n commented Jul 12, 2018

Fix segmentation fault on 32-bit ARM by moving atomic uint64 to be the first field in ManyToOne.

writeIndex is written to atomically, which means it must be 64-bit aligned on 32-bit 386 and ARM platforms. When the buffer slice is above it, it becomes unaligned and segfaults on the call to atomic.AddUint64().

See golang/go#23345

writeIndex is written to atomically, which means it must be 64-bit
aligned on 32-bit 386 and ARM platforms. When the buffer slice is above
it, it becomes unaligned and segfaults on the call to
atomic.AddUint64().

See golang/go#23345
@cfdreddbot
Copy link

Hey kdrag0n!

Thanks for submitting this pull request!

All pull request submitters and commit authors must have a Contributor License Agreement (CLA) on-file with us. Please sign the appropriate CLA (individual or corporate), and send to: contributors@cloudfoundry.org.

When sending signed CLA please provide your github username in case of individual CLA or the list of github usernames that can make pull requests on behalf of your organization.

If you are confident that you're covered under a Corporate CLA, please make sure you've publicized your membership in the appropriate Github Org, per these instructions.

Once you've publicized your membership, one of the owners of this repository can close and reopen this pull request, and dreddbot will take another look.

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/158995648

The labels on this github issue will be updated when the story is started.

@johannaratliff
Copy link

Merging as per this documentation.

@johannaratliff johannaratliff merged commit 3385e72 into cloudfoundry:master Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants