Skip to content

Research: iccApplyNamedCmm | Error - stage 0: AddXform failed for ICC/Spec380_10_730-D50_2deg.icc #1323

@xsscx

Description

@xsscx

Maintainer Summary

2026-06-12 16:17:30 UTC

Git

57a8ea7 (HEAD -> master, tag: ci-latest-27378717751-1, origin/master, origin/HEAD) Fix: leak in CIccXform::Create on failure paths (#1304) (#1305)

Issue

  • iccApplyNamedCmm indicates Error - stage 0: AddXform failed for ICC/Spec380_10_730-D50_2deg.icc
    • Is this command output the expected behavior?

Repro

git clone https://github.com/InternationalColorConsortium/iccDEV.git
cd iccDEV/Build
git checkout 57a8ea7
git branch && echo "---" && git log --oneline -1
CC=clang CXX=clang++ CXXFLAGS="-fsanitize=address,undefined,integer,bounds,null,float-divide-by-zero,alignment,vla-bound -fno-omit-frame-pointer -g -O0" LDFLAGS="-fsanitize=address,undefined,integer,bounds,null,float-divide-by-zero,alignment,vla-bound" cmake Cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_ASAN=ON -DENABLE_UBSAN=ON -DENABLE_TOOLS=ON
make -j32
        cd ../Testing/
        echo "=== Updating PATH ==="
         for d in ../Build/Tools/*; do
          [ -d "$d" ] && export PATH="$(realpath "$d"):$PATH"
         done
cd hybrid
printf '%s\n%s\n%s\n' 'unsigned-integer-overflow:*/IccMD5.cpp' 'shift-base:*/IccMD5.cpp' 'shift-exponent:*/IccMD5.cpp' > silence.txt && ASAN_OPTIONS='print_scariness=1:halt_on_error=1:detect_leaks=0' UBSAN_OPTIONS='halt_on_error=0:suppressions='"$PWD"'/silence.txt' ./BuildAndTest.sh
iccApplyNamedCmm -exportcfg config/qa_namedcmm_013_enc1_it1_st4.json -debugcalc Data/cmykGrays.txt 1 1 -ENV:bkgX 0.0985 -ENV:bkgY 0.159 -ENV:bkgZ 0.122 ICC/Spec380_10_730-D50_2deg.icc 10013 -PCC ICC/Lab_float-D93_2deg-MAT.icc -ENV:bkgZ 0.033 ICC/Lab_float-F11_2deg-MAT.icc 10070 -ENV:bkgY 0.168 ICC/Spec380_10_730-D50_2deg.icc 100003 -PCC ICC/Spec380_10_730-D50_2deg.icc -ENV:bkgX 0.264 ICC/Lab_float-F11_2deg-MAT.icc 100042 -PCC ICC/Lab_float-D50_2deg.icc

Unexpected Output

Error - stage 0: AddXform failed for 'ICC/Spec380_10_730-D50_2deg.icc' (status 2)

Observation

Load & Store should be Reviewed for expected outputs when using iccApplyNamedCmm.

CLI Samples

iccApplyNamedCmm_QA_200.txt

Metadata

Metadata

Labels

JSONICC JSON parser, config, or round-trip behaviorResearchResearch Status indicated by Maintainer

Type

No fields configured for Task.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions