daemon crashes upon plug/unplug event
Task Info (Flyspray) | |
---|---|
Opened By | Ralf M (rbm78bln) |
Task ID | 76147 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | x86_64 |
Opened | 2022-10-08 22:27:50 UTC |
Status | Assigned |
Assignee | Felix Yan (felixonmars) |
Details
Description: When plugging or unplugging the network cable of a monitored interface, the daemon crashes with the following syslog entries: Sep 28 14:12:07 navi ifplugd(eth0)[726]: ifplugd 0.28 initializing, using NETLINK device monitoring. Sep 28 14:12:07 navi ifplugd(eth0)[726]: Using interface eth0/6C:24:08:xx:xx:xx with driver (version: v1.12.13) Sep 28 14:12:28 navi ifplugd(eth0)[726]: Using detection mode: SIOCETHTOOL Sep 28 14:12:28 navi ifplugd(eth0)[726]: NLAPI: Packet too small or truncated! Sep 28 14:12:28 navi ifplugd(eth0)[726]: Exiting. The action script does not get executed.
This is a well-known bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704495 https://unix.stackexchange.com/questions/222254/new-kernel-does-not-automatically-reconnect-to-network
Patch file and updated PKGBUILD are attached to this ticket.
Additional info:
- package version: 0.28-16
- command line: ifplugd -i eth0 --run=/bin/echo
- link to upstream bug report: see above
Steps to reproduce:
- run the daemon: ifplugd -i eth0 --run=/bin/echo
- plug or unplug the network cable
- find the messages mentioned above in your syslog
- the process has terminated and the network interface not not being monitored anymore.