Bug 693447

Summary: Non-deterministic tiffsep output under certain circumstances
Product: Ghostscript Reporter: Jason Giglio <gigs>
Component: Other DriverAssignee: Michael Vrhel <michael.vrhel>
Status: RESOLVED FIXED    
Severity: normal CC: alex
Priority: P4    
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

Description Jason Giglio 2012-11-13 20:43:57 UTC
Created attachment 9082 [details]
Test PDF 1

When outputting the attached files which are the same other than colorant naming, sometimes there are regressions in the outputted tiffs and sometimes there are not.  It appears to be a non-deterministic bug of some sort.

gsc -dNOPAUSE -dBATCH -sDEVICE=tiffsep -sOutputFile=/tmp/test1/files -f original.pdf
gsc -dNOPAUSE -dBATCH -sDEVICE=tiffsep -sOutputFile=/tmp/test2/files -f renamed.pdf


Then for each separation and the RGB:

tiffcmp /tmp/test1/files  /tmp/test2/files | grep -v "DateTime"
Comment 1 Jason Giglio 2012-11-13 20:44:14 UTC
Created attachment 9083 [details]
Test PDF 2
Comment 2 Alex Cherepanov 2012-11-14 04:59:12 UTC
Valgrind reports many warnings starting with:

Conditional jump or move depends on uninitialised value(s)
gsicc_get_link (gsicc_cache.c:590)
gx_concretize_ICC (gsicc.c:524)
gx_concretize_Separation (gscsepr.c:389)
gx_default_remap_color (gxcmap.c:600)
gx_remap_Separation (gscsepr.c:302)
capture_spot_equivalent_cmyk_colors (gsequivc.c:515)
update_Separation_spot_equivalent_cmyk_colors (gsequivc.c:145)
update_spot_equivalent_cmyk_colors (gsequivc.c:311)
tiffsep_update_spot_equivalent_colors (gdevtsep.c:850)
gx_install_Separation (gscsepr.c:136)
gs_setcolorspace_only (gscolor2.c:46)
gs_setcolorspace (gscolor2.c:64)
Comment 3 Michael Vrhel 2019-02-01 21:52:02 UTC
This no longer shows any valgrind issues.