[gdal-dev] gdal segmentation fault when reading NetCDF grid files
Even Rouault
even.rouault at mines-paris.org
Mon Nov 24 14:53:33 EST 2008
Hi Roger,
Yes, this is a reccurent issue.
the way libhdf4g is built in Ubuntu (up to here... apparently a solution is in
Debian experimental, so it should change... after Lenny) is not compatible
with its use with netcdf. So you should either select one of both formats
when configuring GDAL, either uninstall Ubuntu libhdf4 package and build it
at hand by following the instructions given at
http://trac.osgeo.org/gdal/wiki/HDF
A bit of googling on the issue gives :
http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/1483dd6b712a9566/46be67eeb86be37e?lnk=raot
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488086
Regards
Le Monday 24 November 2008 19:07:18 Roger André, vous avez écrit :
> Hi everyone,
>
> I'm having some problems getting gdal to read netCDF grid files using
> gdal-1.5.2 which I have built from source. It is running on an Ubuntu 8.04
> machine, and was built after the following dependencies were installed:
>
> $ sudo apt-get install libnetcdf4 libnetcdf-dev netcdfg-dev netcdf-doc
> libhdf4g libhdf4g-dev libhdf5-serial-1.6.5-0 libhdf5-serial-1.6.5-0
> libhdf5-serial-dev
>
> I built gdal with the following options:
>
> $ sudo ./configure --with-libz --with-pg=/usr/local/pgsql/bin/pg_config
> --with-netcdf --with-png --with-geotiff --with-jpeg --with-gif --with-hdf4
> --with-hdf5 --with-jasper --with-geos=/usr/local/bin/geos-config
> --with-python
>
> When I try to open the file with gdalinfo, I get the following seg fault in
> /var/log/syslog:
>
> Nov 24 09:42:34 randre-linux kernel: [ 1921.499150] gdalinfo[6971]:
> segfault at 00001031 eip b713d886 esp bfefb390 error 4
>
> The same file can be opened with no problem using gdalinfo from
> FWTools-2.0.6
>
> Is it possible I am missing some netCDF/HDF fu needed for gdal to work with
> these sorts of files?
>
> Thanks in advance for any suggestions,
>
> Roger
> --
More information about the gdal-dev
mailing list