Wednesday, May 20, 2009

Cupsd crash on Debian 5 (and certain Ubuntu versions)

We found an interesting issue today: Cups crashes once per week or more frequently with libc error 4.

We had a duplicate printers.conf entry. If printers.conf has a duplicate entry, cupsd cannot handle a HUP. It crashes. You can test this by duplicating a printer stanza and then either running /etc/init.d/cups force-reload or sending a HUP to the cupsd process.