From pdalgd at gmail.com  Fri Apr  9 11:26:00 2010
From: pdalgd at gmail.com (peter dalgaard)
Date: Fri, 9 Apr 2010 11:26:00 +0200
Subject: [Rd] How to enable core dump?
In-Reply-To: <u2o38b9f0351004090059z26a104f8u776e85cfd43d7994@mail.gmail.com>
References: <u2o38b9f0351004090059z26a104f8u776e85cfd43d7994@mail.gmail.com>
Message-ID: <04169539-CB16-46F6-B50B-9E726487B992@gmail.com>


On Apr 9, 2010, at 9:59 AM, Wincent wrote:

> Dear all, I encountered a core dump like this,
> 
> (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.

You need to set the resource limits before starting R.

Exactly how depends on your operating system (and you didn't tell), and the shell. With bash on unix-alikes, try "help ulimit" which will point you at "ulimit -c 20000" for max 20MB core files. 

> -- 
> 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

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



[Rd] How to enable core dump?
peter dalgaard