this bug's URL: http://intevation.de/rt/webrt?serial_num=2767
-------------------------------------------------------------------------
Subject: r.stats bug (due to recent G_store() fix?)
Hi,
[ http://grass.itc.it/pipermail/grass5/2004-December/016315.html ]
I tried again in Spearfish location:
r.stats -anC fields,elevation.10m
Segmentation fault
gdb `which r.stats`
GNU gdb Red Hat Linux (6.1post-1.20040607.17rh)
(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.
0x00a6f666 in G_set_raster_cats_title (title=0xbfff8fd0 "", pcats=0x706b5b98)
at cats.c:1537
1537 pcats->title = G_store (title);
(gdb) bt
#0 0x00a6f666 in G_set_raster_cats_title (title=0xbfff8fd0 "",
pcats=0x706b5b98) at cats.c:1537
#1 0x00a6f57c in G_init_raster_cats (title=0xbfff8fd0 "", pcats=0x706b5b98)
at cats.c:1488
#2 0x00a6dfcb in G__read_cats (element=0xaa9860 "cats", name=0x9331528
"elevation.10m", mapset=0x9331630 "PERMANENT",
pcats=0x706b5b98, full=1) at cats.c:488
#3 0x00a6dcb5 in G_read_raster_cats (name=0x9331528 "elevation.10m",
mapset=0x9331630 "PERMANENT", pcats=0x706b5b98)
at cats.c:372
#4 0x00a6dc80 in G_read_cats (name=0x9331528 "elevation.10m",
mapset=0x9331630 "PERMANENT", pcats=0x706b5b98) at cats.c:350
#5 0x0804a402 in main (argc=3, argv=0xbfff9734) at main.c:269
It seems that this bugfix (needed for db.login) needs to be refined:
http://grass.itc.it/pipermail/grass-commit/2004-November/015934.html
But how? Help is welcome (strings in C are not my friends),
Markus
-------------------------------------------- Managed by Request Tracker