Opened 14 months ago

Closed 14 months ago

Last modified 14 months ago

#3634 closed defect (fixed)

r.horizon: segmentation fault/bus error when raster using wrong geographical coordinates

Reported by: lbartoletti Owned by: grass-dev@…
Priority: normal Milestone:
Component: Default Version: 7.4.0
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

While trying to use the tool on a SRTM (N45E007), I was confronted with a segmentation and bus error. My mistake was inverting lat/lon...

Here's my procedure to reproduce it.

r.horizon elevation=N45E007 coordinates=45.737698,7.361012 step=5

Note: In latitude-longitude coordinate system specify buffers in degree
unit

39437 bus error (core dumped)  r.horizon elevation=N45E007 coordinates=45.737698,7.361012 step=5

r.horizon elevation=N45E007 coordinates=45.737698,7.361012 step=0 direction=215 bufferzone=1 maxdistance=5000

Note: In latitude-longitude coordinate system specify buffers in degree
unit

39574 segmentation fault (core dumped)  r.horizon elevation=N45E007 coordinates=45.737698,7.361012 step=0

Change History (3)

comment:1 Changed 14 months ago by mmetz

Resolution: fixed
Status: newclosed

In 73219:

r.horizon: check if coordinates are within the current region, fixes #3634

comment:2 Changed 14 months ago by mmetz

In 73220:

r.horizon: check if coordinates are within the current region, fixes #3634 (backport trunk r73129)

comment:3 Changed 14 months ago by mmetz

In 73221:

r.horizon: check if coordinates are within the current region, fixes #3634 (backport trunk r73129)

Note: See TracTickets for help on using tickets.