From p.dalgaard@kubism.ku.dk  Wed May  7 16:25:49 1997
From: p.dalgaard@kubism.ku.dk (Peter Dalgaard BSA)
Date: 07 May 1997 17:25:49 +0200
Subject: R-alpha: cbind/memory-bug, (was Re: contr.helmert bug)
In-Reply-To: Thomas Lumley's message of Wed, 7 May 1997 08:00:24 -0700 (PDT)
References: <Pine.SUN.3.95.970507075642.2722B-100000@zen>
Message-ID: <x2207jmhhe.fsf@bush.kubism.ku.dk>

Thomas Lumley <thomas@biostat.washington.edu> writes:

> I have a probably related problem. Sporadically, an attempt to do
> 
> a[,1,1,drop=F]
> 
> or similar subsetting on a 3-d matrix causes a segfault at line 83 of
> attrib.c.  In a previous version this happened reliably when dimensions
> were lost from multi-d arrays and was due to incorrect handling of the
> dimnames attributes which crashed attrib.c at that point when the dimnames
> were accessed.
> 
> Is the same sort of thing happening again?

Not at all unlikely. As far as I can see, this doesn't really have
anything to do with contr.helmert, but with cbind, dimnames, and
garbage collection. Contr.helmert only comes in due to the fact that
it provokes a garbage collection at a critical time. Your examples
don't involve the garbage collector, but it might still tickle the
same bug...

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: cbind/memory-bug, (was Re: contr.helmert bug)
Peter Dalgaard BSA