From tlumley at u.washington.edu  Tue Sep 20 15:27:49 2005
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Tue, 20 Sep 2005 06:27:49 -0700 (PDT)
Subject: [Rd] as.data.frame segfaults on large lists (PR#8141)
In-Reply-To: <x2ll1u48wo.fsf@turmalin.kubism.ku.dk>
References: <20050918153744.AB3C0CC03@slim.kubism.ku.dk>
	<x2ll1u48wo.fsf@turmalin.kubism.ku.dk>
Message-ID: <Pine.LNX.4.63a.0509200627170.28721@homer21.u.washington.edu>


Under Valgrind on x86_64 I get
==27405==  Access not within mapped region at address 0x33FFEFD8
==27405==    at 0x447045: Rf_substituteList (coerce.c:2003)
==27405== Stack overflow in thread 1: can't grow stack to 0x33FFEF98


 	-thomas

On Sun, 18 Sep 2005, Peter Dalgaard wrote:

> ulrich.poetter at ruhr-uni-bochum.de writes:
>
>> Full_Name: Ulrich Poetter
>> Version: 2.1.1
>> OS: i686-pc-linux-gnu FC2
>> Submission from: (NULL) (134.147.95.187)
>>
>>
>> as.data.frame() segfaults on lists with very many elements:
>>
>>> dfn <- rep(list(rep(0,2)),198000)
>>> test <- as.data.frame.list(dfn)
>>
>> Process R segmentation fault at Sun Sep 18 17:06:02 2005
>
> Not for me on FC4. The process size grows to about 180M and the system
> thrashes badly, but the calculation runs to completion.
>
> It's not unlikely that we are ignoring a failed allocation somewhere,
> but there's not much hope of finding it from the available
> information. You could try running under gdb and see where things go
> wrong for you.
>
> --
>   O__  ---- Peter Dalgaard             ?ster Farimagsgade 5, Entr.B
>  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
> (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
> ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle


[Rd] as.data.frame segfaults on large lists (PR#8141)
Thomas Lumley