[Rd] How to enable core dump?

peter dalgaard pdalgd at gmail.com
Fri Apr 9 11:26:00 CEST 2010


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



More information about the R-devel mailing list