Skip to contentSkip to conversation

cupsd crashes when Avahi is used

Printing-architecture Till Kamppeter 2 participants 3 messages Dec 5, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

at Ubuntu many users (> 2000) hit the following bug:

https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1131854

It is an assert failure in a function of the Avahi library which makes the CUPS daemon abort, naturally only if CUPS uses Avahi which is the case in Ubuntu.

The Ubuntu patches on CUPS do not change anything in the Avahi support, so the problem most probably also occurs with other distributions.

Anyone has already observed this problem? Can it be a CUPS bug? If it is an Avahi bug, is it already known?

Till

#1 lore raw

Till,

Based on the bug report, it sounds like this is an internal bug of Avahi.

The fact that a production build of a library is forcing an assert is troubling - it doesn't allow the caller to perform any recovery and IMHO makes Avahi totally unsuited to production use at all.

The fix on the CUPS side is easy - bundle mDNSResponder (Apache license) with Ubuntu and build CUPS against it. For Avahi, we'll need to get someone from Avahi to look at the issue...

Quoted 10 lines · Till Kamppeter

Hi,

at Ubuntu many users (> 2000) hit the following bug:

https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1131854

It is an assert failure in a function of the Avahi library which makes the CUPS daemon abort, naturally only if CUPS uses Avahi which is the case in Ubuntu.

Quoted 7 lines

The Ubuntu patches on CUPS do not change anything in the Avahi support, so the problem most probably also occurs with other distributions.

Anyone has already observed this problem? Can it be a CUPS bug? If it is an Avahi bug, is it already known?

Till

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair

#2 lore raw

Thanks, I have added your answer to the bug report now.

Till

Quoted 32 lines · Michael Sweet

Till,

Based on the bug report, it sounds like this is an internal bug of Avahi.

The fact that a production build of a library is forcing an assert is troubling - it doesn't allow the caller to perform any recovery and IMHO makes Avahi totally unsuited to production use at all.

The fix on the CUPS side is easy - bundle mDNSResponder (Apache license) with Ubuntu and build CUPS against it. For Avahi, we'll need to get someone from Avahi to look at the issue...

Quoted 10 lines · Till Kamppeter

Hi,

at Ubuntu many users (> 2000) hit the following bug:

https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1131854

It is an assert failure in a function of the Avahi library which makes the CUPS daemon abort, naturally only if CUPS uses Avahi which is the case in Ubuntu.

Quoted 7 lines

The Ubuntu patches on CUPS do not change anything in the Avahi support, so the problem most probably also occurs with other distributions.

Anyone has already observed this problem? Can it be a CUPS bug? If it is an Avahi bug, is it already known?

Till

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair