From juho.vuori at fimr.fi  Wed Jun 11 07:40:03 2008
From: juho.vuori at fimr.fi (juho.vuori at fimr.fi)
Date: Wed, 11 Jun 2008 07:40:03 +0200 (CEST)
Subject: [Rd] read.table() causes segfault with incorrect data (PR#11627)
Message-ID: <20080611054003.D1E67283416D@mail.pubhealth.ku.dk>

Full_Name: Juho Vuori
Version: 2.7.0 (2008-04-22)
OS: Linux poseidon.fimr.fi 2.6.23.17-88.fc7PAE #1 SMP Thu May 15 00:22:53 EDT 2008 i686 i686 i386 GNU/Linux
Submission from: (NULL) (193.166.188.194)


Calling read.table() twice the following way causes a segmentation fault in R.
Run R and type the following commands:

> read.table(stdin())
0: 1 2 3
1: 3
2: 
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  : 
  line 2 did not have 3 elements
> read.table(stdin())

 *** caught segfault ***
address 0x64616572, cause 'memory not mapped'

Traceback:
 1: read.table(stdin())



Segmentation fault only occurs if the first call failed due to incorrect data.



[Rd] read.table() causes segfault with incorrect data (PR#11627)
juho.vuori at fimr.fi