[#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-11 17:09:55 UTC
List: ruby-core #1617
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:

N> Ummm... I wish I could turn that in to useful code, but I'm nowhere near
N> doing so. I see two places in eval.c where PUSH_TAG(PROT_FUNC) is used;
N> should I try patching one of them to use PUSH_TAG(PROT_NONE)?

svg% diff -u eval.c.old eval.c
--- eval.c.old  2003-10-11 18:38:51.000000000 +0200
+++ eval.c      2003-10-11 18:47:17.000000000 +0200
@@ -4936,7 +4936,7 @@
                int state;
 
                call_trace_func("c-call", ruby_current_node, recv, id, klass);
-               PUSH_TAG(PROT_FUNC);
+               PUSH_TAG(PROT_NONE);
                if ((state = EXEC_TAG()) == 0) {
                    result = call_cfunc(body->nd_cfnc, recv, len, argc, argv);
                }
svg% 


p.s. : I'll try to stop to speak in anglois :-))


Guy Decoux

In This Thread