[Gdal-dev] GeoTIFF file which crashes GDAL?

Vincent Schut schut at sarvision.com
Fri Jul 18 04:00:12 EDT 2003


FYI,

tried gdalinfo on this file on my linux with gdal-cvs. Gives a bunch of errors 
before segfaulting:

[vincent at lowresbox problem]$ gdalinfo problem.tif 
Warning 1: TIFFReadDirectory:problem.tif: invalid TIFF directory; tags are not 
sorted in ascending order
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 7540 for "Tag 3596"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 5450 for "Tag 5401"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 4458 for "Tag 7441"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 4458 for "Tag 5397"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 106 for "Tag 3601"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 6516 for "Tag 5397"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 127 for "Tag 7449"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 5461 for "Tag 
11029"; tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 5471 for "Tag 5388"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 4458 for "Tag 5401"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 5482 for "Tag 5410"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 5471 for "Tag 7441"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 3157 for "Tag 5393"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 2133 for "Tag 7436"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 4490 for "Tag 3601"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 8799 for "Tag 3609"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 2154 for "Tag 5393"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 4447 for "Tag 5405"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 5492 for "Tag 7449"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 4437 for "Tag 3592"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 5461 for "Tag 5397"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 2186 for "Tag 5401"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 6495 for "Tag 7449"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 4426 for "Tag 7445"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 6485 for "Tag 5388"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 6485 for "Tag 7449"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 4458 for "Tag 7449"; 
tag ignored
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 5461 for "Tag 5393"; 
tag ignored
<snap> lots more of these... </snap>
Warning 1: TIFFReadDirectory:problem.tif: wrong data type 65535 for "Tag 
65279"; tag ignored
Segmentation fault (core dumped)

gdb sais:
(gdb) backtrace
#0  0x40124cac in TIFFReadDirectory () from /usr/local/lib/libgdal.1.1.so
#1  0x400db303 in GTiffDataset::OpenOffset(tiff*, unsigned long, int, 
GDALAccess) () from /usr/local/lib/libgdal.1.1.so
#2  0x400dafbf in GTiffDataset::Open(GDALOpenInfo*) () from 
/usr/local/lib/libgdal.1.1.so
#3  0x40151933 in GDALOpen () from /usr/local/lib/libgdal.1.1.so
#4  0x08049737 in main ()
#5  0x404f6082 in __libc_start_main () from /lib/i686/libc.so.6

I'd say the tiff is illegal and photoshop is not so strict... But I'd like to 
hear Frank's opinion on this.

Cheers,
Vincent.


On Friday 18 July 2003 08:03, Ben Discoe wrote:
> I have a GeoTIFF which was output from the MultiSpec remote-sensing
> analysis program (http://www.ece.purdue.edu/~biehl/MultiSpec/).  It
> crashes in GDAL (on Windows) when i try to load it.  Tested it with
> gdalinfo, and that crashes too.
>
> I've uploaded it here: http://vterrain.org/Temp/problem.zip
>
> It loads fine in PhotoShop, so there must be something about the
> non-picture TIF elements in it.  It would be fine if GDAL gave an error
> and refused to load it, but a crash is not good..
>
> Thanks,
> Ben
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at remotesensing.org
> http://remotesensing.org/mailman/listinfo/gdal-dev

-- 
______________________________________
Vincent Schut
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com



More information about the Gdal-dev mailing list