On Wednesday 27 August 2008, Vishal Mehta wrote: > Hello all, > > I continue to have 'segmentation fault' error using gdal-1.5.2 on Ubuntu > 8.04 with netcdf files. > > I re-compiled gdal from source again, this time with Dylan Beaudette's > gracious help (thanks Dylan!). I still got segmentation fault. > > Below are the last few lines of strace - hope that helps in identifying > what the problem is... I have libnetcdf 3.6-2-2 > > Please note that the two netcdf files I've tried do open using FWTools for > Windows as well as starspan for Windows - so I don't think anything is > wrong with the netcdf files.. > > -vishal > > -------excerpt from strace follows--- > > read(3, "CDF\1\0\0\0\1\0\0\0\n\0\0\0\3\0\0\0\3lat\0\0\0\1h\0\0\0"..., 4096) > = 4096 _llseek(3, 0, [0], SEEK_SET) = 0 > open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 4 > fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 > fcntl64(4, F_GETFD) = 0x1 (flags FD_CLOEXEC) > getdents(4, /* 6 entries */, 4096) = 136 > getdents(4, /* 0 entries */, 4096) = 0 > close(4) = 0 > open("airtemp.nc", O_RDONLY|O_LARGEFILE) = 4 > fstat64(4, {st_mode=S_IFREG|0666, st_size=265644, ...}) = 0 > fstat64(4, {st_mode=S_IFREG|0666, st_size=265644, ...}) = 0 > _llseek(4, 0, [0], SEEK_SET) = 0 > read(4, "CDF\1\0\0\0\1\0\0\0\n\0\0\0\3\0\0\0\3lat\0\0\0\1h\0\0\0"..., 8192) > = 8192 --- SIGSEGV (Segmentation fault) @ 0 (0) --- > +++ killed by SIGSEGV +++ > Process 395 detached
I also noticed the following error with the same file (dmesg), on a Debian/Unstable system: gdalinfo[15469]: segfault at 1031 ip b73a1c09 sp bf873c20 error 4 in libmfhdf.so.4.1r4[b7390000+21000] this was with a fairly recent SVN copy of GDAL-1.5, and the libnetcdf3 package. I have updated my netcdf libraries to libnetcdf4 3.6.2-3.1 and will try again with a freshly updated GDAL source tree... -- Dylan Beaudette Soil Resource Laboratory http://casoilresource.lawr.ucdavis.edu/ University of California at Davis 530.754.7341 _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev