[cups.bugs] [MOD] STR #2931: "Apple Bonjour compatibility layer of Avahi" warning causes SIGPIPE crash

martin.pitt.canonical martin.pitt at canonical.com
Sat Sep 6 02:58:51 PDT 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

We all know and love the "Apple Bonjour compatibility layer of Avahi"
warning, as described in STR #2655.

Now I got a report (http://bugs.debian.org/497492) that this warning
causes a cups crash:

[pid  3977] write(2, "*** WARNING *** The program 'cups"..., 89) = 89
[...]
[pid  3977] write(2, "*** WARNING *** Please fix your a"..., 76) = -1
EPIPE (Broken pipe)
[pid  3977] --- SIGPIPE (Broken pipe) @ 0 (0) ---
[...]
Process 3977 detached
<... nanosleep resumed> 0xbfe312e4)     = ? ERESTART_RESTARTBLOCK (To be
restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGPIPE}], 0, NULL) = 3977
write(2, "cupsd: Child exited on signal 13!"..., 34cupsd: Child exited on
signal 13!

Thus it seems the warning is triggered by some child process which does
not have a stderr and thus dies with a SIGPIPE. I cannot reproduce the
crash, but the cause seems pretty clear.

Since STR #2655 made it quite clear that the avahi bonjour library usage
isn't going away anytime soon, so I made a small patch to avoid the
warning altogether.

Link: http://www.cups.org/str.php?L2931
Version: 1.3.8





More information about the cups-devel mailing list