[GRASSLIST:3098] importing using r.in.gdal

Clint Miller cmiller at tigerbyte.com
Wed Feb 6 03:44:32 EST 2002


I'm a grass newbie and am trying to import USGS DEMs.  (Yes, I've seen the 
previous post ;)  I'm running RH 7.2-i386, grass5.0.0pre3 and I've tried both 
gdal1.1.5 and 1.1.6.  Both grass and gdal have been compiled from source and 
the spearfish sample data works great with everything installed.  I've been 
wanting to try Grass for years and I must say it rocks.

I must be doing something stupid with:

GRASS:~> r.in.gdal input=maps/8087CATD.DDF output=/tmp/testout.png
This segfaults in libgdal1.1.so everytime.  I've tried all the writable 
formats defined in the gdal docs.

strace reveals (below) that each of the files in the set is getting opened 
and read and then a segfault occurs.  Should I try another test?  Should I 
compile with debug flags and start tracing through the gdal code?  Is there 
something I should be certain of in the gdal build?  Is this a Redhat-ism?  
Am I doing something really dumb?

Thanks!
--
Clint Miller

---strace goo---
[pid 20389] open("maps/8087CATD.DDF", O_RDONLY) = 4
[pid 20389] fstat64(4, {st_mode=S_IFREG|0644, st_size=1947, ...}) = 0
[pid 20389] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
[pid 20389] read(4, "001672L 1 0600049   220400002100"..., 4096) = 1947
[pid 20389] _llseek(4, -1780, [167], SEEK_CUR) = 0
[pid 20389] read(4, "00091 D 1   00039   21040001080C"..., 4096) = 1780
[pid 20389] open("maps/8087IDEN.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087IREF.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087XREF.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087DDSH.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087DDOM.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087DQHL.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087DQPA.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087DQAA.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087DQLC.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087DQCG.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087RSDF.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087LDEF.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087CATD.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087CATS.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087STAT.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087DDDF.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087SPDM.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] open("maps/8087CEL0.DDF", O_RDONLY) = 5
[pid 20389] close(5)                    = 0
[pid 20389] read(4, "", 4096)           = 0
[pid 20389] close(4)                    = 0
[pid 20389] munmap(0x40019000, 4096)    = 0
[pid 20389] open("maps/8087IREF.DDF", O_RDONLY) = 4
[pid 20389] fstat64(4, {st_mode=S_IFREG|0644, st_size=358, ...}) = 0
[pid 20389] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
[pid 20389] read(4, "002072L 1 0600052   320400000210"..., 4096) = 358
[pid 20389] _llseek(4, -151, [207], SEEK_CUR) = 0
[pid 20389] read(4, "00151 D 1   00041   310400010080"..., 4096) = 151
[pid 20389] close(4)                    = 0
[pid 20389] munmap(0x40019000, 4096)    = 0
[pid 20389] open("maps/8087XREF.DDF", O_RDONLY) = 4
[pid 20389] fstat64(4, {st_mode=S_IFREG|0644, st_size=514, ...}) = 0
[pid 20389] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
[pid 20389] read(4, "002332L 1 0600061   230400002100"..., 4096) = 514
[pid 20389] _llseek(4, -281, [233], SEEK_CUR) = 0
[pid 20389] read(4, "00281 D 1   00055   330400010080"..., 4096) = 281
[pid 20389] close(4)                    = 0
[pid 20389] munmap(0x40019000, 4096)    = 0
[pid 20389] open("maps/8087LDEF.DDF", O_RDONLY) = 4
[pid 20389] fstat64(4, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0
[pid 20389] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
[pid 20389] read(4, "001962L 1 0600049   220400002100"..., 4096) = 286
[pid 20389] _llseek(4, -90, [196], SEEK_CUR) = 0
[pid 20389] read(4, "00090 D 1   00039   21040001080L"..., 4096) = 90
[pid 20389] close(4)                    = 0
[pid 20389] munmap(0x40019000, 4096)    = 0
[pid 20389] open("maps/8087RSDF.DDF", O_RDONLY) = 4
[pid 20389] fstat64(4, {st_mode=S_IFREG|0644, st_size=528, ...}) = 0
[pid 20389] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
[pid 20389] read(4, "003512L 1 0600085   330400000210"..., 4096) = 528
[pid 20389] _llseek(4, -177, [351], SEEK_CUR) = 0
[pid 20389] read(4, "00177 D 1   00070   230400010800"..., 4096) = 177
[pid 20389] close(4)                    = 0
[pid 20389] munmap(0x40019000, 4096)    = 0
[pid 20389] open("maps/8087DDSH.DDF", O_RDONLY) = 4
[pid 20389] fstat64(4, {st_mode=S_IFREG|0644, st_size=287, ...}) = 0
[pid 20389] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
[pid 20389] read(4, "001832L 1 0600049   220400002100"..., 4096) = 287
[pid 20389] _llseek(4, -104, [183], SEEK_CUR) = 0
[pid 20389] read(4, "00104 D 1   00039   21040001080D"..., 4096) = 104
[pid 20389] open("maps/8087CEL0.DDF", O_RDONLY) = 5
[pid 20389] fstat64(5, {st_mode=S_IFREG|0644, st_size=386227, ...}) = 0
[pid 20389] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000
[pid 20389] read(5, "001882L 1 0600057   220400002100"..., 4096) = 4096
[pid 20389] brk(0x80b1000)              = 0x80b1000
[pid 20389] _llseek(5, -3908, [188], SEEK_CUR) = 0
[pid 20389] close(4)                    = 0
[pid 20389] munmap(0x40019000, 4096)    = 0
[pid 20389] close(3)                    = 0
[pid 20389] munmap(0x40018000, 4096)    = 0
[pid 20389] open("/usr/local/grass5/etc/projections", O_RDONLY) = 3
[pid 20389] fstat64(3, {st_mode=S_IFREG|0644, st_size=2901, ...}) = 0
[pid 20389] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
[pid 20389] read(3, "ll:Lat/Lon\nutm:Universe Transver"..., 4096) = 2901
[pid 20389] brk(0x80b2000)              = 0x80b2000
[pid 20389] read(3, "", 4096)           = 0
[pid 20389] close(3)                    = 0
[pid 20389] munmap(0x40018000, 4096)    = 0
[pid 20389] --- SIGSEGV (Segmentation fault) ---



More information about the grass-user mailing list