[MacRuby] #779: Segfault occurs when use Struct which set Struct's instance to member.
#779: Segfault occurs when use Struct which set Struct's instance to member. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ $ cat test_struct.rb klass = Struct.new(:a, :b, :c) x = klass.new(1, 2, nil) y = klass.new(1, 2, nil) x.c = y y.c = x p x == y }}} Result of Ruby 1.9.1: {{{ $ ruby test_struct.rb true }}} Result of MacRuby Trunk: {{{ $ macruby test_struct.rb zsh: segmentation fault macruby test_struct.rb }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/779> MacRuby <http://macruby.org/>
#779: Segfault occurs when use Struct which set Struct's instance to member. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.7 Comment: Should be fixed in r4337. -- Ticket URL: <http://www.macruby.org/trac/ticket/779#comment:1> MacRuby <http://macruby.org/>
#779: Segfault occurs when use Struct which set Struct's instance to member. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Comment(by watson1978@…): When used "eql?", Segfault still occurs. {{{ $ cat test_struct.rb klass = Struct.new(:a, :b, :c) x = klass.new(1, 2, nil) y = klass.new(1, 2, nil) x.c = y y.c = x p x.eql? y }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/779#comment:2> MacRuby <http://macruby.org/>
#779: Segfault occurs when use Struct which set Struct's instance to member. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: Keywords: | ----------------------------------+----------------------------------------- Changes (by watson1978@…): * status: closed => reopened * resolution: fixed => Comment: Sorry, I had forgotten "reopen". -- Ticket URL: <http://www.macruby.org/trac/ticket/779#comment:3> MacRuby <http://macruby.org/>
#779: Segfault occurs when use Struct which set Struct's instance to member. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: reopened => closed * resolution: => fixed Comment: Indeed, good catch. Should be working in r4406. -- Ticket URL: <http://www.macruby.org/trac/ticket/779#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby