[MacRuby] #1390: Abort when I pressed “About your application’s environment” in rails 3.0.7 welcome page.
#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 ------------------------------+--------------------------------------------- Reduction below. {{{ First: install rails 3.0.7 Next: generate a rails project $ env VM_DISABLE_RBO=1 macruby -S rails new demo Next: run server $ cd demo $ env VM_DISABLE_RBO=1 macruby -S rails server Next: access http://localhost:3000 (welcome page) with your browser Next: click the "About your application’s environment" link Then abort with a message below. Assertion failed: ((b->flags & flags) == flags), function rb_vm_prepare_block, file dispatcher.cpp, line 1406. }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1390> MacRuby <http://macruby.org/>
#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/>
participants (1)
-
MacRuby