Opened 7 years ago

Closed 6 years ago

#3344 closed defect (fixed)

r.stream.slope Segmentation fault: 11 error

Reported by: msweier Owned by: grass-dev@…
Priority: normal Milestone: 7.4.1
Component: Addons Version: 7.0.4
Keywords: r.stream, segmentation fault Cc:
CPU: Unspecified Platform: All

Description

I'm getting a "Segmentation fault: 11" error when trying to run r.stream.slope in Grass 7.0.4 built via homebrew on macOS 10.12.4. r.stream.slope was installed using g.extension via the command line and seems to work fine on grass 7.2.0 in my Windows 7 virtual machine. Other r.stream addons seem to be working fine. Can someone confirm this still exists in 7.2 on a mac?

Change History (7)

comment:1 by martinl, 7 years ago

Please provide exact command to replicate segfault. Ideally using NC dataset.

in reply to:  description comment:2 by mmetz, 7 years ago

Replying to msweier:

I'm getting a "Segmentation fault: 11" error when trying to run r.stream.slope in Grass 7.0.4 built via homebrew on macOS 10.12.4. r.stream.slope was installed using g.extension [...]

Please update r.stream.slope for your GRASS 7.0.4 installation and test again. Preferably, update to GRASS 7.2 and install all needed addons anew.

comment:3 by martinl, 7 years ago

Milestone: 7.2.17.2.2

comment:4 by neteler, 7 years ago

Milestone: 7.2.27.2.3

Ticket retargeted after milestone closed

comment:5 by sbl, 6 years ago

Milestone: 7.2.37.4.1
Platform: MacOSXAll
Summary: r.stream.slope Segmentation fault: 11 error macOS 10.12.4r.stream.slope Segmentation fault: 11 error

Same here on Ubuntu with fresh GRASS 7.4.

Here is an example with North Carolina data:

g.extension extension=r.stream.slope operation=add
g.region raster=elev_state_500m -p
r.stream.extract elevation=elev_state_500m threshold=100 stream_length=10 stream_raster=stream direction=dir
r.stream.slope elevation=elev_state_500m direction=dir gradient=grad difference=diff

Specifying any output gives segfault, specifying no output gives no error...

Version 0, edited 6 years ago by sbl (next)

in reply to:  5 comment:6 by mmetz, 6 years ago

Replying to sbl:

Same here on Ubuntu (both 14.04 and 16.04) with fresh GRASS 7.4 (r72099) and a bit older 7.2 (r70326).

Here is an example with North Carolina data:

g.extension extension=r.stream.slope operation=add
g.region raster=elev_state_500m -p
r.stream.extract elevation=elev_state_500m threshold=100 stream_length=10 stream_raster=stream direction=dir
r.stream.slope elevation=elev_state_500m direction=dir gradient=grad difference=diff

Specifying any output gives segfault, specifying no output gives no error...

Please try r72216, i.e. reinstall r.stream.slope

comment:7 by sbl, 6 years ago

Resolution: fixed
Status: newclosed

Coll! Thanks! That was very fast! I am grateful!

Note: See TracTickets for help on using tickets.