2012.06.28 09:23 "[Tiff] tiff 4.0.2 raw_decode test failing on ppc64", by Dinar Valeev

2012.07.05 18:56 "Re: [Tiff] tiff 4.0.2 raw_decode test failing on ppc64", by Bob Friesenhahn

I noticed that my build was not using the expected IJG JPEG version.

This is what I get with IJG JPEG 8d:

% libtool --mode execute gdb test/raw_decode ./test/core
GNU gdb (GDB) 7.2

Copyright (C) 2010 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.

This GDB was configured as "i386-pc-solaris2.10".

For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>...

Reading symbols from /scratch/bfriesen/build/tiff-head-32bit/test/.libs/raw_decode...done. [New LWP 1]

Reading symbols from /home/bfriesen/build/tiff-head-32bit/libtiff/.libs/libtiff.so.5...done. Loaded symbols for /home/bfriesen/build/tiff-head-32bit/libtiff/.libs/libtiff.so.5 Reading symbols from /usr/local/lib/liblzma.so.5...done.

Loaded symbols for /usr/local/lib/liblzma.so.5

Reading symbols from /lib/libpthread.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libpthread.so.1

Reading symbols from /usr/local/lib/libjbig.so.1...done.

Loaded symbols for /usr/local/lib/libjbig.so.1

Reading symbols from /usr/local/lib/libjpeg.so.8...done.

Loaded symbols for /usr/local/lib/libjpeg.so.8

Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libz.so.1

Reading symbols from /lib/libm.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libm.so.2

Reading symbols from /lib/libc.so.1...(no debugging symbols found)...done. [Thread debugging using libthread_db enabled]

[New Thread 1 (LWP 1)]
Loaded symbols for /lib/libc.so.1

Reading symbols from /usr/local/lib/libgcc_s.so.1...done.

Loaded symbols for /usr/local/lib/libgcc_s.so.1

Reading symbols from /lib/ld.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/ld.so.1

Core was generated by `/home/bfriesen/build/tiff-head-32bit/test/.libs/raw_decode'.

Program terminated with signal 11, Segmentation fault.

#0 in jpeg_idct_16x16 (cinfo=0x8062db0, compptr=0x806a954, coef_block=0x806eac4, output_buf=0x806cc2c, output_col=0) 0xfee57f66

     at /home/bfriesen/src/graphics/jpeg-8d/jidctint.c:2760

2760        outptr[0]  = range_limit[(int) RIGHT_SHIFT(tmp20 + tmp0,

(gdb) bt

#0

     at /home/bfriesen/src/graphics/jpeg-8d/jidctint.c:2760

#1 0xfee42329 in decompress_onepass (cinfo=0x8062db0, output_buf=0x8063084) at /home/bfriesen/src/graphics/jpeg-8d/jdcoefct.c:199 #2 0xfee3fd6c in jpeg_read_raw_data (cinfo=0x8062db0, data=0x8063084, max_lines=16) at /home/bfriesen/src/graphics/jpeg-8d/jdapistd.c:210

#3 0xfef27de2 in TIFFjpeg_read_raw_data (sp=0x8062db0, data=0x8063084, max_lines=16)
     at /home/bfriesen/src/graphics/libtiff/libtiff/tif_jpeg.c:349
#4 0xfef2805e in JPEGDecodeRaw (tif=0x8061fc8, buf=0x8064188 "", cc=24576, s=0)
     at /home/bfriesen/src/graphics/libtiff/libtiff/tif_jpeg.c:1337
#5 0xfef3d9da in TIFFReadEncodedTile (tif=0x8061fc8, tile=9, buf=0x8064188, size=24576)
     at /home/bfriesen/src/graphics/libtiff/libtiff/tif_read.c:668

#6 0x0805146b in main (argc=1, at /home/bfriesen/src/graphics/libtiff/test/raw_decode.c:155 argv=0x8046a98)

(gdb)

What version of libjpeg are you testing with?

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/