New PPD confuses cups-driverd and admin.cgi

Georger Araujo georger_br at yahoo.com.br
Thu Jun 19 10:23:08 PDT 2008


Hi guys,
I have CUPS 1.2.4 running on CentOS 5.1 (RHEL clone), and I think I found a bug. For the record, I did my homework: it looks VERY similar to the one described in http://www.cups.org/newsgroups.php?gcups.general+v:26123

I have two HP printers whose drivers came bundled with CUPS, and they work fine. I bought a new Samsung printer (ML-3561ND) and then my problems started. I copied the PPD from the XP driver in the installation CD-ROM, ran cupstestppd, and corrected several glitches. I then copied the fixed PPD to /usr/share/cups/model where I have several gzipped PPD files, and restarted CUPS.
Now when I try to add a printer through the web administration tool, everything goes fine until I reach the "Make/Manufacturer for <PRINTER NAME>" screen of the "Add Printer" wizard. I click "Samsung" (or HP or any other manufacturer, for that matter), then "Continue", and then everything hangs. I waited a few minutes and clicked "Jobs". This showed up in my /var/log/cups/error_log file:

I [18/Jun/2008:14:08:12 -0300] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=24499)
I [18/Jun/2008:14:08:12 -0300] Started "/usr/lib/cups/daemon/cups-driverd" (pid=24500)
I [18/Jun/2008:14:08:12 -0300] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=24501)
E [18/Jun/2008:14:08:14 -0300] cupsdCloseClient: Error in the push function.
E [18/Jun/2008:14:08:14 -0300] PID 24499 (/usr/lib/cups/cgi-bin/admin.cgi) crashed on signal 9!
I [18/Jun/2008:14:08:14 -0300] Hint: Try setting the LogLevel to "debug" to find out more.

I turned on debuggind and found this in the error log AFTER I click "Jobs" (several minutes after choosing HP and clicking Continue):

D [18/Jun/2008:18:00:31 -0300] cupsdReadClient: 16 GET /images/button-show-all.gif HTTP/1.1
D [18/Jun/2008:18:00:31 -0300] cupsdReadClient: 16 Browser asked for language "pt-br.utf-8"...
D [18/Jun/2008:18:00:31 -0300] cupsdAuthorize: username="root"
D [18/Jun/2008:18:00:31 -0300] write_file: 16 file=15
D [18/Jun/2008:18:00:32 -0300] cupsdUpdateCUPSBrowse: Refused 185 bytes from 10.91.24.240
D [18/Jun/2008:18:00:33 -0300] cupsdUpdateCUPSBrowse: Refused 182 bytes from 10.91.24.240
D [18/Jun/2008:18:00:33 -0300] [cups-driverd] Added dynamic PPD "foomatic:HP-DeskJet_695C-hpijs.ppd"...
...
(LOTS of lines of HP printers...)
...
D [18/Jun/2008:18:00:34 -0300] [cups-driverd] Sending foomatic:HP-PSC_2500-hpijs.ppd (HP PSC 2500 Foomatic/hpijs (recommended))...
D [18/Jun/2008:18:00:34 -0300] cupsdCloseClient: 9
E [18/Jun/2008:18:00:34 -0300] cupsdCloseClient: Error in the push function.
E [18/Jun/2008:18:00:34 -0300] PID 15113 (/usr/lib/cups/cgi-bin/admin.cgi) crashed on signal 9!
D [18/Jun/2008:18:00:34 -0300] cupsdCloseClient: 9
D [18/Jun/2008:18:00:34 -0300] cupsdCloseClient: 13

This used to work fine UNTIL I copied the fresh new PPD to /usr/share/cups/model. I tried deleting the new PPD, then I deleted /var/cache/cups/ppds.dat, to no avail. CUPS is running fine with the two old HP printers, but I can't add the new Samsung printer.

Any clues? Regards,

Georger




More information about the cups mailing list