Skip to content
Back to formatted view

Raw Message

Message-ID: <x28ytlb42n.fsf@biostat.ku.dk>
Date: 2003-05-05T21:08:28Z
From: Peter Dalgaard
Subject: segfault when applying strange coercion (PR#2923)
In-Reply-To: <200305051736.h45Ha92b016451@pubhealth.ku.dk>

ligges@statistik.uni-dortmund.de writes:

> I made a mistake -- and R crashed. A (more or less) reproducible example 
> seems to be:
> 
>    x <- matrix(nrow=20000, ncol=20)
>    x$any <- numeric(0)
> 
> It is possible to crash R by executing these lines several times (1 - 
> 20) on Windows as well as on Solaris (might be related to PR#2880 - 
> let's call it "non-existing list elements")

Linux too: (r-devel)

...
> x <- matrix(nrow=20000, ncol=20) ;    x$any <- numeric(0)
Warning message:
Coercing LHS to a list
> x <- matrix(nrow=20000, ncol=20) ;    x$any <- numeric(0)

Program received signal SIGSEGV, Segmentation fault.
Rf_copyMostAttrib (inp=0xa2325a8, ans=0x402f9008)
    at ../../../R/src/main/attrib.c:155
155             if ((TAG(s) != R_NamesSymbol) &&

Tried running it with gctorture() but haven't gotten the prompt back
yet.... 

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