[argyllcms] Colprof segmentation fault if -S"Profile.icc" is incorrect

  • From: "Nikolay Pokhilchenko" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "nikolay_po" for DMARC)
  • To: argyllcms <argyllcms@xxxxxxxxxxxxx>
  • Date: Fri, 10 May 2019 23:55:05 +0300

Hello.
A feature request for colprof -S parameter, an input profile check with 
diagnostic message if the profile is incorrect.

While profiling a printer, I intended to use a gamut file as a mapping source 
instead of usual ICCv2 profile. I tried an -S parameter with a *.gam file by a 
mistake. Colpof failed after A2B table creation and setting B2A lookup.

SMP Debian 4.9.168-1 (2019-04-12) x86_64 GNU/Linux, the colprof was built from 
sources downloaded from  https://www.argyllcms.com/Argyll_dev_src.zip 04.05.2019

/Argyll_V2.1_build_20190504/bin/colprof -v2 -al -qh -r0.707 -cmd -dpp 
-S'Intersect_CMYK+RGB.gam' -P ProfileBaseName
...
Done A to B table creation
Setting up B to A table lookup
Segmentation fault

After investigating a cause, I found that colprof needs -g parameter for *.gam 
file together with -S parameter and source ICC profile. So my usage of gamut 
file with -S parameter was incorrect. Have spend some time to debug my colprof 
command line.
For such case the check for input profile correctness is desirable. The 
segfault is not enough informative.

Thank You.

Николай Похильченко

Other related posts:

  • » [argyllcms] Colprof segmentation fault if -S"Profile.icc" is incorrect - Nikolay Pokhilchenko