imagetopdf crashes with cupsfilters

Bug #973564 reported by brian_p
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups-filters (Ubuntu)
Fix Released
High
Unassigned

Bug Description

brian@ubuntu1204:~$ /usr/sbin/cupsfilter /usr/share/zenity/zenity-calendar.png > x
DEBUG: argv[0]="cupsfilter"
DEBUG: argv[1]="1"
DEBUG: argv[2]="brian"
DEBUG: argv[3]="zenity-calendar.png"
DEBUG: argv[4]="1"
DEBUG: argv[5]=""
DEBUG: argv[6]="/usr/share/zenity/zenity-calendar.png"
DEBUG: envp[0]="<CFProcessPath>"
DEBUG: envp[1]="CONTENT_TYPE=image/png"
DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[6]="LANG=en_GB.UTF8"
DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[8]="PPD=/usr/share/cups/model/laserjet.ppd"
DEBUG: envp[9]="PRINTER_INFO=cupsfilter"
DEBUG: envp[10]="PRINTER_LOCATION=Unknown"
DEBUG: envp[11]="PRINTER=cupsfilter"
DEBUG: envp[12]="RIP_MAX_CACHE=128m"
DEBUG: envp[13]="USER=brian"
INFO: imagetopdf (PID 16949) started.
DEBUG: PNG image: 48x48x8, color_type=6 (RGB+ALPHA)
ERROR: imagetopdf (PID 16949) crashed on signal 11

Also:

brian@ubuntu1204:~$ /usr/lib/cups/filter/imagetopdf 1 1 1 1 '' /usr/share/zenity/zenity-calendar.png
DEBUG: PNG image: 48x48x8, color_type=6 (RGB+ALPHA)
Segmentation fault (core dumped)

This happens with the half-dozen image files I have tried. It did not happen with the cups-filters package prior
to this one.

Regards,

Brian.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cups-filters 1.0.11-1
ProcVersionSignature: Ubuntu 3.2.0-17.27-generic-pae 3.2.6
Uname: Linux 3.2.0-17-generic-pae i686
ApportVersion: 2.0-0ubuntu4
Architecture: i386
Date: Wed Apr 4 17:37:18 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120301)
Lpstat: device for qq: socket://192.168.7.200:9100
MachineType: Dell Inc. Dell DXP061
Papersize: a4
PpdFiles: qq: Xerox Phaser 3140, 2.0.0
ProcEnviron:
 LANGUAGE=en_GB:en
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-17-generic-pae root=/dev/sda8
SourcePackage: cups-filters
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/24/2007
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 2.5.0
dmi.board.name: 0CT017
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 7
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr2.5.0:bd05/24/2007:svnDellInc.:pnDellDXP061:pvr:rvnDellInc.:rn0CT017:rvr:cvnDellInc.:ct7:cvr:
dmi.product.name: Dell DXP061
dmi.sys.vendor: Dell Inc.

Revision history for this message
brian_p (claremont102) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Otani-san, the cups-filters package used here contains your recent bigger patches on the PDF filters to update the code copied from Poppler. It seems that that has introduced a segmentation fault in imagetopdf. Can you check and fix that? Thanks.

Changed in cups-filters (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-12.04
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Otani-san, sorry, imagetopdf was not affected by your patch. Your patch is OK so far.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have found the cause of the segfault. A fix is on its way.

Note that the problem does not occur in the normal print work flow, as there is always a correct PPD file defined. Your manual calls do not define a PPD file and this makes the filter crash.

Changed in cups-filters (Ubuntu):
status: New → In Progress
Revision history for this message
brian_p (claremont102) wrote :

Considering I had spent an hour or two on this earlier today it was very remiss of me not to have
tested with a PPD file defined in both command lines. Had I done so maybe I would not have
reported a bug. I find it convenient to use cupsfilter to batch process text and image files so let
the failure of imagetopdf cloud my judgement.

Thank you.

Brian.

Changed in cups-filters (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups-filters - 1.0.12-1

---------------
cups-filters (1.0.12-1) unstable; urgency=low

  * New upstream release
     - Fixed crash of imagetopdf filter when it is called manually
       without supplying a valid PPD file (LP: #973564).
 -- Martin Pitt <email address hidden> Thu, 05 Apr 2012 13:35:24 +0200

Changed in cups-filters (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.