The bug is now fixed in R-patched and R-devel.

Duncan Murdoch

On 8/7/2009 11:38 AM, Ben Madin wrote:
G'day all,

running the script in : [R.app GUI 1.28 (5399) i386-apple-darwin9.6.0]


R version 2.9.0 (2009-04-17)   i386-apple-darwin9.6.0

locale:
en_AU.UTF-8/en_AU.UTF-8/C/C/en_AU.UTF-8/en_AU.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base


returned :

  junk = 1 mjunk = -1 sum = 0 i = 522
  junk = 1 mjunk = -1 sum = 0 i = 523
  junk = 1 mjunk = -1 sum = 0 i = 524
  junk = 1 mjunk = -1 sum = 0 i = 525
Error in mjunk[3, 30] : object of type 'closure' is not subsettable
 >



Running it in the terminal returned:

  junk = 1 mjunk = -1 sum = 0 i = 954
  junk = 1 mjunk = -1 sum = 0 i = 955
  junk = 1 mjunk = -1 sum = 0 i = 956
  junk = 1 mjunk = -1 sum = 0 i = 957
  junk = 1 mjunk = -1 sum = 0 i = 958
Error in junk[1, 5] : object of type 'closure' is not subsettable


I don't know if this helps you at all...

cheers

Ben



On 07/08/2009, at 6:00 PM, Duncan Murdoch wrote:

On 8/6/2009 4:11 PM, Marilyn & Rich Short wrote:
Hello,

I'm having a problem in R. The R GUI is crashing with a message to
contact Microsoft for the solution. I've contacted Microsoft and they
are of no help. Below is a distilled set of code that will cause the
crash. As you will see, there are two do-loops within which is a "load"
command. The crash usually occurs after 200*400 (=80,000) to
2,000*400(=800,000) iterations.

Do you have any suggestions on work-arounds?

I can confirm it in R-patched as well.  It happens on the very first
time through if you set gctorture() on, so it looks like somewhere in
there is a missing PROTECT, and the garbage collector is reclaiming
something that it shouldn't.

I'll try to track it down, but I'm not sure how quick I'll be.  (My
house is full of contractors right now, so not a very nice place to work.)

I don't know any workaround other than "avoid doing the buggy thing".
But I can't tell you what that is....

Duncan Murdoch


______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to