From J.C.Rougier@durham.ac.uk  Tue Apr 10 15:01:52 2001
From: J.C.Rougier@durham.ac.uk (J.C.Rougier@durham.ac.uk)
Date: Tue, 10 Apr 2001 16:01:52 +0200 (MET DST)
Subject: [Rd] Segmentation fault in subscripting array of lists (PR#904)
Message-ID: <200104101401.QAA23458@pubhealth.ku.dk>

I get a segmentation fault as follows:

> tmp <- array(list(), c(3, 4))
> tmp[[1, 2]]
NULL                                  # as expected
> tmp[[1, 2]]$fred <- 1:10
> tmp                                 # as expected
     [,1]   [,2]     [,3]   [,4]  
[1,] "NULL" "List,1" "NULL" "NULL"
[2,] "NULL" "NULL"   "NULL" "NULL"
[3,] "NULL" "NULL"   "NULL" "NULL"
> tmp[[1, 2]]                         # as expected
$fred
 [1]  1  2  3  4  5  6  7  8  9 10

> tmp[[1, ]]                          # whoops!
Segmentation fault

Cheers, Jonathan.

--please do not edit the information below--

Version:
 platform = sparc-sun-solaris2.7
 arch = sparc
 os = solaris2.7
 system = sparc, solaris2.7
 status = 
 major = 1
 minor = 2.1
 year = 2001
 month = 01
 day = 15
 language = R

Search Path:
 .GlobalEnv, Autoloads, package:base

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 in subscripting array of lists (PR#904)
J.C.Rougier@durham.ac.uk