From ntakebay@bio.indiana.edu  Sat Nov 27 01:32:42 1999
From: ntakebay@bio.indiana.edu (Naoki Takebayashi)
Date: Fri, 26 Nov 1999 20:32:42 -0500 (EST)
Subject: memory.profile() messes up the vector heap on Alpha/Linux?
In-Reply-To: <x2r9hc6c6f.fsf@blueberry.kubism.ku.dk>
Message-ID: <Pine.SOL.4.10.9911262020570.3852-100000@sunflower.bio.indiana.edu>

Thank you, Peter!
This fixed the problem. So 0.9.0 passes "make check" on Linux/alpha now!!

> Doh! Never mind gdb, sometimes you just need to look at the code:
> 
>     PROTECT(ans = allocVector(INTSXP, 21));
>     PROTECT(nms = allocVector(STRSXP, 21));
>     for (i = 0; i < 21; i++) {
>         STRING(ans)[i] = 0;
>         STRING(nms)[i] = R_BlankString;
>     }
> 
> Try making that INTEGER(ans)[i] = 0 ...


Naoki Takebayashi     <ntakebay@bio.indiana.edu>
--- Dept. of Biology, Indiana University, Jordan Hall 142
--- 1001 E. Third St. Bloomington, IN 47405-3700 USA



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


memory.profile() messes up the vector heap on Alpha/Linux?
Naoki Takebayashi