[GRASS-dev] [GRASS GIS] #3344: r.stream.slope Segmentation fault: 11 error macOS 10.12.4

#3344: r.stream.slope Segmentation fault: 11 error macOS 10.12.4
------------------------------------------+-------------------------
Reporter: msweier | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.2.1
Component: Addons | Version: 7.0.4
Keywords: r.stream, segmentation fault | CPU: Unspecified
Platform: MacOSX |
------------------------------------------+-------------------------
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?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3344&gt;
GRASS GIS <https://grass.osgeo.org>

#3344: r.stream.slope Segmentation fault: 11 error macOS 10.12.4
--------------------------+------------------------------------------
  Reporter: msweier | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.1
Component: Addons | Version: 7.0.4
Resolution: | Keywords: r.stream, segmentation fault
       CPU: Unspecified | Platform: MacOSX
--------------------------+------------------------------------------

Comment (by martinl):

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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3344#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3344: r.stream.slope Segmentation fault: 11 error macOS 10.12.4
--------------------------+------------------------------------------
  Reporter: msweier | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.1
Component: Addons | Version: 7.0.4
Resolution: | Keywords: r.stream, segmentation fault
       CPU: Unspecified | Platform: MacOSX
--------------------------+------------------------------------------

Comment (by mmetz):

Replying to [ticket:3344 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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3344#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3344: r.stream.slope Segmentation fault: 11 error
--------------------------+------------------------------------------
  Reporter: msweier | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.4.1
Component: Addons | Version: 7.0.4
Resolution: | Keywords: r.stream, segmentation fault
       CPU: Unspecified | Platform: All
--------------------------+------------------------------------------
Changes (by sbl):

* platform: MacOSX => All
* milestone: 7.2.3 => 7.4.1

Comment:

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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3344#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>

#3344: r.stream.slope Segmentation fault: 11 error
--------------------------+------------------------------------------
  Reporter: msweier | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.4.1
Component: Addons | Version: 7.0.4
Resolution: | Keywords: r.stream, segmentation fault
       CPU: Unspecified | Platform: All
--------------------------+------------------------------------------

Comment (by mmetz):

Replying to [comment:5 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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3344#comment:6&gt;
GRASS GIS <https://grass.osgeo.org>

#3344: r.stream.slope Segmentation fault: 11 error
--------------------------+------------------------------------------
  Reporter: msweier | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.4.1
Component: Addons | Version: 7.0.4
Resolution: fixed | Keywords: r.stream, segmentation fault
       CPU: Unspecified | Platform: All
--------------------------+------------------------------------------
Changes (by sbl):

* status: new => closed
* resolution: => fixed

Comment:

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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3344#comment:7&gt;
GRASS GIS <https://grass.osgeo.org>