From simon.urbanek at r-project.org  Wed Jul  5 20:53:31 2006
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Wed, 5 Jul 2006 14:53:31 -0400
Subject: [Rd] problem with batch mode (PR#9062)
In-Reply-To: <20060705183532.3BCB95088A@slim.kubism.ku.dk>
References: <20060705183532.3BCB95088A@slim.kubism.ku.dk>
Message-ID: <528E237E-A874-4B95-9AC5-4E3F0DB62087@r-project.org>


On Jul 5, 2006, at 2:35 PM, tenney at cse.wustl.edu wrote:

>
> I have a perl script that constructs some large R script files and  
> runs R in batch mode with the R scripts.  It seems to work ok for a  
> while then starts throwing errors like this whenever I try to run R  
> in batch mode:
>
> /usr/lib64/R/bin/BATCH: line 52:  7875 Broken pipe              
> ( echo "invisible(options(echo = TRUE))"; cat ${in}; echo ''; echo  
> "proc.time ()" )
>        7876 Segmentation fault      | ${R_HOME}/bin/R ${opts} $
> {R_BATCH_OPTIONS} >${out} 2>&1
>
> I have had the same problem on the linux and osX versions of R.  Is  
> this a known bug?
>

You'll have to tell us more than that - at least what it is doing  
when it crashes. Please read the posting guide, we do need details  
before we can help you. Apparently something segfaults in your  
script, so you should attach a debugger to the process that is  
segfaulting and see what exactly crashes.

Cheers,
Simon



[Rd] problem with batch mode (PR#9062)
Simon Urbanek