Skip to content

Add ZT_NO_UNALIGNED_ACCESS for ARMv6/7 on FreeBSD#1294

Merged
adamierymenko merged 1 commit intozerotier:masterfrom
darkain:master
Nov 25, 2020
Merged

Add ZT_NO_UNALIGNED_ACCESS for ARMv6/7 on FreeBSD#1294
adamierymenko merged 1 commit intozerotier:masterfrom
darkain:master

Conversation

@darkain
Copy link
Copy Markdown
Contributor

@darkain darkain commented Nov 21, 2020

Unaligned access caused SIGBUS errors on ARMv6 and ARMv7 targets under FreeBSD.

This was also the cause of the repeating TAP devices. Each time the SIGBUS happened, the service would auto-restart itself, create a new TAP device, and then crash again.

The particular place causing the SIGBUS was:
https://github.com/zerotier/ZeroTierOne/blob/master/node/Utils.hpp#L695

Unaligned access caused SIGBUS errors on ARMv6 and ARMv7 targets under FreeBSD.

This was also the cause of the repeating TAP devices. Each time the SIGBUS happened, the service would auto-restart itself, create a new TAP device, and then crash again.

The particular place causing the SIGBUS was:
https://github.com/zerotier/ZeroTierOne/blob/master/node/Utils.hpp#L695
@adamierymenko adamierymenko merged commit 0ba358a into zerotier:master Nov 25, 2020
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