Opened 6 years ago

Closed 6 years ago

Last modified 6 years 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 by mmetz, 6 years ago

Resolution: fixed
Status: newclosed

In 73219:

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

comment:2 by mmetz, 6 years ago

In 73220:

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

comment:3 by mmetz, 6 years ago

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.