Debian Patches

Status for golang-github-astroprofundis-sysinfo/0.0~git20240112.ed54df1-2

Patch Description Author Forwarded Bugs Origin Last update
fix-debian-buildd-failures-on-nil-network-interface.patch Handle nil interface from net.InterfaceByName
This package built and all post-build Go tests passed fully on all local builds,
Salsa CI and on Launchpad on all architectures. However, on Debian buildd it
failed randomly, apparently as the `net.InterfaceByName` function returned a nil
interface if the specified network interface is not found or available,
manifesting as a `SIGSEGV` in the `getNetworkInfo` function. Seems that if an
error occurs (indicating `inet` is nil), the `ip_addrs` slice and `mtu` variable
are initialized to their zero values, preventing the subsequent nil pointer
dereference and ensuring the code handles unavailable interfaces gracefully.

Attempt to handle this error returned by `net.InterfaceByName` to avoid tests
failing.
=?utf-8?b?T3R0byBLZWvDpGzDpGluZW4=?= <otto@debian.org> no 2025-08-25

All known versions for source package 'golang-github-astroprofundis-sysinfo'

Links