[GRASS5] [bug #2767] (grass) r.stats bug (due to recent G_store() fix?)

guest user via RT grass-bugs at intevation.de
Thu Dec 9 12:09:41 EST 2004


Hi,

I have reverted the recent G_store() change, however,
it's still crashing:

 (gdb) r -anC fields,elevation.10m
Starting program:
/hardmnt/thuille0/ssi/software/cvsgrass57/dist.i686-pc-linux-gnu/bin/r.stats
-anC fields,elevation.10m

Program received signal SIGSEGV, Segmentation fault.
0x005c7666 in G_set_raster_cats_title (title=0xbfffd7c0 "", pcats=0x2596cff8)
at cats.c:1537
1537        pcats->title = G_store (title);
(gdb) bt
#0  0x005c7666 in G_set_raster_cats_title (title=0xbfffd7c0 "",
pcats=0x2596cff8) at cats.c:1537
#1  0x005c757c in G_init_raster_cats (title=0xbfffd7c0 "", pcats=0x2596cff8)
at cats.c:1488
#2  0x005c5fcb in G__read_cats (element=0x601ac0 "cats", name=0x92c8548
"elevation.10m",
    mapset=0x92c8218 "PERMANENT", pcats=0x2596cff8, full=1) at cats.c:488
#3  0x005c5cb5 in G_read_raster_cats (name=0x92c8548 "elevation.10m",
    mapset=0x92c8218 "PERMANENT", pcats=0x2596cff8) at cats.c:372
#4  0x005c5c80 in G_read_cats (name=0x92c8548 "elevation.10m",
mapset=0x92c8218 "PERMANENT",
    pcats=0x2596cff8) at cats.c:350
#5  0x0804a402 in main (argc=3, argv=0xbfffdf24) at main.c:269


I give up to fix this problem.

Markus


-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list