[#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: nobu.nokada@...
Date: 2003-10-12 14:30:13 UTC
List: ruby-core #1622
Hi,

At Sun, 12 Oct 2003 21:39:03 +0900,
ts wrote:
>  There are 2 different problems

Not different.

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

I guess it is the secondary side effect of the next bug.

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

It's the main problem.

That is, localjump by return stops at PROT_FUNC or rb_iterate()
and outer tag is not considered as the true destination.

-- 
Nobu Nakada

In This Thread