Re: [Rd] How to disable R's crash prompt

From: Prof Brian Ripley <>
Date: Tue, 08 Mar 2011 14:50:38 +0000 (GMT)

On Tue, 8 Mar 2011, wrote:

> Dear R devel,
> I have a C++ app that calls into embedded R to perform some analytic
> calculations. When my app encounters a segmentation fault, R always
> prints the following crash prompt and asks me to enter an action:
> *** caught segfault ***
> address 0x8, cause 'memory not mapped'
> Possible actions:
> 1: abort (with core dump, if enabled)
> 2: normal R exit
> 3: exit R without saving workspace
> 4: exit R saving workspace
> The problem is my app will be run in non-interactive mode, so there
> is no way for me to enter the action. Is there a way to disable the

R does not do that in 'non-interactive mode'. Take a look at the code: that section is conditional on R_Interactive.

> crash prompt and have R simply crash the whole app? I have tried
> using "-file=/dev/null", "-slave", "-vanilla", and pretty much all
> other start options, to no avail.

They do not control if R is interactive: the front-end (yours, I presume since you mention embedding but do not otherwise give any details) does.

> Thanks in advance for your help,
> Wayne

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
Received on Tue 08 Mar 2011 - 14:52:56 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 Mar 2011 - 22:40:30 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive