Bug 691638

Summary: Regression: seg fault starting with r11723
Product: GhostPCL Reporter: Marcos H. Woehrmann <marcos.woehrmann>
Component: PCL interpreterAssignee: Robin Watts <robin.watts>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P1    
Version: master   
Hardware: PC   
OS: All   
Customer: Word Size: ---

Description Marcos H. Woehrmann 2010-09-22 21:22:55 UTC
Starting with r11723 the following command line seg faults:

./main/obj/pcl6 -sOutputFile=test.pcl -sDEVICE=ppmraw -r600 -dNOPAUSE -dBATCH ./mlc0495.pcl
Comment 2 Robin Watts 2010-10-05 14:05:22 UTC
It's not entirely clear how the change I made can have caused this, but it does indeed appear to have done so.

Valgrind shows only 1 uninitialised read, that I will open details of in a new bug.

My working hypothesis is that if I set the padding bits to 0, the compression given for the bitmap is better, so the clist ends up a different size, and this triggers an unrelated bug elsewhere. I'll test this shortly.
Comment 3 Robin Watts 2010-10-05 17:28:51 UTC
I've opened a bug (691665) with the valgrind problem and a workaround.

Oddly, and for no reason I can understand, the workaround for that bug does seem to solve this SEGV too.

On 64bit linux the file now runs to completion with no errors. On 32bit linux it exits with interpreter error code -12.

I'll wait to hear what Henry says about 691665 before continuing.
Comment 4 Robin Watts 2010-11-23 12:16:27 UTC
Fixed by the fix for bug 691665.