Skip to content

Conversation

@nwolber
Copy link
Contributor

@nwolber nwolber commented Feb 18, 2015

atomic.AddInt64 requires struct fields to be 64-bit aligned on x86-32 and ARM architectures. The token field of the Connection struct was not aligned and thus resulted in a nil pointer dereference. See the documentation on the Atomic package for reference: https://golang.org/src/sync/atomic/doc.go#L50

@dancannon
Copy link
Collaborator

Thank you very much for finding this bug and creating a fix as well, its probably not something I would have discovered for quite a while.

I will merge this change to develop tomorrow and then merge to master when I release the next version.

@dancannon
Copy link
Collaborator

Your PR has been merged to develop. Thanks again

@dancannon dancannon merged commit eac78d8 into rethinkdb:master Mar 4, 2015
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