Samsung CLP-300 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Another ghostscript issue? [Mandriva 2010.1]
Posted by: krefson ()
Date: November 14, 2010 10:57AM

Several PDF files fail to print on my Samsung CLP-300. After a little
experimentation, it appears that there is a segmentation fault while
executing ghostscript. An extract from the system log:

Nov 14 14:49:53 HAL foo2qpdl-wrapper: foo2qpdl-wrapper -z0 -c -r1200x600 -p2 -m0 -s1 -d1 -C10 -Gsamclp300-0.icm
Nov 14 14:49:53 HAL foo2qpdl-wrapper: foo2zjs-icc2ps -o /usr/share/foo2qpdl/icm/samclp300-0.icm -t0 > /tmp/icc30739.crd.ps
Nov 14 14:49:55 HAL kernel: gs[30756]: segfault at 30b32 ip 00002b29362a760d sp 00007fff7c217250 error 4 in libgs.so.8.71[2b2935ef9000+497000]
Nov 14 14:49:55 HAL foo2qpdl-wrapper: gs -sPAPERSIZE=a4 -g9920x7016 -r1200x600 -sDEVICE=bitcmyk -dCOLORSCREEN -dMaxBitmap=500000000 /tmp/icc30739.usecie.ps /tmp/icc30739.crd.ps /tmp/icc30739.selcrd.ps
Nov 14 14:49:55 HAL foo2qpdl-wrapper: foo2qpdl -r1200x600 -g9920x7016 -p2 -m0 -n1 -d1 -s1 -z0 -c -u 150x100 -l 150x100 -B -A

I have tried this replacing ghostscript 8.71 with 8.64 and 9.00, and the result is the same in each case - a segfault in the shared library.

System is Mandriva 2010.1 with foo2qpdl installed from source.

Example to demonstrate the error:
PDF form

Can anyone confirm whether this is a ghostscript bug? Or iss foo2qpdl
responsible.

Keith Refson



Edited 1 time(s). Last edit at 11/14/2010 12:06PM by rickrich.

Options: ReplyQuote
Re: Another ghostscript issue?
Posted by: rickrich ()
Date: November 14, 2010 11:58AM

Works fine on Fedora 13.

$ rpm -q ghostscript
ghostscript-8.71-16.fc13.i686

$ foo2qpdl-wrapper -z0 -c -r1200x600 -p2 -m0 -s1 -d1 -C10 -Gsamclp300-0.icm 64-8.pdf > xxxpdf

$ ll xxxpdf 
-rw-rw-r-- 1 rick rick 2473697 Nov 14 10:51 xxxpdf

$ pdf2ps 64-8.pdf 

$ foo2qpdl-wrapper -z0 -c -r1200x600 -p2 -m0 -s1 -d1 -C10 -Gsamclp300-0.icm 64-8.ps > xxxps

$ ll xxxps
-rw-rw-r-- 1 rick rick 2352075 Nov 14 10:52 xxxps

$ qpdldecode -d xxx xxxps | tail
RECTYPE 0xc     len=262960(0x40330)
                stripe=1, WB=1216(0x4c0), H=128(0x80), plane=4, comp=0x13,
                len=262948(0x40324)
                magic=0x39abcdef, len=262912(0x40300), unk=2000000,0,0,0,0,0,
                end=1, ver=3, checksum WANT=0x1fd6c41 GOT=0x1fd6c41
                Data: 02 28 1a 95 5e 7d e2 00 b1 f0 c7 ef fc a3 f3 13 ...
RECTYPE 0x1     len=3
                copies=1
RECTYPE 0x9     len=0
\033%-12345X

$ ll xxx-0*
-rw-rw-r-- 1 rick rick 8288277 Nov 14 10:55 xxx-01-1.pbm
-rw-rw-r-- 1 rick rick 8288277 Nov 14 10:55 xxx-01-2.pbm
-rw-rw-r-- 1 rick rick 8288277 Nov 14 10:55 xxx-01-3.pbm
-rw-rw-r-- 1 rick rick 8288277 Nov 14 10:55 xxx-01-4.pbm
-rw-rw-r-- 1 rick rick 8288277 Nov 14 10:55 xxx-02-1.pbm
-rw-rw-r-- 1 rick rick 8288277 Nov 14 10:55 xxx-02-2.pbm
-rw-rw-r-- 1 rick rick 8288277 Nov 14 10:55 xxx-02-3.pbm
-rw-rw-r-- 1 rick rick 8288277 Nov 14 10:55 xxx-02-4.pbm

$ eog xxx-*
{images viewed alright}



Edited 1 time(s). Last edit at 11/14/2010 12:07PM by rickrich.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.