noobdoesre / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

gcc 4.6.1 j2k_to_image artifacts #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile openjpeg-1.5.0 on ubuntu 11.10 (gcc 4.6.1)
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 
4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr 
--program-suffix=-4.6 --enable-shared --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin 
--enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic 
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu 
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) 

2. run ./applications/codec/j2k_to_image -i ~/test.j2k -o ~/test.pgm

3. expected (see expected.png) actual (see actual.png)

What is the expected output? What do you see instead?
*.pgm.gz file are the output of j2k_to_image
*.png converted from pgm for faster preview in browser/common viewers

What version of the product are you using? On what operating system?
1.5.0 (reproduces on 1.4.697)

Please provide any additional information below.

rebuilding with -O3 disabled helps solve the issue

--- configure.ac_old    2012-04-02 22:05:54.919135657 +0300
+++ configure.ac    2012-04-02 21:49:14.799119102 +0300
@@ -478,7 +478,7 @@
    OPJ_COMPILER_FLAG([-g])
    OPJ_COMPILER_FLAG([-O0])
 else
-   OPJ_COMPILER_FLAG([-O3])
+   OPJ_COMPILER_FLAG([-O2])
 fi

Original issue reported on code.google.com by zhukov.a...@gmail.com on 2 Apr 2012 at 7:08

Attachments:

GoogleCodeExporter commented 9 years ago
forgot to attach the original test.j2k

Original comment by zhukov.a...@gmail.com on 2 Apr 2012 at 7:26

Attachments:

GoogleCodeExporter commented 9 years ago
I cannot reproduce it on 1.5 branch, on a debian system using:

$ gcc-4.6 -v
Using built-in specs.
COLLECT_GCC=gcc-4.6
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-5' 
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.6 --enable-shared --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object 
--enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic 
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu 
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Debian 4.6.3-5) 

Original comment by mathieu.malaterre on 21 May 2012 at 8:50

GoogleCodeExporter commented 9 years ago
This must be ubuntu specific. I am tempted to close this bug.

Original comment by mathieu.malaterre on 21 May 2012 at 8:53

GoogleCodeExporter commented 9 years ago

Original comment by mathieu.malaterre on 21 May 2012 at 9:07

GoogleCodeExporter commented 9 years ago

Original comment by mathieu.malaterre on 25 Feb 2014 at 3:53

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r2475.

Original comment by mathieu.malaterre on 26 Feb 2014 at 2:22

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2477.

Original comment by mathieu.malaterre on 26 Feb 2014 at 2:24