I am getting "caught segfault cause 'memory not mapped' " error when I use a big data with R in a linux server. The same function (svm, nnet or elasticnet) works when I reduce the dimension of the same data.

I get the following error when I use svm function (e1071 package):

*** caught segfault ***

address 0x7fdd271db2ec, cause 'memory not mapped'

Traceback:

1: terms.formula(formula, data = data)

2: terms(formula, data = data)

3: model.frame.default(formula = FMA_change_MCID ~ ., data = trainingData)

4: stats::model.frame(formula = FMA_change_MCID ~ ., data = trainingData)

5: eval(expr, p)

6: eval(expr, p)

7: eval.parent(m)

8: nnet.formula(FMA_change_MCID ~ ., decay = decayparam, size = sizeparam, Hess = FALSE, MaxNWts = 3e+05, data = trainingData, linout = FALSE, skip = FALSE, trace = FALSE, maxit = 300)

9: nnet(FMA_change_MCID ~ ., decay = decayparam, size = sizeparam, Hess = FALSE, MaxNWts = 3e+05, data = trainingData, linout = FALSE, skip = FALSE, trace = FALSE, maxit = 300)

10: eval(c.expr, envir = args, enclos = envir)

11: eval(c.expr, envir = args, enclos = envir)

12: doTryCatch(return(expr), name, parentenv, handler)

13: tryCatchOne(expr, names, parentenv, handlers[[1L]])

14: tryCatchList(expr, classes, parentenv, handlers)

15: tryCatch(eval(c.expr, envir = args, enclos = envir), error = function(e) e)

16: FUN(X[[i]], ...)

17: lapply(X = S, FUN = FUN, ...)

18: doTryCatch(return(expr), name, parentenv, handler)

19: tryCatchOne(expr, names, parentenv, handlers[[1L]])

I post also the session info:

> sessionInfo()

R version 3.4.4 (2018-03-15)

Platform: x86_64-pc-linux-gnu (64-bit)

Running under: Ubuntu 16.04.3 LTS

Matrix products: default

BLAS: /usr/lib/openblas-base/libblas.so.3

LAPACK: /usr/lib/libopenblasp-r0.2.18.so

locale:

[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C

[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8

[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8

[7] LC_PAPER=en_US.UTF-8 LC_NAME=C

[9] LC_ADDRESS=C LC_TELEPHONE=C

[11] LC_MEASUREMENT=en_US.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_3.4.4

Thank you

Similar questions and discussions