Re: [MacRuby] #1390: Abort when I pressed “About your application’s environment” in rails 3.0.7 welcome page.

MacRuby ruby-noreply at macosforge.org
Mon Sep 19 00:16:30 PDT 2011


#1390: Abort when I pressed “About your application’s environment” in rails 3.0.7
welcome page.
------------------------------+---------------------------------------------
 Reporter:  kouji@…           |       Owner:  lsansonetti@…        
     Type:  defect            |      Status:  new                  
 Priority:  major             |   Milestone:                       
Component:  MacRuby           |    Keywords:  rails                
------------------------------+---------------------------------------------

Comment(by kouji@…):

 There is a workaround below.
 {{{
 diff --git a/23f7aeb b/ab8d514
 index 23f7aeb..ab8d514 100644
 --- a/23f7aeb
 +++ b/ab8d514
 @@ -1403,7 +1403,10 @@ rb_vm_prepare_block(void *function, int flags,
 VALUE self, rb_vm_arity_t arity,
      }
      else {
         assert(b->dvars_size == dvars_size);
 -       assert((b->flags & flags) == flags);
 +       //assert((b->flags & flags) == flags);
 +       if ((b->flags & flags) != flags) {
 +           printf("%s:%d:%s: (b->flags & flags) != flags, b->flags(%d),
 flags(%d), (b->flags & flags)(%d)\n", __FILE__, __LINE__, __FUNCTION__,
 b->flags, flags, (b->flags & flags));
 +       }
      }

      b->proc = Qnil;
 }}}

 I got below, when I applied above changes.
 {{{
 dispatcher.cpp:1408:rb_vm_prepare_block: (b->flags & flags) != flags,
 b->flags(0), flags(64), (b->flags & flags)(0)
 dispatcher.cpp:1408:rb_vm_prepare_block: (b->flags & flags) != flags,
 b->flags(0), flags(64), (b->flags & flags)(0)
 dispatcher.cpp:1408:rb_vm_prepare_block: (b->flags & flags) != flags,
 b->flags(0), flags(64), (b->flags & flags)(0)
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1390#comment:1>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list