Subject: bug#39204: r-rgdal: Reading of vector GIS data causes segfault

From: Wiktor Żelazny <[email-masked]>
Date: Mon, 20 Jan 2020 16:43:02 +0100

Hi list,

The same behaviour on two machines.

To reproduce:

guix environment --container --ad-hoc r r-rgdal
Rscript -e 'library(rgdal); dsn <- system.file("vectors", package = "rgdal")[1]; ogrInfo(dsn=dsn, layer="cities")'

   Loading required package: sp
   rgdal: version: 1.4-8, (SVN revision 845)
   Geospatial Data Abstraction Library extensions to R successfully loaded
   Loaded GDAL runtime: GDAL 3.0.2, released 2019/10/28
   Path to GDAL shared files:
   GDAL binary built with GEOS: TRUE
   Loaded PROJ.4 runtime: Rel. 4.9.3, 15 August 2016, [PJ_VERSION: 493]
   Path to PROJ.4 shared files: (autodetected)
   Linking to sp version: 1.3-2

   *** caught segfault ***
   address 0x30, cause 'memory not mapped'

   Traceback:
   1: ogrFIDs(dsn = dsn, layer = layer)
   2: ogrInfo(dsn = dsn, layer = "cities")
   An irrecoverable exception occurred. R is aborting now ...
   sh: rm: command not found
   Segmentation fault

Opening with QGIS, which also depends on GDAL (it uses PROJ.6 instead of
PROJ.4, though), works.

WŻ