-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
panic: unaligned 64-bit atomic operation. Support 32-bit architectures too. #483
Comments
Could you try the associated commit? Was this issue only present on arm, did you find anything else that didn't work? I would welcome PRs to include CI for testing arm if you're interested. |
|
According to atomic/#pkg-note-BUG it affects all 32-bit architectures. I can confirm the same on ARM and 386. anacrolix/dht@fd60ad0 didn't fix it, same error with different line number. example/torrent built for 386
|
Could you provide the new stack trace? It's probably another atomic elsewhere in the package that also needs to be fixed. |
@anacrolix You can build example/torrent from this repo itself for linux 386 and run it on amd64 or for linux arm and run it on arm64. I included the new stack trace for example/torrent from this repo itself in the previous comment. |
Sorry I don't have the necessary platforms available. A PR to include those in CI is welcomed. It should be sufficient to move any stat blocks to the top of their structs, per some of the comments where I've done this previously. |
Hello! I think I've managed to fix the problem with the help of this page: https://go101.org/article/memory-layout.html I use anacrolix torrent for my torrent player application ( White Raven ) for Samsung Smart TV E, F, H series. Each of these televisions has armv7 and armv6 32-bit processors. For me, this bug fix is necessary. Tested on armv7 32-bit, windows 32-bit, linux 32-bit. |
Interesting article. I take it then on a 32 bit system, the struct field alignment even of an int64 might be only 4 bytes. |
See anacrolix/dht#46. |
The text was updated successfully, but these errors were encountered: