[GRASS-dev] [GRASS GIS] #455: d.what.rast segfault

GRASS GIS trac at osgeo.org
Thu Jan 22 00:44:01 EST 2009


#455: d.what.rast segfault
-------------------------+--------------------------------------------------
 Reporter:  hamish       |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect       |      Status:  new                      
 Priority:  major        |   Milestone:  6.4.0                    
Component:  default      |     Version:  unspecified              
 Keywords:               |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 Hi,

 d.what.rast segfaults for me in latest develbranch6, but not in 6.3.0 or
 6.4.0RC2.


 spearfish:
 {{{
 g.region rast=elevation.dem
 r.param.scale in=elevation.dem out=elev.asp_param param=aspect
 d.mon x0
 d.rast elev.asp_param
 d.what.rast

 Buttons
  Left:  what's here
  Right: quit

 603131.5625(E) 4924637.1875(N)
 elev.asp_param at user1 in user1, quant   (-59)
 Segmentation fault
 }}}

 "map at mapset in mapset"??


 {{{
 (gdb) bt
 #0  0xb7f0e72a in G_get_raster_cat (rast=0x80598f0, pcats=0x8051b68,
 data_type=2)
     at cats.c:673
 #1  0xb7f0e675 in G_get_d_raster_cat (rast=0x80598f0, pcats=0x8051b68) at
 cats.c:636
 #2  0x0804aca3 in what (once=0, terse=0, colrow=0, fs=0x804af63 ":",
 width=20, mwidth=5)
     at what.c:82
 #3  0x08049bfa in main (argc=1, argv=0xbff90cf4) at main.c:170

 (gdb) bt full
 #0  0xb7f0e72a in G_get_raster_cat (rast=0x80598f0, pcats=0x8051b68,
 data_type=2)
     at cats.c:673
         f = 0x8051d46 ""
         l = 0xbff909c8 "è\nù¿£¬\004\bð\230\005\bh\033\005\bl"
         v = 0xb7f71090 "ZY\207\004$Â\b"
         i = -2147483648
         val = -90.842525032748952
         a = {-2.86272261e-05, -2.9214556e-05}
         fmt =
 "\000\000\001\000\000\000\001\000\000\000\000\000\000\000,8ð·Õ\002\000\000\000
 àï·¬8\005"
         value_str =
 "\000põ·ô¿÷·\000põ·\001\000\000\000\220\tù¿ù\022÷·¬qõ·\000"
         label = '\0' <repeats 1023 times>
 #1  0xb7f0e675 in G_get_d_raster_cat (rast=0x80598f0, pcats=0x8051b68) at
 cats.c:636
 No locals.
 #2 [...]
 }}}

 ??
 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/455>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list