[GRASS-user] GRASS 7 error code 9

Hamish hamish_b at yahoo.com
Sat Nov 19 06:36:48 EST 2011


Hamish wrote:
> note that at a region size of 46341 x 46341 we
> get to 2^31 cells, and to the point where a signed
> 32bit integer overflows and wraps backwards on
> itself. If that were the case I'd suspect a malloc
> error or a segfault not SIGKILL, but it may be a
> clue.

your region is 42001x42001 so probably not to do
with the region size.

to recap:

  r.watershed -m ... memory=8000 
works.

  r.watershed -m ... memory=15000
fails.


lat/lon location, looks like the source is SRTM data. (is r.watershed happy in lat/lon locations?)


relevant section of the debug log is:

{{{
...
SECTION 1a: Mark masked and NULL cells
 0%
 2%
 4%
 100%
D1/3: open segments for A* points
D1/3: segment lib: fast address activated
D1/3: segment lib: fast seek activated
D1/3: open segments for A* search heap
D1/3: heap memory 1943.31 MB
D1/3: A* search heap open segments 971, total 6730
D1/3: segment lib: fast address activated
D1/3: segment lib: fast seek activated
SECTION 1b: Determining Offmap Flow.
WARNING: Subprocess failed with exit code 9
...
}}}


what happens if you try without the -m segmentation
flag?



Hamish



More information about the grass-user mailing list