Control: tags -1 + patch * Jakub Wilk <jw...@debian.org>, 2014-09-30, 21:23:
I debugged this a bit. The problem appears to be that for some (but not all!) pixels with value 0, is_white() returns false. I don't understand why, though.
I still don't know what's going on, but I noticed that the bug triggers only when optimizations are enabled. This is why only the -dbg tests failed, and tests for the normal interpreter succeeded. The simple work-around is to use -Og (which enables optimizations that don't interfere with debugging) instead of -O0. Please see the attached patch.
-- Jakub Wilk
diff -Nru gamera-3.4.1+svn1422/debian/control gamera-3.4.1+svn1422/debian/control --- gamera-3.4.1+svn1422/debian/control 2014-08-07 15:09:24.000000000 +0200 +++ gamera-3.4.1+svn1422/debian/control 2014-09-30 23:31:13.000000000 +0200 @@ -7,6 +7,7 @@ Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.15.7~), + g++ (>= 4:4.8), libpng-dev, libtiff-dev, libvigraimpex-dev, diff -Nru gamera-3.4.1+svn1422/debian/rules gamera-3.4.1+svn1422/debian/rules --- gamera-3.4.1+svn1422/debian/rules 2014-08-18 19:38:03.000000000 +0200 +++ gamera-3.4.1+svn1422/debian/rules 2014-09-30 23:20:31.000000000 +0200 @@ -8,7 +8,7 @@ export PYTHONHASHSEED=random export CFLAGS = $(shell dpkg-buildflags --get CFLAGS) -export CFLAGS_noopt = $(patsubst -O%,-O0,$(CFLAGS)) +export CFLAGS_noopt = $(patsubst -O2,-Og,$(CFLAGS)) export CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) export LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)