I THINK I've pinned down a reproducible example of a segfault that has been
annoying me intermittently since upgrading to v3 (now using R 3.0.1 GUI 1.61
Snow Leopard build (6492))
I'm afraid I've got no idea what sort of thing might lie behind this, but
perhaps someone who understands these things might be able to figure it out and
get it fixed in future releases (?):
First write a file of gibberish of a similar size to the actual files of code
I've been having the problem with (seems not to happen with a smaller files,
but it seems not to be dependent on the seed)
set.seed(456)
f<-file("gibberish.R", open="w")
for(i in 1:1500){
gibberish<-paste(sample(letters,50, replace=TRUE), collapse="")
cat(gibberish, "\n", file=f)
}
close(f)
Start a new GUI session (for me this loads .Rhistory but not a workspace) and
open the gibberish.R file (via the file menu)
Scroll to the bottom of the file (can happen at the top but it doesn't seem
reproducible for me there)
Copy some text (either from the file or here) that is a small subset of those
last few lines, e.g. the following letters
ctuswt
Highlight the last 5 lines of text (exact number doesn't matter but it does
need to include the copied text)
Open a find window with cmd f
paste the text into both boxes (one can alter the text in the replace box but
don't have to)
press the alt key, so that "Replace All" changes to "In Selection" and click on
it
I then get a segfault:
*** caught segfault ***
address 0x0, cause 'memory not mapped'
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
>
Selection:
This seems to happen reproducibly both on my Mountain Lion and Snow Leopard
machines.
Regards,
Chris
------------------------------------------------------------------------
Dr Christopher Knight Michael Smith Building
Wellcome Trust RCD Fellow Faculty of Life Sciences
Tel: +44 (0)161 2755378 The University of Manchester
room B.2012 Oxford Road
tinyurl.com/knightLab/<http://tinyurl.com/knightLab/>
Manchester M13 9PT
· . ,,><(((°> UK
------------------------------------------------------------------------
[[alternative HTML version deleted]]
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac