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

CoreDNS segmentation fault after migration from ARMv8 to ARMv7 #153

Open
lgoio opened this issue Jan 10, 2025 · 0 comments
Open

CoreDNS segmentation fault after migration from ARMv8 to ARMv7 #153

lgoio opened this issue Jan 10, 2025 · 0 comments

Comments

@lgoio
Copy link

lgoio commented Jan 10, 2025

Description

After migrating my Home Assistant setup from ARMv8 (Raspberry Pi 3) to ARMv7 (Odroid XU4), the DNS plugin (hassio_dns) failed. Running coredns -conf /etc/corefile inside the container resulted in a segmentation fault.

Steps to Reproduce:

  • Migrate a Home Assistant setup from ARMv8 hardware (e.g., Raspberry Pi) to ARMv7 hardware (Odroid XU4).
  • Execute the following commands:
docker exec -it hassio_dns /bin/sh
coredns --help # segmentation fault

Workaround

The issue was resolved by:

ha dns downgrade --version 2024.04.0
ha dns upgrade

After this, the DNS plugin (2024.12.0) worked as expected.

Suspected Cause

The segmentation fault appears to be specifically related to the coredns binary. Other programs within the hassio_dns container ran without any issues, suggesting that the problem is isolated to coredns. This indicates that the issue occurs during the distribution process of the coredns binary after it has been cross-compiled.

To address this, I recommend switching from the current cross-compilation and distribution process to a native installation of coredns using apk, such as:

apk add coredns

This approach could help ensure compatibility with the target architecture and prevent errors introduced during the distribution of the cross-compiled binary.

Environment

  • Source Architecture: ARMv8 (Raspberry Pi)
  • Target Architecture: ARMv7 (Odroid XU4)

Versions

  • Core 2025.1.2
  • Supervisor: 14.1
  • OS: 2024.12.3
  • Frontend: 20250109.0
  • DNS: 2024.12.0
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

No branches or pull requests

1 participant