Opened 17 years ago

Last modified 16 years ago

#1439 closed defect (invalid)

gdalinfo segfaults on GRASS rasters after "ERROR 6: SetDefaultRAT() not implemented for this format."

Reported by: werchowyna@… Owned by: warmerdam
Priority: highest Milestone:
Component: GDAL_Raster Version: 1.4.0
Severity: major Keywords: grass
Cc: Mateusz Łoskot

Description (last modified by Mateusz Łoskot)

GDAL 1.4 CVS 2007.01.14

gdalinfo crashes on GRASS rasters: CELL, FCELL and DCELL:

$ gdalinfo /home/grassdata/zak_utm34/test/cellhd/int
Driver: GRASS/GRASS Database Rasters (5.7+)
Size is 70, 106
Coordinate System is `'
Origin = (421000.000000000000000,4205000.000000000000000)
Pixel Size = (1000.000000000000000,-1000.000000000000000)
Corner Coordinates:
Upper Left  (  421000.000, 4205000.000)
Lower Left  (  421000.000, 4099000.000)
Upper Right (  491000.000, 4205000.000)
Lower Right (  491000.000, 4099000.000)
Center      (  456000.000, 4152000.000)
Band 1 Block=70x1 Type=Byte, ColorInterp=Gray
  Min=0.000 Max=9.000
  NoData Value=255
  Metadata:
    COLOR_TABLE_RULES_COUNT=0
ERROR 6: SetDefaultRAT() not implemented for this format.
ERROR 6: SetDefaultRAT() not implemented for this format.

Please find the backtrace below:

$ gdb gdalinfo
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run /home/grassdata/zak_utm34/test/cellhd/int
Starting program: /usr/local/bin/gdalinfo /home/grassdata/zak_utm34/test/cellhd/int
[Thread debugging using libthread_db enabled]
[New Thread -1221265728 (LWP 6503)]
Driver: GRASS/GRASS Database Rasters (5.7+)
Size is 70, 106
Coordinate System is `'
Origin = (421000.000000000000000,4205000.000000000000000)
Pixel Size = (1000.000000000000000,-1000.000000000000000)
Corner Coordinates:
Upper Left  (  421000.000, 4205000.000)
Lower Left  (  421000.000, 4099000.000)
Upper Right (  491000.000, 4205000.000)
Lower Right (  491000.000, 4099000.000)
Center      (  456000.000, 4152000.000)
Band 1 Block=70x1 Type=Byte, ColorInterp=Gray
  Min=0.000 Max=9.000
  NoData Value=255
  Metadata:
    COLOR_TABLE_RULES_COUNT=0
ERROR 6: SetDefaultRAT() not implemented for this format.
ERROR 6: SetDefaultRAT() not implemented for this format.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1221265728 (LWP 6503)]
0xb7c1a1c4 in GDALRasterAttributeTable::Serialize ()
   from /usr/local//lib/libgdal.so.1
(gdb) bt
#0  0xb7c1a1c4 in GDALRasterAttributeTable::Serialize ()
   from /usr/local//lib/libgdal.so.1
#1  0xb7c1a630 in GDALRasterAttributeTable::DumpReadable ()
   from /usr/local//lib/libgdal.so.1
#2  0xb7c1a6a4 in GDALRATDumpReadable () from /usr/local//lib/libgdal.so.1
#3  0x0804a4b0 in main ()
(gdb)

Maciek

Change History (2)

comment:1 by werchowyna@…, 17 years ago

This bug report of mine is invalid.

The reason fo gdalinfo segfaulting was that I didn't rebuild gdal-grass plugin after updating GDAL (1.3.2 -> 1.4.0). Now all is OK.

Maciek

comment:2 by Mateusz Łoskot, 16 years ago

Cc: Mateusz Łoskot added
Description: modified (diff)
Keywords: grass added
Note: See TracTickets for help on using tickets.