[Foo2zjs-maintainer] Bug#548334: Bug#548334: foo2zjs: Segmentation fault when printing in color

Christoph Haas haas at debian.org
Mon Sep 28 09:07:30 UTC 2009


Michael,

thanks for your quick response.

Michael Koch schrieb:
>> D [25/Sep/2009:16:35:54 +0200] [Job 110] cat: Schreibfehler:
>> Daten<C3><BC>bergabe unterbrochen (broken pipe)
>> D [25/Sep/2009:16:35:54 +0200] [Job 110] Segmentation fault
>> D [25/Sep/2009:16:35:54 +0200] [Job 110] sed: Kann 65 Elemente nicht auf
>> stdout schreiben: Daten<C3><BC>bergabe unterbrochen (broken pipe)
> 
> This looks like the culprit.
> 
>> I'm not sure how to further debug it. I have tried to install the
>> Lenny versions of "ghostscript" and "foo2zjs" to no avail.
>>
>> I'm also not sure if this bug is connected to #534414. The package version
>> of ghostscript I have installed is "8.70~dfsg-2" and according to the
>> bug report the issue was resolved in 8.64 already.
> 
> I don't think this bug is connected to #534414. I think its a bug in
> /usr/bin/foo2hp2600-wrapper. This is a shell script. Can you try to
> to track the bug down in this file a bit? There are not too many places
> using cat and sed.

I have set the /usr/bin/foo2hp2600-wrapper script to "-x" in the shebang
line to see what commands are run:

D [28/Sep/2009:10:54:14 +0200] [Job 118] + USER=
D [28/Sep/2009:10:54:14 +0200] [Job 118] + GS=gs -q -dBATCH -dSAFER -dQUIET
-dNOPAUSE
D [28/Sep/2009:10:54:14 +0200] [Job 118] + foo2zjs-pstops -n -c -w
D [28/Sep/2009:10:54:14 +0200] [Job 118] + cat
D [28/Sep/2009:10:54:14 +0200] [Job 118] + gs -q -dBATCH -dSAFER -dQUIET
-dNOPAUSE -sPAPERSIZE=letter -g4960x7015 -r600x600 -sDEVICE=bitcmyk
-dCOLORSCREEN -dMaxBitmap=500000000 -sOutputFile=|cat 1>&3
/tmp/icc.usecie.ps -_
D [28/Sep/2009:10:54:14 +0200] [Job 118] + foo2hp -r600x600 -g4960x7015 -p1
-m1 -n1 -d1 -s7 -c -b1 -u 1x80 -l 1x80 -J  -U  -B -A -D1
D [28/Sep/2009:10:54:15 +0200] [Job 118] cat: Schreibfehler:
Daten<C3><BC>bergabe unterbrochen (broken pipe)
D [28/Sep/2009:10:54:15 +0200] [Job 118] Segmentation fault
D [28/Sep/2009:10:54:15 +0200] [Job 118] sed: Kann 65 Elemente nicht auf
stdout schreiben: Daten<C3><BC>bergabe unterbrochen (broken pipe)
D [28/Sep/2009:10:54:15 +0200] [Job 118] + [ -x /usr/bin/logger ]
D [28/Sep/2009:10:54:15 +0200] [Job 118] + logger -t foo2hp2600-wrapper -p
lpr.info -- gs -sPAPERSIZE=letter -g4960x7015 -r600x600 -sDEVICE=bitcmyk
-dCOLORSCREEN -dMaxBitmap=500000000  /tmp/icc.usecie.ps
D [28/Sep/2009:10:54:15 +0200] [Job 118] + logger -t foo2hp2600-wrapper -p
lpr.info -- foo2hp -r600x600 -g4960x7015 -p1 -m1 -n1 -d1 -s7 -c -b1 -u 1x80
-l 1x80   -B -A
D [28/Sep/2009:10:54:15 +0200] [Job 118] + [ 1 -eq 0 ]
D [28/Sep/2009:10:54:15 +0200] [Job 118] + exit 0
D [28/Sep/2009:10:54:15 +0200] [Job 118] renderer exited with status 0
D [28/Sep/2009:10:54:15 +0200] [Job 118] kid4 exited with status 0
D [28/Sep/2009:10:54:15 +0200] [Job 118] kid3 finished
D [28/Sep/2009:10:54:15 +0200] [Job 118] Read 72 bytes of print data...
D [28/Sep/2009:10:54:15 +0200] [Job 118] Wrote 72 bytes of print data...

Sorry for the german output. Not sure how I can set it to english for
debugging. Anyway it appears like Ghostscript (gs) is called (although I
wonder why the "letter" format is chosen - I'm using A4 everywhere in my
settings). And gs pipes to foo2hp. And somehow during this piping something
unexpected is happening.

Strangely I can print *some* documents. I have created a new inkscape
drawing  and put the Debian logo and a few colored circles into it. That
printed well. However my hardly more complicated image (I wanted to print a
sign for our office door with our company logo and a little text on it)
didn't print.

Any ideas? Thanks!

 Christoph





More information about the Foo2zjs-maintainer mailing list