[MacRuby] #1311: Segfault on nested method call with block
#1311: Segfault on nested method call with block ------------------------------+--------------------------------------------- Reporter: kouji@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby Later Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- I got SEGV with HEAD and 2099c43a78f24f5108ba7205a4a1933c17202661(Sun Apr 24 21:43:50 2011 +0900) below {{{ $ ./miniruby -e 'num = 1; 1.times { num.times { class A; 1.times {}; end } }' zsh: segmentation fault ./miniruby -e 'num = 1; 1.times { num.times { class A; 1.times {}; end } }' }}} Actually, I want to check how many memory leak below when I got SEGV :< {{{ $ ./miniruby -e ' num = 10000 loop { num.times { class A instance_eval {} end } }' }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1311> MacRuby <http://macruby.org/>
#1311: Segfault on nested method call with block ------------------------------+--------------------------------------------- Reporter: kouji@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby Later Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Comment(by lsansonetti@…): Nice catch. This is a compiler bug, when compiling a reference to the num dvar for the 1.times expression inside the class scope. Very subtle :) -- Ticket URL: <http://www.macruby.org/trac/ticket/1311#comment:1> MacRuby <http://macruby.org/>
#1311: Segfault on nested method call with block ------------------------------+--------------------------------------------- Reporter: kouji@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.11 Component: MacRuby | Resolution: fixed Keywords: | ------------------------------+--------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: MacRuby Later => MacRuby 0.11 Comment: Should be fixed in https://github.com/MacRuby/MacRuby/commit/6aaa619dc0915b34dc74fada00551a288a... -- Ticket URL: <http://www.macruby.org/trac/ticket/1311#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby