Re: [Rd] R_NilValue and segfault.

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Tue, 17 Nov 2009 22:11:26 -0500

On 17/11/2009 9:31 PM, Guillaume Yziquel wrote:
> Guillaume Yziquel a écrit :

>> Hello.
>>
>> I've been trying to wrap up the R_NilValue into OCaml-R. I nevertheless 
>> get a segfault.

>
> Is the value of R_NilValue (I mean the address in the R_NilValue pointer
> located in the uninitialized data section - i.e. the BSS section) set up
> *after* the init function is called?

It is initialized in InitMemory, called from setup_Rmainloop, called from various places, including Rf_initEmbeddedR, which you should be calling.

Duncan Murdoch



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 18 Nov 2009 - 03:14:03 GMT

This archive was generated by hypermail 2.2.0 : Wed 18 Nov 2009 - 09:20:49 GMT