[bug-pcl] Re: bug-pcl post from soletan@toxa.de requires approval

Stefan Kemper stefan.kemper at artifex.com
Sun May 22 09:32:04 PDT 2005


Hi Thomas,

Thanks, for the detailed bug report.  Attached patch should fix the 
pcl->pswrite path, seems your the first to want to convert pcl to 
postscript with this release. 

Best Regards,
Stefan

>
> Subject:
> PCL5e with bitmap images causes segmentation fault in GhostPCL
> From:
> Thomas Urban <soletan at toxa.de>
> Date:
> Sat, 21 May 2005 16:53:48 +0200
> To:
> bug-pcl at ghostscript.com
>
> To:
> bug-pcl at ghostscript.com
>
>
> Hi,
>
>
> after analysing for several days I think there's a bug in GhostPCL 
> incl. 1.41.
>
> I have prepared a page at
>
> http://www.toxa.de/ghostpcl/
>
> to provide you with backtraces from gdb as well as straces and debug 
> output from pcl6 binary itself.
>
>
> Symptoms:
>
> On a SuSE-linux based server with CUPS installed there is a backend 
> which tries to convert enqueued PCL jobs to PS for analysis. These 
> jobs are created on Win32 system using HP PCL5e printer drivers.
>
> As long as there is only text or vector-based illustrations and tables 
> in it a job gets converted without any problem. As soon as the 
> document contains at least one bitmap image the call to pcl6 binary 
> for conversion fails on SIGSEGV.
>
> We tested this with several documents. First we've been working with 
> 1.38, then upgraded to a freshly downloaded 1.41, but the pcl6 was 
> still crashing.
>
>
> Today I recompiled the source tree (downloaded freshly again) on a 
> different host using SuSE 9.0. Then I tried to convert the job given 
> as an example to you on that web page. Again pcl6 crashed at the same 
> point.
>
>
>
> The web page includes:
>
> 1) the job used to test on the second host. other job files are 
> available as well, but I think this single file is okay for testing, 
> isn't it?
>
> 2) two logs of gdb session observing the crash with backtrace and 
> memory dumps of the section the device handle is located in.
>
> 3) command line, output and strace used on a debuggable version of 
> pcl6 compiled in debug mode as given in docs
>
> 4) finally there are two files with detailed information on used gcc 
> and libraries linked by pcl6
>
>
>
> Well all these files come from the server we initially tried to 
> analyse the crash on.
>
>
> I hope, these information can help you to help me out of this situation.
>
>
>
> Thanks in advance and
> with Best Regards,
>
>
> Thomas Urban
>
>
> ------------------------------------------------------------------------
>
> Subject:
> confirm 18f60eb201085893645a39e6f8ad35b07ca0f683
> From:
> bug-pcl-request at ghostscript.com
>
>
>If you reply to this message, keeping the Subject: header intact,
>Mailman will discard the held message.  Do this if the message is
>spam.  If you reply to this message and include an Approved: header
>with the list password in it, the message will be approved for posting
>to the list.  The Approved: header can also appear in the first line
>of the body of the reply.
>  
>

-------------- next part --------------
? toxa.patch
Index: gdevbbox.c
===================================================================
RCS file: /home/henrys/cvsroot2/ghostpcl/gs/src/gdevbbox.c,v
retrieving revision 1.28
diff -r1.28 gdevbbox.c
254c254
< gx_device_bbox_init(gx_device_bbox * dev, gx_device * target)
---
> gx_device_bbox_init(gx_device_bbox *dev, gx_device *target, gs_memory_t *mem)
257c257
< 		   (target ? target->memory : NULL), true);
---
> 		   (target ? target->memory : mem), true);
1178c1178
< 	gx_device_bbox_init(bbcdev, target);
---
> 	gx_device_bbox_init(bbcdev, target, memory);
Index: gdevbbox.h
===================================================================
RCS file: /home/henrys/cvsroot2/ghostpcl/gs/src/gdevbbox.h,v
retrieving revision 1.12
diff -r1.12 gdevbbox.h
124c124
< void gx_device_bbox_init(gx_device_bbox * dev, gx_device * target);
---
> void gx_device_bbox_init(gx_device_bbox *dev, gx_device *target, gs_memory_t *mem);
Index: gdevvec.c
===================================================================
RCS file: /home/henrys/cvsroot2/ghostpcl/gs/src/gdevvec.c,v
retrieving revision 1.15
diff -r1.15 gdevvec.c
315c315
< 	gx_device_bbox_init(vdev->bbox_device, NULL);
---
> 	gx_device_bbox_init(vdev->bbox_device, NULL, vdev->memory);
Index: gslib.c
===================================================================
RCS file: /home/henrys/cvsroot2/ghostpcl/gs/src/gslib.c,v
retrieving revision 1.13
diff -r1.13 gslib.c
132c132
<     gx_device_bbox_init(bbdev, dev);
---
>     gx_device_bbox_init(bbdev, dev, mem);
Index: gximag3x.c
===================================================================
RCS file: /home/henrys/cvsroot2/ghostpcl/gs/src/gximag3x.c,v
retrieving revision 1.4
diff -r1.4 gximag3x.c
550c550
<     gx_device_bbox_init(bbdev, dev);
---
>     gx_device_bbox_init(bbdev, dev, mem);


More information about the bug-pcl mailing list