Opened 4 years ago

Closed 3 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 Changed 4 years ago by martinl

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

comment:2 in reply to:  description Changed 4 years ago by mmetz

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 Changed 4 years ago by martinl

Milestone: 7.2.17.2.2

comment:4 Changed 4 years ago by neteler

Milestone: 7.2.27.2.3

Ticket retargeted after milestone closed

comment:5 Changed 3 years ago by sbl

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 (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...

Last edited 3 years ago by sbl (previous) (diff)

comment:6 in reply to:  5 Changed 3 years ago by mmetz

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 Changed 3 years ago by sbl

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.