[#1611] set_trace_func/Array#fetch error — "Nathaniel Talbott" <nathaniel@...>

I've reduced the error I reported in ruby-talk:84013 to the following code:

17 messages 2003/10/11

Re: set_trace_func/Array#fetch error

From: ts <decoux@...>
Date: 2003-10-12 12:39:03 UTC
List: ruby-core #1621
>>>>> "n" == nobu nokada <nobu.nokada@softhome.net> writes:

n> Unfortunately, I guess it doesn't solve the true problem.  It's
n> due to the bug that determining the local jump destination by
n> ruby_scope.  See the thread from [ruby-talk:83729].

 There are 2 different problems

   * PROT_TAG() must not be called with PROT_FUNC when call_cfunc() is
     called, precisely because localjump_destination make the test on
     ruby_scope 

   * #inject call rb_iterate() and a break terminate rb_iterate() and not
      enum_inject() (or any method which call rb_iterate)


Guy Decoux



In This Thread