Displaying 1 result from an estimated 1 matches for "set_primoffset".
2013 Mar 03
1
Missing PROTECT in mkPRIMSXP ?
...056 TYPEOF(s) = t;
which is R writing a new SEXP to the length_op location, as though this location
had been garbage collected.
Asking for R_Primitive("length") in mapply.c gets us to dstruct.c:60, where we
end up at
if (result == R_NilValue) {
result = allocSExp(type);
SET_PRIMOFFSET(result, offset);
}
...
return result;
which looks like the allocated SEXP is not added to the PrimCache vector, and
hence available for garbage collection. Perhaps a patch is along the lines of
Index: dstruct.c
===================================================================
--- dst...