2008.09.24 19:44 "[Tiff] tiffinfo dies when run against specific test file", by David Steinbrunner

2008.09.24 19:44 "[Tiff] tiffinfo dies when run against specific test file", by David Steinbrunner

Hello,

As a part of a system I am working on, tiffinfo is used to figure out if files seen as tiff images by ImageMagick are actually tiff or raw. We have a test suite that shows that this works just fine on RHEL4 with libtiff 3.7.1 installed but when running these tests on RHEL5, which has the latest stable version of libtiff, one of the test cases fail. I was able to find that tiffinfo seg faults which does not allow our code to get the info it needs from tiffinfo.

Here is the output:

$ tiffinfo RAW_LEICA_M8.DNG

TIFFReadDirectory: Warning, /home/dsteinbrunner/album_wc/branches/db-backend/src/perl/modules/Album-Meta dataSniffer/t/RAW_LEICA_M8.DNG: unknown field with tag 34859 (0x882b) encountered.

TIFFReadDirectory: Warning, /home/dsteinbrunner/album_wc/branches/db-backend/src/perl/modules/Album-Meta dataSniffer/t/RAW_LEICA_M8.DNG: unknown field with tag 36867 (0x9003) encountered.

TIFFReadDirectory: Warning, RAW_LEICA_M8.DNG: unknown field with tag 37390 (0x920e) encountered.

TIFFReadDirectory: Warning, RAW_LEICA_M8.DNG: unknown field with tag 37391 (0x920f) encountered.

TIFFReadDirectory: Warning, RAW_LEICA_M8.DNG: unknown field with tag 37392 (0x9210) encountered.

TIFFReadDirectory: Warning, RAW_LEICA_M8.DNG: unknown field with tag 37398 (0x9216) encountered.

TIFF Directory at offset 0x8 (8)
    Subfile Type: reduced-resolution image (1 = 0x1)
    Image Width: 320 Image Length: 240
    Resolution: 72, 72 pixels/inch
    Bits/Sample: 8
    Compression Scheme: None
    Photometric Interpretation: RGB color
    Orientation: row 0 top, col 0 lhs
    Samples/Pixel: 3
    Rows/Strip: 68
    Planar Configuration: single image plane
    SubIFD Offsets: 494

  Make: Leica Camera AG
  Model: M8 Digital Camera
  Software: 1.107
  Artist:
  Copyright:
  EXIFIFDOffset: 764
  Tag 34859: 0
  Tag 36867: 2007:08:02 22:13:49
  Tag 37390: 3729.000000
  Tag 37391: 3764.000000
  Tag 37392: 2
  Tag 37398: 0,0,0,1
  DNGVersion: 1,0,0,0
  UniqueCameraModel: M8 Digital Camera
  ColorMatrix1:
1.046900,-0.531400,0.128000,-0.432600,1.217600,0.241900,-0.088600,0.247300,0
.716000
  ColorMatrix2:
0.767500,-0.219500,-0.030500,-0.586000,1.411800,0.185700,-0.242500,0.400700,
0.657800
  CameraCalibration1:
1.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,1.00
0000
  CameraCalibration2:
1.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,1.00
0000
  AsShotNeutral: 0.475064,1.000000,0.796616
  BaselineNoise: 1.000000
  BaselineSharpness: 1.000000
  CameraSerialNumber: 3106091
  CalibrationIlluminant1: 17
  CalibrationIlluminant2: 21
TIFF Directory at offset 0x2fc (764)
Segmentation fault

Not knowing if this was a libtiff issue or RHEL5 issue I installed it on my Mac OS X 10.5.5 system using macports and I got the same result except that "Segmentation fault" read as "Bus error".

Any thoughts? I can make the 10 MB file available upon request.

Thanks,

--
David Steinbrunner