[GRASS5] r.average segfault
Markus Neteler
neteler at itc.it
Fri Nov 4 12:21:12 EST 2005
Hi,
I tried to calculate something simple (I thought): the average
wages given as county based raster map for every US state.
r.info -t usa_income_employment2002_county_avg_wages
datatype=DCELL
r.info -t usa_income_employment2002_states
datatype=CELL
r.average cover=usa_income_employment2002_county_avg_wages \
base=usa_income_employment2002_states \
out=usa_income_employment2002_states_avg_wages
WARNING: r.stats: cats for usa_income_employment2002_avg_wages are either
missing or have no explicit labels. Using nsteps=255
sh: line 1: 612 Segmentation fault r.stats -anC input='usa_income_employment2002_states,usa_income_employment2002_avg_wages' fs=space >/ssi0/ssi/neteler/grassdata/latlong/neteler/.tmp/thuille/610.0
ERROR: r.average: ERROR running r.stats command
###################3
gdb `which r.stats`
(gdb) r -anC input='usa_income_employment2002_states,usa_income_employment2002_avg_wages' fs=space
Starting program: /nfsmnt/thuille0/ssi/software/cvsgrass61/dist.i686-pc-linux-gnu/bin/r.stats -anC input='usa_income_employment2002_states,usa_income_employment2002_avg_wages' fs=space
Detaching after fork from child process 791.
Detaching after fork from child process 792.
WARNING: r.stats: cats for usa_income_employment2002_avg_wages are either
missing or have no explicit labels. Using nsteps=255
Program received signal SIGSEGV, Segmentation fault.
x2f4 in main (argc=4, argv=0xbfe290a4) at main.c:242
to_screen = 0x804bf10 " output to screen "
fd = (int *) 0x8f9efd8
i = 2
name = 0x8f9ee98 "usa_income_employment2002_avg_wages"
mapset = 0x8f9efb8 "neteler"
verbose = 1
raw_data = 0
with_coordinates = 0
with_xy = 0
with_percents = 0
with_counts = 0
with_areas = 1
with_labels = 0
fmt = '\0' <repeats 19 times>
dp = -1
range = {min = 2, max = 51, first_time = 0}
fp_range = {min = 15355, max = 71744, first_time = 0}
q = {truncate_only = 0, round_only = 0, defaultDRuleSet = 1886221132, defaultCRuleSet = 0, infiniteLeftSet = 0,
infiniteRightSet = 0, cRangeSet = 0, maxNofRules = 0, nofRules = 0, defaultDMin = 1.0777334131618748e-307,
defaultDMax = 1.525183134850258e-314, defaultCMin = -1075671212, defaultCMax = 3311161,
infiniteDLeft = 4.8663094169704339e-270, infiniteDRight = 6.8826446699923356e-313, infiniteCLeft = 0, infiniteCRight = 0,
dMin = 15355, dMax = 71744, cMin = 1, cMax = 255, table = 0x8fa9458, fp_lookup = {vals = 0x177ff8e, rules = 0x8048f9f,
nalloc = 3366868, active = 0, inf_dmin = -0.58009721342067511, inf_dmax = 4.8586156784264609e-270, inf_min = -1075671068,
inf_max = 3368528}}
min = 1
max = 255
null_set = 1
dmin = 15355
dmax = 71744
module = (struct GModule *) 0x78d28c
flag = {A = 0x8f9ebd8, a = 0x8f9ec00, c = 0x8f9ec28, p = 0x8f9ec50, l = 0x8f9ec78, q = 0x8f9eca0, n = 0x8f9ecc8,
N = 0x8f9ecf0, one = 0x78d220, x = 0x8f9ed40, g = 0x8f9ed18, i = 0x8f9edb8, r = 0x8f9ed90, C = 0x8f9ed68}
option = {cell = 0x35323d73, fs = 0x8f90035, nv = 0x8f9eab8, output = 0x8f9eb08, nsteps = 0x8f9eb68}
0804a2f4 in main (argc=4, argv=0xbfe290a4) at main.c:242
242 for (i = 0; name = option.cell->answers[i]; i++)
I think it was already discussed:
http://grass.itc.it/pipermail/grass5/2004-August/015077.html
http://grass.itc.it/pipermail/grass5/2004-August/015079.html
Only that we now additional segfault...
Any hope?
Markus
More information about the grass-dev
mailing list