** Description changed:

  Submitting PDF jobs from an OSX 10.7.4 laptop to a Linux desktop running
  12.04 amd64 over CUPS/IPP, with USB-attached HP Laserjet 1020.
  
  Job goes into "stopped" state. /var/log/cups/error.log shows:
  
  ...
  D [30/Jun/2012:21:21:22 +0100] [Job 65] 
================================================
- D [30/Jun/2012:21:21:22 +0100] [Job 65] 
+ D [30/Jun/2012:21:21:22 +0100] [Job 65]
  D [30/Jun/2012:21:21:22 +0100] [Job 65] File: <STDIN>
- D [30/Jun/2012:21:21:22 +0100] [Job 65] 
+ D [30/Jun/2012:21:21:22 +0100] [Job 65]
  D [30/Jun/2012:21:21:22 +0100] [Job 65] 
================================================
- D [30/Jun/2012:21:21:22 +0100] [Job 65] 
+ D [30/Jun/2012:21:21:22 +0100] [Job 65]
  D [30/Jun/2012:21:21:22 +0100] [Job 65] Filetype: PDF
  D [30/Jun/2012:21:21:22 +0100] [Job 65] Neither PDF renderer command line nor 
Ghostscript-based renderer command line found
  D [30/Jun/2012:21:21:22 +0100] [Job 65] Driver does not understand PDF input, 
converting to PostScript
  D [30/Jun/2012:21:21:22 +0100] [Job 65] Storing temporary files in 
/var/spool/cups/tmp
  D [30/Jun/2012:21:21:22 +0100] [Job 65] Starting process "pdf-to-ps" 
(generation 1)
  D [30/Jun/2012:21:21:22 +0100] [Job 65] /bin/bash: -c: line 0: unexpected EOF 
while looking for matching `''
  D [30/Jun/2012:21:21:22 +0100] [Job 65] /bin/bash: -c: line 1: syntax error: 
unexpected end of file
  D [30/Jun/2012:21:21:22 +0100] [Job 65] Cannot process "<STDIN>": Unknown 
filetype.
  D [30/Jun/2012:21:21:22 +0100] [Job 65] pdf-to-ps exited with status 1
  D [30/Jun/2012:21:21:22 +0100] [Job 65] Process is dying with "Could not 
print file <STDIN>
  D [30/Jun/2012:21:21:22 +0100] [Job 65] ", exit stat 2
  D [30/Jun/2012:21:21:22 +0100] [Job 65] Cleaning up...
  D [30/Jun/2012:21:21:22 +0100] [Job 65] prnt/backend/hp.c 839: ERROR: null 
print job total=0
  D [30/Jun/2012:21:21:22 +0100] [Job 65] End of messages
  D [30/Jun/2012:21:21:22 +0100] [Job 65] printer-state=3(idle)
  D [30/Jun/2012:21:21:22 +0100] [Job 65] 
printer-state-message="/usr/lib/cups/filter/foomatic-rip failed"
  D [30/Jun/2012:21:21:22 +0100] [Job 65] printer-state-reasons=none
  E [30/Jun/2012:21:26:29 +0100] [Job 65] Stopping unresponsive job!
  
  I refer especially to the log line "/bin/bash: -c: line 0: unexpected
  EOF while looking for matching `''
  
+ [Impact] Printing from Mac OS X clients to all printers with foo2zjs
+ drivers ("Foomatic/foo2...") and with Foomatic-based PostScript drivers
+ ("Foomatic/Postscript") does not work. Also local printing to printers
+ with these drivers will not work in some cases.
+ 
+ [Test Case] To reproduce without having the appropriate printer (foo2zjs
+ must be installed):
+ 
+ cupsctl FileDevice=yes
+ cupsctl LogLevel=debug
+ lpadmin -p test -E -v file:/tmp/printout -m 
foo2zjs:0/ppd/foo2zjs/Samsung-CLP-610.ppd
+ lp -d test -o testoption=`perl -e 'for($i = 0; $i < 200; $i ++) { $a .= 
sprintf ("%10d", $i) }; $a =~ s/ /-/g; print "$a\n"; '` ~/.bashrc
+ lpstat -o
+ 
+ Note that the Perl magic generates a string which is 2000 characters
+ long. This will be inserted as value for the option "testoption".
+ foomatic-rip of Precise will error out as shown above. The job will hang
+ in the queue.
+ 
+ After installing the proposed package and reprinting the job (via the
+ job viewer) or sending the job again one will see that these jobs get
+ printed (job gets removed from the queue, /tmp/printout will contain the
+ print data).
+ 
+ [Regression Potential] The two fix in the C code is trivial, only the
+ maximum length for a string will be raised, so regressions cannot be
+ caused.
+ 
  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: foomatic-filters 4.0.16-0ubuntu0.1
  ProcVersionSignature: Ubuntu 3.2.0-25.40-generic 3.2.18
  Uname: Linux 3.2.0-25-generic x86_64
  ApportVersion: 2.0.1-0ubuntu8
  Architecture: amd64
  Date: Sat Jun 30 21:49:08 2012
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 
(20120425)
  Lpstat: device for HP-LaserJet-1020: hp:/usb/HP_LaserJet_1020?serial=JL3FLCA
  MachineType: Dell Inc. Inspiron 400
  Papersize: a4
  PpdFiles: HP-LaserJet-1020: HP LaserJet 1020 Foomatic/foo2zjs-z1 (recommended)
  ProcEnviron:
-  LANGUAGE=en_GB:en
-  TERM=xterm
-  PATH=(custom, user)
-  LANG=en_GB.UTF-8
-  SHELL=/bin/bash
+  LANGUAGE=en_GB:en
+  TERM=xterm
+  PATH=(custom, user)
+  LANG=en_GB.UTF-8
+  SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-25-generic 
root=UUID=81f2a233-7bda-4350-902f-2e7fcdad5f94 ro quiet splash vt.handoff=7
  SourcePackage: foomatic-filters
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 09/04/2009
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: A01
  dmi.board.name: 03D1TV
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A00
  dmi.chassis.type: 3
  dmi.chassis.vendor: Dell Inc.
  dmi.chassis.version: Not Specified
  dmi.modalias: 
dmi:bvnDellInc.:bvrA01:bd09/04/2009:svnDellInc.:pnInspiron400:pvr00:rvnDellInc.:rn03D1TV:rvrA00:cvnDellInc.:ct3:cvrNotSpecified:
  dmi.product.name: Inspiron 400
  dmi.product.version: 00
  dmi.sys.vendor: Dell Inc.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1019662

Title:
  foomatic fails when printing from OSX client, bash error [arg length
  ???]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/foomatic-filters/+bug/1019662/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to