[MacRuby] #387: inspect with circular references crashes
#387: inspect with circular references crashes ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- {{{ $ cat insp.rb class Foo def initialize bar @bar = bar end end class Bar def initialize @foo = Foo.new(self) #@bar = self # this crashes too end end puts Bar.new.inspect }}} {{{ $ macruby insp.rb Segmentation fault }}} {{{ $ ruby insp.rb #<Bar:0x1001561d8 @foo=#<Foo:0x100156110 @bar=#<Bar:0x1001561d8 ...>>> }}} (BTW, this was a very hard one to find for me: Foreign code, multiple nested modules and many, many instance variables. First I thought it has to too witch complexity until I had the idea with the circular reference...) -- Ticket URL: <http://www.macruby.org/trac/ticket/387> MacRuby <http://macruby.org/>
#387: inspect with circular references crashes ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- Comment(by lsansonetti@…): Shorter reduction: {{{ $ ./miniruby -e "class C; def initialize; @foo=self; end; end; p C.new" Segmentation fault }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/387#comment:1> MacRuby <http://macruby.org/>
#387: inspect with circular references crashes ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------+----------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed Comment: Should be fixed in r2814. -- Ticket URL: <http://www.macruby.org/trac/ticket/387#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby