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(execute): remove 64bit misalignment #4676

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

2opremio
Copy link
Contributor

Calling atomic.LoadUint64(() on groupKey.hash resulted in an alignment panic in armv7, due to it not being 64bit aligned.

Declaring it first in the struct solved it.

See https://pkg.go.dev/sync/atomic#pkg-note-BUG fore more details

For context: I already fixed a similar issue at influxdata/influxdb#23260

Done checklist

  • docs/SPEC.md updated
  • Test cases written

Calling `atomic.LoadUint64(()` on `groupKey.hash` resulted in an
alignment panic in armv7, due to it not being 64bit aligned.

Declaring it first in the struct solved it.

See https://pkg.go.dev/sync/atomic#pkg-note-BUG fore more details

For context: I already fixed a similar issue at
influxdata/influxdb#23260
@2opremio 2opremio requested a review from a team as a code owner April 17, 2022 21:18
@2opremio 2opremio requested review from scbrickley and removed request for a team April 17, 2022 21:18
@jsternberg jsternberg merged commit 8e0bf89 into influxdata:master Apr 19, 2022
@2opremio 2opremio deleted the fix-32bit-alignment branch April 19, 2022 17:36
2opremio added a commit to 2opremio/flux-1 that referenced this pull request Mar 1, 2023
Invoking atomic operations in the reference counters resulted in an alignment panic in armv7, due to them not being 64bit aligned.

Declaring them first in the struct solved it.

See https://pkg.go.dev/sync/atomic#pkg-note-BUG fore more details

For context: I already fixed a similar issue at influxdata#4676
appletreeisyellow pushed a commit that referenced this pull request Mar 1, 2023
Invoking atomic operations in the reference counters resulted in an alignment panic in armv7, due to them not being 64bit aligned.

Declaring them first in the struct solved it.

See https://pkg.go.dev/sync/atomic#pkg-note-BUG fore more details

For context: I already fixed a similar issue at #4676
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.

3 participants