-
Notifications
You must be signed in to change notification settings - Fork 66
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: runtime error: invalid nil pointer dereference when point-to-point interface has nil dst address #292
Comments
[pdcastro] This issue has attached support thread https://jel.ly.fish/8e060183-5225-4114-9bfb-43469299a6dd |
Hi, I kept doing some test and reverting to BalenaOS version balenaOS 2.85.2+rev3 seems to work. I have no idea on why or how ... I hope it can help solve the issue. Thanks |
You are correct, it seems that the bug was introduced with the update of balena-engine to upstream moby v20.10.12, which was introduced in balenaOS v2.94.0. So the bug would not be present in balenaOS 2.85.2 which has balena-engine v19.03.30 |
This new version of netlink includes a number of bugfixes, including a fix to #292. Signed-off-by: Leandro Motta Barros <leandro@balena.io> Change-type: patch
[majorz] This has attached https://jel.ly.fish/b8cffc99-86da-4961-88af-51ecbb4aa590 |
balenaEngine initialization would fail on devices connected to the network via PPP (Point-to-Point Protocol) and with a nil destination address (0.0.0.0): panic: runtime error: invalid memory address or nil pointer dereference This commit updates the netlink dependency to a fork where we cherry-picked the correction. This correction wasn't available in any stable release of netlink, so we opted to use this fork instead of relying on a beta netlink version. We can obsolete our fork once Moby starts using a netlink version that includes the fix. Fixes #292 Signed-off-by: Leandro Motta Barros <leandro@balena.io> Change-type: patch
A workaround is to enable
And then do:
That should bring the host engine up from boot and allow to update the hostOS to a patched version. |
balenaEngine initialization would fail on devices connected to the network via PPP (Point-to-Point Protocol) and with a nil destination address (0.0.0.0): panic: runtime error: invalid memory address or nil pointer dereference This commit updates the netlink dependency to a fork where we cherry-picked the correction. This correction wasn't available in any stable release of netlink, so we opted to use this fork instead of relying on a beta netlink version. We can obsolete our fork once Moby starts using a netlink version that includes the fix. Fixes #292 Signed-off-by: Leandro Motta Barros <leandro@balena.io> Change-type: patch
balenaEngine initialization would fail on devices connected to the network via PPP (Point-to-Point Protocol) and with a nil destination address (0.0.0.0): panic: runtime error: invalid memory address or nil pointer dereference This commit updates the netlink dependency to a fork where we cherry-picked the correction. This correction wasn't available in any stable release of netlink, so we opted to use this fork instead of relying on a beta netlink version. We can obsolete our fork once Moby starts using a netlink version that includes the fix. Fixes #292 Signed-off-by: Leandro Motta Barros <leandro@balena.io> Change-type: patch
As further detailed in the linked support thread.
On investigation, we found that the bug is in the
netlink
library (3rd party) and already fixed (over there) by the following pull request:Related reference: https://stackoverflow.com/questions/4678637/what-is-difference-between-ifa-local-and-ifa-address-in-rtnetlink-linux
Known workaround
Not yet confirmed at the time of this writing, but in the linked support thread, I believe that the immediate cause for the engine panic is the following
P-t-P:0.0.0.0
value in theppp0
interface:I suspect that, by the setting a value other than 0.0.0.0, the engine panic would be avoided. In the linked support thread, I understand that interface
ppp0
was associated with cellular (gsm) internet connection, for which NetworkManager reported an IPv4 gateway of value 0.0.0.0:Above, I believe it is unusual for
IP4.GATEWAY
to have value0.0.0.0
. I suspect that thatIP4.GATEWAY
value corresponds toP-t-P:0.0.0.0
in the output ofifconfig
for theppp0
interface. I suspect that setting a non-nil value forIP4.GATEWAY
would work around the engine panic.The text was updated successfully, but these errors were encountered: