From: "Mehmet Yavuz Selim Soyturk" (via RT) <[EMAIL PROTECTED]>
   Date: Sun, 29 Jul 2007 16:29:15 -0700

   # New Ticket Created by  "Mehmet Yavuz Selim Soyturk" 
   # Please include the string:  [perl #44247]
   # in the subject line of all future correspondence about this issue. 
   # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=44247 >

   Calling a METHOD (declared in a pmclass) from PIR with :flat modifier
   set causes a segmentation fault . . .

   Expected behaviour:

   * 'exists' executes successfully
     or
   * it's not allowed to use :flat when calling METHODs and an exception
   gets thrown.

It should be allowed; your test case strikes me as perfectly legal.
Does the attached patch solve the problem?

   btw: Is there any reason to use METHODs over PCCMETHODs? That problem
   does not exists for PCCMETHODs.

   -- 
   Mehmet

Beats me.  But this is a bug, and should be fixed in any case.

                                        -- Bob Rogers
                                           http://rgrjr.dyndns.org/

* src/inter_call.c:
   + (Parrot_init_arg_nci):  Do init_call_stats.

Diffs between last version checked in and current workfile(s):

Index: src/inter_call.c
===================================================================
--- src/inter_call.c    (revision 20226)
+++ src/inter_call.c    (working copy)
@@ -168,6 +168,7 @@
     else
         Parrot_init_arg_indexes_and_sig_pmc(interp, CONTEXT(interp->ctx),
             interp->current_args, interp->args_signature, &st->src);
+    init_call_stats(st);
     Parrot_init_arg_sig(interp, CONTEXT(interp->ctx), sig, NULL, &st->dest);
     return 1;
 }

End of diffs.

Reply via email to