RStan is crashing for me on all model files. Sometimes it gives this message:
*** caught segfault ***
address 0x20, cause ‘memory not mapped’
Traceback:
1: Module(module, mustStart = TRUE)
2: .getModulePointer(x)
3: <S4 object of class “Module”>$stan_fit4modelb8a464cd50a4_b524cd829fcb9f50f6761f2451b62eec
4: <S4 object of class “Module”>stan_fit4modelb8a464cd50a4_b524cd829fcb9f50f6761f2451b62eec
5: eval(call("“, mod, paste(“stan_fit4”, model_cppname, sep = “”)))
6: eval(call(”$", mod, paste(“stan_fit4”, model_cppname, sep = “”)))
7: object@mk_cppmodule(object)
8: .local(object, …)
9: sampling(sm, data, pars, chains, iter, warmup, thin, seed, init, check_data = TRUE, sample_file = sample_file, diagnostic_file = diagnostic_file, verbose = verbose, algorithm = match.arg(algorithm), control = control, check_unknown_args = FALSE, cores = cores, open_progress = open_progress, include = include, …)
10: sampling(sm, data, pars, chains, iter, warmup, thin, seed, init, check_data = TRUE, sample_file = sample_file, diagnostic_file = diagnostic_file, verbose = verbose, algorithm = match.arg(algorithm), control = control, check_unknown_args = FALSE, cores = cores, open_progress = open_progress, include = include, …)
11: stan(model_code = scode, iter = 10, verbose = FALSE)
Other times it just seg faults with no message. For example, it will seg fault if I try to fit this simple model from the RStan help page:
library(rstan)
scode <- "
parameters {
real y[2];
}
model {
y[1] ~ normal(0, 1);
y[2] ~ double_exponential(0, 2);
}
"
fit1 <- stan(model_code = scode, iter = 10, verbose = FALSE)
Segmentation fault (core dumped)
rstan (Version 2.17.3, GitRev: 2e1f913d3ca3)