I have caught a segfault while trying to do an update.packages
. A bit of googling has not helped much except to suggest I have a bug in "some" package. It appears that rnaturalearth
is going to be a dependency in some spatial programs I have installed.
I did try removing rnaturalearth
, rebooting the computer and reinstalling with no luck.
Traceback is giving nothing.
SessionInfo is below but I am on Ubuntu 22.04, with R version 4.2.2 Patched and RStudio 2022.07.2+576 "Spotted Wakerobin"
traceback(install.packages("rnaturalearth"))
Installing package into ‘/home/john/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/rnaturalearth_0.3.2.tar.gz'
Content type 'application/x-gzip' length 747688 bytes (730 KB)
==================================================
downloaded 730 KB
* installing *source* package ‘rnaturalearth’ ...
** package ‘rnaturalearth’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
*** caught segfault ***
address 0x559c7d57e7ff, cause 'memory not mapped'
An irrecoverable exception occurred. R is aborting now ...
Segmentation fault (core dumped)
ERROR: lazy loading failed for package ‘rnaturalearth’
* removing ‘/home/john/R/x86_64-pc-linux-gnu-library/4.2/rnaturalearth’
Warning in install.packages :
installation of package ‘rnaturalearth’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpSqY2Iw/downloaded_packages’
3: .is.positive.intlike(x)
2: .traceback(x, max.lines = max.lines)
1: traceback(install("rnaturalearth"))
And
sessionInfo()
R version 4.2.2 Patched (2022-11-10 r83330)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.1 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8
[5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 LC_PAPER=en_CA.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.2.2 tools_4.2.2 remotes_2.4.2