From p.dalgaard@biostat.ku.dk  Wed Mar 22 19:06:57 2000
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 22 Mar 2000 20:06:57 +0100
Subject: [Rd] segmentation fault with 1D array (PR#500)
In-Reply-To: Ben Bolker's message of "Wed, 22 Mar 2000 13:43:27 -0500 (EST)"
References: <Pine.LNX.4.10.10003221342370.10699-100000@bolker.zoo.ufl.edu>
Message-ID: <x2wvmukeni.fsf@blueberry.kubism.ku.dk>

Ben Bolker <ben@zoo.ufl.edu> writes:

> On Wed, 22 Mar 2000 J.C.Rougier@durham.ac.uk wrote:
> 
> > Here's a nasty one.  The following has caused a segmentation
> > fault and possibly also a bus error.
> > 
> > fred <- 1:6
> > dim(fred) <- 6
> > dimnames(fred) <- list(LETTERS[1:6])
> > mm <- matrix(1:12, 2, 6)
> > 
> > mm %*% fred # segmentation fault here
> > 
> > In the case without the dimnames assignment the result is OK.
> 
>   Here (1.0.0 on RH 6.0) I get
> 
> Error: invalid type for dimname (must be a vector)
> 
> instead of a segmentation fault.

Hm? 1.0.0 on RH 6.1 gives the segfault for me as does later patch
versions...

-- 
   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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] segmentation fault with 1D array (PR#500)
Peter Dalgaard BSA