David had reported this to me privately earlier today. I'm fairly sure
the problem is caused by an invalid factor variable, with numeric rather
than integer data. At the moment I'm checking a patch to scan.c that
checks this to avoid a segfault.
If that's not the problem I'll report back to the list.
David James wrote:
>Hi,
>
>I'm experiencing R segmentation faults on multiple versions of R
>when writing out a particular data.frame:
>
> ## dd is a 44 by 3 data.frame
>
> load(url("http://stat.bell-labs.com/RS-DBI/download/dd.rda"))
> write.table(dd, file = "dd.csv", sep = ",", row.names
= FALSE)
>
>this occurs on
>
>
>
>>sessionInfo()
>>
>>
> R version 2.2.0, 2005-10-06, i686-pc-linux-gnu
>
> attached base packages:
> [1] "methods" "stats" "graphics"
"grDevices" "utils" "datasets"
> [7] "base"
>
>
>
>>sessionInfo()
>>
>>
> R version 2.2.1, 2005-12-20, i686-pc-linux-gnu
>
> attached base packages:
> [1] "methods" "stats" "graphics"
"grDevices" "utils" "datasets"
> [7] "base"
>
>
>
>>sessionInfo()
>>
>>
> Version 2.3.0 alpha (2006-03-27 r37590)
> i686-pc-linux-gnu
>
> attached base packages:
> [1] "methods" "stats" "graphics"
"grDevices" "utils" "datasets"
> [7] "base"
> > load("dd.rda")
> > write.table(dd, file = "dd.csv", sep=",",
row.names = TRUE)
>
> *** caught segfault ***
> address 0x18, cause 'memory not mapped'
>
> Traceback:
> 1: write.table(dd, file = "dd.csv", sep = ",",
row.names = TRUE)
>
> Possible actions:
> 1: abort (with core dump)
> 2: normal R exit
> 3: exit R without saving workspace
> 4: exit R saving workspace
> Selection: 3
>
>--
>David
>
>______________________________________________
>R-devel@r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-devel
>
>
>
[[alternative HTML version deleted]]