[cups-devel] [UNKN] STR #4550: avahi_client_free() called with NULL pointer during shutdown
Evangelos Foutras
noreply at cups.org
Sun Dec 28 04:29:56 PST 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
During system shutdown, CUPS logs the following error:
> Unable to communicate with avahi-daemon: An unexpected D-Bus error
occured
Shortly after that, cupsd calls avahi_client_free() with a NULL DNSSDClient
pointer and immediately terminates with SIGABRT.
According to the systemd journal, "Avahi mDNS/DNS-SD Stack" is stopped
before "CUPS Scheduler". My guess is that DNSSDClient is freed and set to
NULL by dnssdClientCallback() following the termination of the Avahi
daemon.
A simple solution would be to check if DNSSDClient is NULL before calling
avahi_client_free() in dnssdStop(). Either a (DNSSDClient != NULL) or
(avahi_running == 1) condition should suffice.
I'm using Arch Linux on x86_64 with the following software:
- - cups 2.0.1
- - systemd 218
- - avahi 0.6.31
Link: https://www.cups.org/str.php?L4550
Version: 2.0.1
Attachment: https://www.cups.org/strfiles.php/3426/gdb.txt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org
iQIcBAEBCgAGBQJUn/fEAAoJENujp6sI12IjXEoQAIc+vXomNyo2vyZ4MzX3We30
WDRit3RGxF36CzHLeRRbPGD7ISq0c7cj+0F+K7O1EFar+vZVueqDYwfsKz4nsJGM
MXQF6mGfuZ6VTPLHpor9jLaOWsM2CgmYbk55pN51N8xOcMzRR9QoUJbMCf7PnSO8
KzpPCEgcJ38zu2o43QzdrD7ggcuNr0/YSbR+KKejWQ66lMIn6lPzRlQZ3IyFbgkW
iNF+wcu2jhX5xfv3wL24vShHZ2oXccj9TsM5CyLICdg+5RlU62wqnJmt6JVLA7Tz
dxZ0WTSePFrf8Nv9qHEKhuieYDeL9Q/i8HmozJ2kSmxrQPoSBet6pYQEeDnNythO
16MsSo5vqj4lgwuI8AEHN447ckncxjom6qkps5StwOhbfGzRAoJcCH39VHnWkDfo
YDHgVZNP0uxEEnZwhBsroVhsZ1Ib/OgVJooml5I/bV2i+FLcSeomSmOwwTt5DQh8
fSYiuDYh1cM9UJLnEiSHoWhvEx5zXL8/dAf3k34Fia4mwWCtIR5t9T2azx8iAYwA
mdq1QDPVN20jK88cgB1jUGouTxryIESbpM1ODcS2f08L8PasugJhzSJK2vSDXOPT
j5pCve7bpgF1qsMIke4wOxTgBPCBoOlLbRXfAMm7nYT/jhRhXx0bRA6ScrPqlSD2
peQZ9EBprwPcy5aPpXR3
=O0Mg
-----END PGP SIGNATURE-----
More information about the cups-devel
mailing list