From ripley at stats.ox.ac.uk  Fri Apr  9 11:28:17 2010
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri, 9 Apr 2010 10:28:17 +0100 (BST)
Subject: [Rd] How to enable core dump?
In-Reply-To: <u2o38b9f0351004090059z26a104f8u776e85cfd43d7994@mail.gmail.com>
References: <u2o38b9f0351004090059z26a104f8u776e85cfd43d7994@mail.gmail.com>
Message-ID: <alpine.LFD.2.00.1004091020440.21199@localhost>

On Fri, 9 Apr 2010, Wincent wrote:

> Dear all, I encountered a core dump like this,

Or it seems, *no* core dump!

> (R:24072): Gdk-CRITICAL **: gdk_drawable_get_display: assertion
> `GDK_IS_DRAWABLE (drawable)' failed
>
> *** caught segfault ***
> address 0x78, 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
> Selection: 1
> aborting ...
> Segmentation fault
>
> When I select 1, there is still no saved core dump. I guess because it is
> not enabled. May I ask how to enable this option? Thanks.

What are your OS and shell (R has not disabled it, but your OS 
probably has)?  The usual way to disable this is to set the limit on 
the coredumpsize to 0, and this seems a common default these days.

In csh, use e.g. limit coredumpsize 2000, in bash use e.g. ulimit -c 2000:
on my system the limits are in kbytes.

>
> -- 
> Wincent Rong-gui HUANG
> Doctoral Candidate
> Dept of Public and Social Administration
> City University of Hong Kong
> http://asrr.r-forge.r-project.org/rghuang.html
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] How to enable core dump?
Prof Brian Ripley