PeernetOfficial / core

Core library. Use this to create a new Peernet application.
MIT License
36 stars 5 forks source link

Reordered Peerinfo struct to uint64 fields before the others fields #86

Closed Akilan1999 closed 2 years ago

Akilan1999 commented 2 years ago

Error on Raspberry pi.

runtime error: unaligned 64 bit atomic operation

Reason for the problem

On ARM, 386, and 32-bit MIPS, it is the caller's responsibility to arrange for 64-bit alignment of 64-bit words accessed atomically. The first word in a variable or in an allocated struct, array, or slice can be relied upon to be 64-bit aligned. source: https://pkg.go.dev/sync/atomic#pkg-note-BUG

Fix from referred issue:

https://github.com/census-instrumentation/opencensus-go/issues/587