search for: forkex

Displaying 1 result from an estimated 1 matches for "forkex".

Did you mean: forked
2009 Nov 15
2
Segmentation faults on SEXP conversion
...ows: ptest <- function() { cfd <- as.integer(2); cmsg <- as.character("Hi"); storage.mode(cfd) <- "integer"; storage.mode(cmsg) <- "character"; .Call("Rwrite", fd=cfd, msg=cmsg, PACKAGE="forkex" ); } Upon running the above code as a call to `ptest()`, I receive a segmentation fault. Building the package as `R CMD check --use-valgrind ...` provides the following memcheck output: > ptest(); ==12591== Invalid read of size 1 ==12591== at 0x4D04209: SET_SYMVALUE (in /usr/...