[rkward-devel] Segfault loading package RWeka

Egert, Bjoern begert at ipb-halle.de
Thu Jan 24 13:21:47 UTC 2008


Hello,

while loading the package "RWeka" I get the following segmentation 
fault:

> library("RWeka")

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

Traceback:
 1: .External(interface, obj at jobj, returnSig, method, ..., PACKAGE = "rJava")
 2: .jcall(clc, "Ljava/lang/reflect/Method;", "getDeclaredMethod",
"addURL", .jcast(ar, "[Ljava/lang/Class;"))
 3: .jmergeClassPath(paste(path, collapse = .Platform$path.sep))
 4: doTryCatch(return(expr), name, parentenv, handler)
 5: tryCatchOne(expr, names, parentenv, handlers[[1]])
 6: tryCatchList(expr, classes, parentenv, handlers)
 7: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if
(!is.null(call)) {        if (identical(call[[1]], quote(doTryCatch)))
call <- sys.call(-4)        dcall <- deparse(call)[1]        prefix <-
paste("Error in", dcall, ": ")        LONG <- 75        msg <-
conditionMessage(e)        sm <- strsplit(msg, "\n")[[1]]        if (14 +
nchar(dcall, type = "w") + nchar(sm[1], type = "w") >             LONG)
prefix <- paste(prefix, "\n  ", sep = "")    }    else prefix <- "Error : "
msg <- paste(prefix, conditionMessage(e), "\n", sep = "")
.Internal(seterrmessage(msg[1]))    if (!silent &&
identical(getOption("show.error.messages"),         TRUE)) {        cat(msg,
file = stderr())        .Internal(printDeferredWarnings())    }
invisible(structure(msg, class = "try-error"))})
 8: try(.jmergeClassPath(paste(path, collapse = .Platform$path.sep)),
silent = TRUE)
 9: .jaddClassPath(cpc)
10: .jinit(system.file("jar", c("weka.jar", "RWeka.jar"), package = pkgname,
lib.loc = libname))
11: fun(...)
12: doTryCatch(return(expr), name, parentenv, handler)
13: tryCatchOne(expr, names, parentenv, handlers[[1]])
14: tryCatchList(expr, classes, parentenv, handlers)
15: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if
(!is.null(call)) {        if (identical(call[[1]], quote(doTryCatch)))
call <- sys.call(-4)        dcall <- deparse(call)[1]        prefix <-
paste("Error in", dcall, ": ")        LONG <- 75        msg <-
conditionMessage(e)        sm <- strsplit(msg, "\n")[[1]]        if (14 +
nchar(dcall, type = "w") + nchar(sm[1], type = "w") >             LONG)
prefix <- paste(prefix, "\n  ", sep = "")    }    else prefix <- "Error : "
msg <- paste(prefix, conditionMessage(e), "\n", sep = "")
.Internal(seterrmessage(msg[1]))    if (!silent &&
identical(getOption("show.error.messages"),         TRUE)) {        cat(msg,
file = stderr())        .Internal(printDeferredWarnings())    }
invisible(structure(msg, class = "try-error"))})
16: try({    fun(...)    NULL})
17: runHook(".onLoad", package, env, package.lib, package)
18: loadNamespace(package, c(which.lib.loc, lib.loc), keep.source =
keep.source)
19: doTryCatch(return(expr), name, parentenv, handler)
20: tryCatchOne(expr, names, parentenv, handlers[[1]])
21: tryCatchList(expr, classes, parentenv, handlers)
22: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if
(!is.null(call)) {        if (identical(call[[1]], quote(doTryCatch)))
call <- sys.call(-4)        dcall <- deparse(call)[1]        prefix <-
paste("Error in", dcall, ": ")        LONG <- 75        msg <-
conditionMessage(e)        sm <- strsplit(msg, "\n")[[1]]        if (14 +
nchar(dcall, type = "w") + nchar(sm[1], type = "w") >             LONG)
prefix <- paste(prefix, "\n  ", sep = "")    }    else prefix <- "Error : "
msg <- paste(prefix, conditionMessage(e), "\n", sep = "")
.Internal(seterrmessage(msg[1]))    if (!silent &&
identical(getOption("show.error.messages"),         TRUE)) {        cat(msg,
file = stderr())        .Internal(printDeferredWarnings())    }
invisible(structure(msg, class = "try-error"))})
23: try({    ns <- loadNamespace(package, c(which.lib.loc, lib.loc),
keep.source = keep.source)    dataPath <- file.path(which.lib.loc, package,
"data")    env <- attachNamespace(ns, pos = pos, dataPath = dataPath)})
24: library("RWeka")

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

--- interrupted ---




> sessionInfo()
R version 2.6.1 (2007-11-26) 
i486-pc-linux-gnu 

locale:
LC_CTYPE=de_DE.UTF-8;LC_NUMERIC=C;LC_TIME=de_DE.UTF-8;LC_COLLATE=de_DE.UTF-8;
LC_MONETARY=de_DE.UTF-8;LC_MESSAGES=de_DE.UTF-8;LC_PAPER=de_DE.UTF-8;LC_NAME=
de_DE.UTF-8;LC_ADDRESS=de_DE.UTF-8;LC_TELEPHONE=de_DE.UTF-8;LC_MEASUREMENT=de
_DE.UTF-8;LC_IDENTIFICATION=de_DE.UTF-8

attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets  methods  
[8] base     

other attached packages:
[1] rJava_0.5-1    rkward_0.4.8.1

loaded via a namespace (and not attached):
[1] tools_2.6.1



any ideas why this happens ?

best 
Björn




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20080124/5ba0b355/attachment.html>


More information about the Rkward-devel mailing list