[Rd] write.table and segment fault?

David James dj at research.bell-labs.com
Thu Mar 30 00:31:34 CEST 2006


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



More information about the R-devel mailing list