[Rd] R_NilValue and segfault.

Guillaume Yziquel guillaume.yziquel at citycable.ch
Wed Nov 18 03:39:35 CET 2009


Guillaume Yziquel a écrit :
> 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?

I mean: after the Rf_initEmbeddedR is called?

I Objective Caml is really static. Which means that if I declare R.null 
to be R_NilValue, it will take the value of the pointer before 
Rf_initEmbeddedR is executed. And it would be garbage. That would 
perhaps be my issue.

Could someone confirm?

All the best,

-- 
      Guillaume Yziquel
http://yziquel.homelinux.org/



More information about the R-devel mailing list