Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic package installation in RDsan is hanging #37

Open
bbolker opened this issue Jun 13, 2024 · 1 comment
Open

basic package installation in RDsan is hanging #37

bbolker opened this issue Jun 13, 2024 · 1 comment

Comments

@bbolker
Copy link

bbolker commented Jun 13, 2024

Please feel free to point out if I am making some fundamentally silly mistake.

docker pull wch1/r-debug:latest
docker run --rm -ti wch1/r-debug:latest bash

RDsan --version gives

R Under development (unstable) (2024-06-05 r86695) -- "Unsuffered Consequences"

running RDsan, then

install.packages("remotes")

The first time I run it I get a huge number of AddressSanitizer:DEADLYSIGNAL errors. (This seems related to this; the fix suggested there (sysctl vm.mmap_rnd_bits=28) returns a "read-only file system" error.

Ctrl-C to quit, then try again:

> install.packages("remotes")
Installing package into ‘/usr/local/RDsan/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/remotes_2.5.0.tar.gz'
Content type 'application/x-gzip' length 164496 bytes (160 KB)
==================================================
downloaded 160 KB

* installing *source* package ‘remotes’ ...
** package ‘remotes’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location

At this point the process hangs. As I write this there are two R processes running, one with 7 and one with 9 minutes of accumulated CPU time.

What would the next steps be to diagnose/fix this?

@dom500d
Copy link

dom500d commented Aug 12, 2024

You need to run the sysctl vm.mmap_rnd_bits command on the host machine, outside of the docker container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants