<HTML>
<HEAD>
<TITLE>R.terraflow crashing on Mac</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I tried to run r.terrraflow on my Mac Intel last night and it crashed. This is a version I compiled from the cvs on 23 January. Other recent versions seem to work fine on the FC6 and FC4 workstations in my lab. I’m copying the error below in case anyone has a clue. (FWIW, the warning about elevation_dem being found in multiple mapsets is both annoying and misleading as my working mapset was indeed PERMANENT. This now happens with multiple modules and I don’t remember it appearing as often before).<BR>
<BR>
Michael<BR>
<BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'>========= r.terraflow error ====================<BR>
r.terraflow elev=elevation_dem filled=rterraflow_filled direction=rterraflow_direction swatershed=rterraflow_swatershed accumulation=rterraflow_accum tci=rterraflow_tci d8cut=infinity memory=1000 STREAM_DIR=/var/tmp stats=stats.out --overwrite<BR>
<BR>
'cell/elevation_dem' was found in more mapsets (also found in <BR>
PERMANENT).<BR>
<BR>
elevation stored as FLOAT (4B)<BR>
<BR>
raster elevation_dem is of type CELL_TYPE --you should use <BR>
r.terraflow.short<BR>
region size is 93 x 143<BR>
STREAM temporary files in /var/tmp (THESE INTERMEDIATE STREAMS <BR>
WILL NOT BE<BR>
DELETED IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE <BR>
SPACE PLEASE<BR>
DELETE THESE FILES MANUALLY!)<BR>
file stats.out exists - renaming.<BR>
MFD flow direction<BR>
D8CUT=999999986991104.000000<BR>
memory size: 1000.00M (1048576000) bytes<BR>
Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED mode.<BR>
<BR>
'cell/elevation_dem' was found in more mapsets (also found in <BR>
PERMANENT).<BR>
total elements=13299, nodata elements=0<BR>
largest temporary files:<BR>
FILL: 727.29K (744744) [13299 elements, 56B each]<BR>
FLOW: 1.01M (1063920) [13299 elements, 80B each]<BR>
Will need at least 2.03M (2127840) space available in /var/tmp<BR>
------------------------------<BR>
COMPUTING FLOW DIRECTIONS<BR>
classifying nodata (inner & boundary)<BR>
r.terraflow(9913) malloc: *** Deallocation of a pointer not malloced:<BR>
0x23aff8; This could be a double free(), or free() called with the <BR>
middle of<BR>
an allocated block; Try setting environment variable MallocHelp to <BR>
see tools<BR>
to help debug<BR>
delete: MM_manager.register_deallocation failed<BR>
/Users/cmbarton/grass_dev/grass6/macosx/GRASS/../../raster/ <BR>
r.terraflow/IOStr<BR>
eam/lib/src/mm.cc:359: failed assertion `0'<BR>
<BR>
<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution & Social Change <BR>
Center for Social Dynamics & Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>