foomatic-rip crashes if media is blank
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups-filters (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
How to reproduce:
Submit a job with media= to a printer that has foomatic-rip as one of its filters.
lp -d myprinter -o media= /tmp/page.pdf
This will happen:
D [Job 977] Pondering option 'media='
D [Job 977] mf: filter/
D [Job 977] PID 12709 (/usr/lib/
I know it is bad idea to submit a job with blank media=, but hey, some bad software submit it like that and I'd rather have it printed in wrong size than have foomatic crashed on the job.
tested with cups-filters 1.0.69 and CUPS 1.7.5 on Ubuntu 12.04
Whole log of a job:
I [Job 977] Adding start banner page "none".
I [Job 977] Queued on "mf" by "korobkin".
D [Job 977] Auto-typing file...
D [Job 977] Request file type is application/pdf.
I [Job 977] File of type application/pdf queued by "korobkin".
I [Job 977] Adding end banner page "none".
D [Job 977] time-at-
D [Job 977] 2 filters for job:
D [Job 977] pdftopdf (application/pdf to application/
D [Job 977] foomatic-rip (application/
D [Job 977] job-sheets=
D [Job 977] argv[0]="mf"
D [Job 977] argv[1]="977"
D [Job 977] argv[2]="korobkin"
D [Job 977] argv[3]="page.pdf"
D [Job 977] argv[4]="1"
D [Job 977] argv[5]
D [Job 977] argv[6]
D [Job 977] envp[0]
D [Job 977] envp[1]
D [Job 977] envp[2]
D [Job 977] envp[3]
D [Job 977] envp[4]
D [Job 977] envp[5]
D [Job 977] envp[6]
D [Job 977] envp[7]
D [Job 977] envp[8]
D [Job 977] envp[9]
D [Job 977] envp[10]="<email address hidden>"
D [Job 977] envp[11]
D [Job 977] envp[12]
D [Job 977] envp[13]
D [Job 977] envp[14]
D [Job 977] envp[15]
D [Job 977] envp[16]
D [Job 977] envp[17]
D [Job 977] envp[18]
D [Job 977] envp[19]
D [Job 977] envp[20]
D [Job 977] envp[21]
D [Job 977] envp[22]
D [Job 977] envp[23]
D [Job 977] envp[24]
D [Job 977] envp[25]
D [Job 977] envp[26]
D [Job 977] envp[27]
D [Job 977] envp[28]
D [Job 977] envp[29]
D [Job 977] envp[30]
I [Job 977] Started filter /usr/lib/
I [Job 977] Started filter /usr/lib/
I [Job 977] Started backend /usr/lib/
D [Job 977] Calling FindDeviceById(
D [Job 977] Failed to send: org.freedesktop
D [Job 977] Failed to get find device cups-mf
D [Job 977] 'CM Color Calibration' Mode in SPOOLER-LESS: Off
D [Job 977] Getting input from file
D [Job 977] foomatic-rip version 1.0.69 running...
D [Job 977] Parsing PPD file ...
D [Job 977] Added option ColorSpace
D [Job 977] Added option LargeCapacityTray
D [Job 977] Added option OptionTray
D [Job 977] Added option ShiftTray
D [Job 977] Added option InnerTray2
D [Job 977] Added option ExternalTray
D [Job 977] Added option Finisher
D [Job 977] Added option ColorModel
D [Job 977] Added option Resolution
D [Job 977] Added option Duplex
D [Job 977] Added option Collate
D [Job 977] Added option PageSize
D [Job 977] STATE: +connecting-
D [Job 977] Added option ImageableArea
D [Job 977] Looking up "mf.wat"...
D [Job 977] Added option PaperDimension
D [Job 977] Added option InputSlot
D [Job 977] Added option RIPrintMode
D [Job 977] Added option RPSBitsPerPixel
D [Job 977] Added option MediaType
D [Job 977] Added option OutputBin
D [Job 977] Added option StapleLocation
D [Job 977] backendWaitLoop
D [Job 977] Added option RIPunch
D [Job 977] Added option JobHeader
D [Job 977] Added option JobType
D [Job 977] Added option Pin1
D [Job 977] Added option Pin2
D [Job 977] Added option Pin3
D [Job 977] Added option Pin4
D [Job 977] Added option Font
D [Job 977] Parameter Summary
D [Job 977] -----------------
D [Job 977] Spooler: cups
D [Job 977] Printer: mf
D [Job 977] Shell: /bin/bash
D [Job 977] PPD file: /etc/cups/
D [Job 977] ATTR file:
D [Job 977] Printer model: Ricoh Aficio MP C3003 PDF cups-team recommended
D [Job 977] Job title: page.pdf
D [Job 977] File(s) to be printed:
D [Job 977] <STDIN>
D [Job 977] Ghostscript extra search path ('GS_LIB'): /usr/share/
D [Job 977] Printing system options:
D [Job 977] Pondering option 'finishings=3'
D [Job 977] Unknown option finishings=3.
D [Job 977] Pondering option 'media='
D [Job 977] mf: filter/
D [Job 977] PID 12708 (/usr/lib/
D [Job 977] PID 12709 (/usr/lib/
D [Job 977] PID 12710 (/usr/lib/
E [Job 977] Job stopped due to filter errors; please consult the error_log file for details.
D [Job 977] Unloading...
Fixed in the upstream BZR repository of cups-filters. Fix will be in the cups-filters 1.0.72 package.