[GRASSLIST:946] Segmentation faults with r.cost

Colin Nielsen colin.nielsen at mail.mcgill.ca
Thu Apr 27 15:54:59 EDT 2006


I forgot to mention that the command works perfectly fine with a
smaller region (971 r x 1746 c) it's only on the larger region that it
starts having problems. Markus, perhaps you could try running the
command on a map closer to the one I was running it on (14342 rows,
14501 cols.) to see if you get errors.

I tried the gdb thing mentioned by Hamish but I got an error "Error:
dll starting at 0x78d41000 not found." Maybe it doesn't work well in
cygwin.

Perhaps instead the contents of the stackdump file could help...
Exception: STATUS_ACCESS_VIOLATION at eip=610D7A44
eax=00000000 ebx=00020000 ecx=00008000 edx=00000000 esi=61187BDC edi=00000000
ebp=0022D5C8 esp=0022D5BC
program=d:\gis\cygwin\usr\local\grass6.1.cvs\bin\r.cost, pid 1508,
thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame     Function  Args
0022D5C8  610D7A44  (00000000, 61187BDC, 00020000, 00090000)
00020080  610029A7  (00440044, 00020C14, 00000000, 00000000)
00020000  00020C10  (00004001, 00000000, 003B0003, 00000001)
      8 [main] r.cost 1508 _cygtls::handle_exceptions: Error while
dumping state (probably corrupted stack)

I guess I'll try winGrass now, let me know if you can think of
anything else that could help me.

-Colin

On 4/27/06, Markus Neteler <neteler at itc.it> wrote:
> Colin Nielsen wrote:
>
> >I have gotten the same error using grass 6.0 and 6.1-cvs (just got off
> >of cygwin setup half an hour ago). I'm running grass on winxp 64-bit.
> >
> >
> >
> >>r.cost -vk input=hydro_45 output=S1_oceancost1 start_rast=S1_hydronulls1 percent_memory=100
> >>
> >>
> >Null cells excluded from cost evaluation.
> >Source map is: Integer cell type
> >14342 rows, 14501 cols.
> >Creating some temporary files ...
> >./r.cost.tester: line 1:  2568 Segmentation fault      (core dumped)
> >r.cost -vk input=hydro_45 output=S1_oceancost1
> >start_rast=S1_hydronulls1 percent_memory=100
> >
> >I have tried this command with less memory, all the way down to 1% but
> >it still crashes. The only thing that changes is that it crashes later
> >in the process.
> >
> >Can anyone help? If the version on cygwin is not the most recent can
> >someone tell me how to get the most recent?
> >
> >
> >
>
> I have tried your command slightly modified in Spearfish on Linux, no
> problems.
> Here are the latest changes:
>  http://freegis.org/cgi-bin/viewcvs.cgi/grass6/raster/r.cost/?sortby=date#dirlist
>
> Probably the Cygwin binaries are older (the web site where you got them
> should
> indicate the date).
>
> Maybe give the new (experimental) winGRASS a try?
>
> Markus
>




More information about the grass-user mailing list