From: nobu.nokada@... Date: 2002-05-24T16:34:43+09:00 Subject: Re: possible bug: stack dump with <<-String, #{...} and large loops Hi, At Fri, 24 May 2002 12:43:09 +0900, nobu.nokada@softhome.net wrote: > def bug > "#{x=0}" > end > bug > bug > > I guess `x' must be a dvar, and [ruby-talk:40979] is caused by > the same reason. Patch. Index: eval.c =================================================================== RCS file: /cvs/ruby/src/ruby/eval.c,v retrieving revision 1.295 diff -u -2 -p -r1.295 eval.c --- eval.c 2002/05/21 05:39:18 1.295 +++ eval.c 2002/05/24 07:26:25 @@ -3074,7 +3074,9 @@ rb_eval(self, n) ruby_sourceline = nd_line(node); ruby_in_eval++; + rb_dvar_push(0, 0); list->nd_head = compile(list->nd_head->nd_lit, ruby_sourcefile, ruby_sourceline); + ruby_dyna_vars = ruby_dyna_vars->next; ruby_eval_tree = 0; ruby_in_eval--; -- Nobu Nakada