[MacRuby-devel] [MacRuby] #227: Using a block's binding causes segfault

MacRuby ruby-noreply at macosforge.org
Wed Aug 26 13:41:47 PDT 2009


#227: Using a block's binding causes segfault
------------------------------------+---------------------------------------
 Reporter:  charles.nutter@…        |        Owner:  lsansonetti@…        
     Type:  defect                  |       Status:  closed               
 Priority:  blocker                 |    Milestone:  MacRuby 0.5          
Component:  MacRuby                 |   Resolution:  fixed                
 Keywords:                          |  
------------------------------------+---------------------------------------
Changes (by lsansonetti@…):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  MacRuby 0.4 => MacRuby 0.5


Comment:

 Should be fixed in trunk.

 {{{
 $ ./miniruby -e "def foo(&b); eval 'a = 2', b.binding; end; a = 1; foo {};
 puts a"
 2
 $ ruby19 -e "def foo(&b); eval 'a = 2', b.binding; end; a = 1; foo {};
 puts a"
 2
 }}}

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



More information about the MacRuby-devel mailing list