scanimage crashes with Assertion failed: p (thread-watch.c: avahi_threaded_poll_lock: 171)
Dear alpine community and @vaka,
scanimage from alpine 3.12 crashes on startup when no avahi daemon is running:
bash-5.0# SANE_DEBUG_NET=3 scanimage -d net:scanner
Output format is not set, using pnm as a default.
[19:23:58.797337] [sanei_debug] Setting debug level of net to 3.
[19:23:58.797400] [net] sane_init: authorize != null, version_code != null
[19:23:58.797580] [net] net_avahi_init: could not create Avahi client: Daemon not running
[19:23:58.797595] [net] net_avahi_init: Avahi init failed, support disabled
[19:23:58.797617] [net] sane_init: SANE net backend version 1.0.14 (AF-indep+IPv6) from sane-backends 1.0.29
[19:23:58.797636] [net] sane_init: Client has little endian byte order
[19:23:58.797649] [net] sane_init: searching for config file
[19:23:58.797693] [net] sane_init: done reading config
[19:23:58.797712] [net] sane_init: evaluating environment variable SANE_NET_HOSTS
[19:23:58.797726] [net] sane_init: evaluating environment variable SANE_NET_TIMEOUT
[19:23:58.797736] [net] sane_init: done
[19:23:58.797746] [net] sane_open("scanner")
[19:23:58.797758] [net] sane_open: host = scanner, device =
[19:23:58.797771] [net] sane_open: device scanner not found, trying to register it anyway
Assertion failed: p (thread-watch.c: avahi_threaded_poll_lock: 171)
Aborted (core dumped)
Looks like the same problem discussed here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861112
I'm glad if you could fix the issue.
Maik