Re: [Rd] Crash due to extreme example

2009-09-24 Thread Duncan Murdoch
On 9/24/2009 11:00 AM, Saptarshi Guha wrote: Thanks. What caused problem? R builds up the element name (x$x$x ...) in a fixed size buffer. There was code to detect when the buffer was full and stop building the name, but it was buggy. I patched the bug. Duncan Murdoch Regards Saptarshi

Re: [Rd] Crash due to extreme example

2009-09-24 Thread Saptarshi Guha
Thanks. What caused problem? Regards Saptarshi On Thu, Sep 24, 2009 at 6:20 AM, Duncan Murdoch wrote: > Now fixed, in R-devel and R-patched. > > Duncan Murdoch > > On 23/09/2009 7:10 PM, Saptarshi Guha wrote: >> >> Hello, >> I was trying this bit of code (i know it is an extreme case) >> >> g=fu

Re: [Rd] Crash due to extreme example

2009-09-24 Thread Duncan Murdoch
Now fixed, in R-devel and R-patched. Duncan Murdoch On 23/09/2009 7:10 PM, Saptarshi Guha wrote: Hello, I was trying this bit of code (i know it is an extreme case) g=function(r){ if(r==1) return(list(x=1)) else return(list(x=g(r-1))) } For z=g(500), the code runs b

Re: [Rd] Crash due to extreme example

2009-09-23 Thread Duncan Murdoch
On 23/09/2009 7:10 PM, Saptarshi Guha wrote: Hello, I was trying this bit of code (i know it is an extreme case) g=function(r){ if(r==1) return(list(x=1)) else return(list(x=g(r-1))) } For z=g(500), the code runs but when I print z i.e >> z I get *** caught bus e

[Rd] Crash due to extreme example

2009-09-23 Thread Saptarshi Guha
Hello, I was trying this bit of code (i know it is an extreme case) g=function(r){ if(r==1) return(list(x=1)) else return(list(x=g(r-1))) } For z=g(500), the code runs but when I print z i.e >> z I get *** caught bus error *** address 0x1, cause 'non-existent physical