[gdal-dev] v1.9.2 throws ERROR 4 exception, v1.6.1 does not

Kevin F Webb kfw4 at cornell.edu
Fri Dec 7 06:43:37 PST 2012


Excellent suggestion Homme!

I can clearly see where the successful version takes off and the "failure" occurs, but no clear indication, to me at least, what the cause of the "failure" is. The library set is more complex than I've shown here, but the key libs should be those I've listed. I will attempt to instrument the 1.9.2 version to get further insight what is causing the problem.

Thanks for your suggestion.

KFW



--GOOD--
...
open("/home/kfw4/software/gis/gdal-1.6.1/.libs/libgdal.so.1", O_RDONLY) = 3
...
open("/usr/local/HDF4.2r4/lib/libmfhdf.so.0", O_RDONLY) = 3
...
open("/usr/local/HDF4.2r4/lib/libdf.so.0", O_RDONLY) = 3
...
read(4, "\20\0\33Land_Cover_Type_1_Secondary\0\6"..., 4096) = 4096
lseek(4, 0, SEEK_SET)                   = 0
read(4, "\16\3\23\1\0\310\5~\354\370\0\36\0\1\0\0\tj\0\0\0\\\7\255\0\3\0\0\t\306\0\0"..., 4096) = 4096
lseek(4, 92196864, SEEK_SET)            = 92196864
read(4, "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., 409\
6) = 4096
lseek(4, 92200960, SEEK_SET)            = 92200960
lseek(4, 92200960, SEEK_SET)            = 92200960
lseek(4, 92200960, SEEK_SET)            = 92200960
...
write(1, "Driver: HDF4/Hierarchical Data F"..., 48Driver: HDF4/Hierarchical Data Format Release 4
...


--BAD--
open("/usr/local/lib/libgdal.so.1", O_RDONLY) = 3
...
open("/usr/local/HDF4.2r4/lib/libmfhdf.so.0", O_RDONLY) = 3
...
open("/usr/local/HDF4.2r4/lib/libdf.so.0", O_RDONLY) = 3
...
read(4, "\20\0\33Land_Cover_Type_1_Secondary\0\6"..., 4096) = 4096
lseek(4, 0, SEEK_SET)                   = 0
read(4, "\16\3\23\1\0\310\5~\354\370\0\36\0\1\0\0\tj\0\0\0\\\7\255\0\3\0\0\t\306\0\0"..., 4096)\
 = 4096
close(4)                                = 0
munmap(0x2b669213d000, 4096)            = 0
open("/mnt/stemdata02/kfw4/modis_landcover/tiles/MCD12Q1.A2011001.h33v07.051.2012264183744.hdf"\
, O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0664, st_size=92268717, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b669213d000
read(4, "\16\3\23\1\0\310\5~\354\370\0\36\0\1\0\0\tj\0\0\0\\\7\255\0\3\0\0\t\306\0\0"..., 4096)\
 = 4096
close(4)                                = 0
munmap(0x2b669213d000, 4096)            = 0
brk(0x1c7f4000)                         = 0x1c7f4000
open("/mnt/stemdata02/kfw4/modis_landcover/tiles/MCD12Q1.A2011001.h33v07.051.2012264183744.hdf"\
, O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0664, st_size=92268717, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b669213d000
read(4, "\16\3\23\1\0\310\5~\354\370\0\36\0\1\0\0\tj\0\0\0\\\7\255\0\3\0\0\t\306\0\0"..., 4096)\
 = 4096
close(4)                                = 0
munmap(0x2b669213d000, 4096)            = 0
mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b6696fd0000
munmap(0x2b6696fd0000, 528384)          = 0
close(3)                                = 0
munmap(0x2b669213c000, 4096)            = 0
write(2, "ERROR 4: `/mnt/stemdata02/kfw4/m"..., 144ERROR 4: `/mnt/stemdata02/kfw4/modis_landcov\
er/tiles/MCD12Q1.A2011001.h33v07.051.2012264183744.hdf' not recognised as a supported file form\
at.



________________________________________
From: Homme Zwaagstra [hrz at geodata.soton.ac.uk]
Sent: Friday, December 07, 2012 5:57 AM
To: Kevin F Webb
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] v1.9.2 throws ERROR 4 exception, v1.6.1 does not

Running `strace` might yield a little more information:

strace gdalinfo /mnt/stemdata02/kfw4/modis_landcover/tiles/MCD12Q1.A2011001.h33v07.051.2012264183744.hdf

Homme

On Thu, Dec 06, 2012 at 06:59:05PM +0000, Kevin F Webb wrote:
> Any suggestions Even? Permissions aren't an issue, same user executed all commands, LD_LIBRARY_PATH is identical, ld.so.conf was updated before the 2 builds, and ldd shows that the link files are all locatable.
> ________________________________________
> From: Even Rouault [even.rouault at mines-paris.org]
> Sent: Thursday, December 06, 2012 1:53 PM
> To: Kevin F Webb
> Cc: gdal-dev at lists.osgeo.org
> Subject: Re: [gdal-dev] v1.9.2 throws ERROR 4 exception, v1.6.1 does not
>
> Le jeudi 06 décembre 2012 19:48:34, Kevin F Webb a écrit :
> > attached
> >
> > Thanks Even!
>
> Your file works me for both GDAL trunk and GDAL 1.9.0, so I suspect there is
> something wrong in your setup, or something else ...
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

--
Homme Zwaagstra
GeoData Institute
University of Southampton

Tel: +44(0)2380 59 8709


More information about the gdal-dev mailing list