Re: [Rd] R_NilValue and segfault.

From: Guillaume Yziquel <>
Date: Wed, 18 Nov 2009 03:39:35 +0100

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

______________________________________________ mailing list
Received on Wed 18 Nov 2009 - 02:42:03 GMT

This archive was generated by hypermail 2.2.0 : Wed 18 Nov 2009 - 04:50:28 GMT