From vogranovich at jumptrading.com  Sat Feb 16 00:37:26 2008
From: vogranovich at jumptrading.com (Vadim Organovich)
Date: Fri, 15 Feb 2008 17:37:26 -0600
Subject: [Rd] crash in library(gbm) was:  Rscript temp file
Message-ID: <22D850BC39A25742977325ADDE208E7702669562E4@chiexchange02.w2k.jumptrading.com>

The crashes turned out to have nothing to do with the temp files. They seem to be caused by loading library(gbm). That is when many R sessions nearly simultaneously load the library R crashes with the message "The instruction at '0x63422398' referenced memory at '0x63422398'. The required data was not placed into memory because of an I/O error status of '0xc000020c'".

Does anyone have an idea what that might mean?

I am not able to reproduce it in controlled environment. This is Windows.

Thanks,
Vadim


________________________________________
From: r-devel-bounces at r-project.org [r-devel-bounces at r-project.org] On Behalf Of Vadim Organovich [vogranovich at jumptrading.com]
Sent: Friday, February 15, 2008 2:29 PM
To: r-devel at r-project.org
Subject: [Rd] Rscript temp file

Hi,

It seems that Rscript creates a temporary file to store the commands passed with the -e  option, under normal circumstances the temp  file gets deleted at some point.

Here is an example of a call I use:
q:/R/R-2.6.1/bin/Rscript.exe -e ".libPaths(\"q:/R/vogranovich/library\"); params <- list(a=1); source(foo)"

The temp files seem to be a problem when multiple jobs are run simultaneously. I suspect that when two Rscripts are run at almost the same time they try to create the same tepm file and clash over it, which causes one or both of them to die.

Is my guesswork corect? If yes, is there a way to avoid the clash, say by specifying which directory to use for temp files?

Thanks,
Vadim

        [[alternative HTML version deleted]]

______________________________________________
R-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] crash in library(gbm) was: Rscript temp file
Vadim Organovich