[MacRuby-devel] [MacRuby] #779: Segfault occurs when use Struct which set Struct's instance to member.
MacRuby
ruby-noreply at macosforge.org
Wed Jul 7 23:35:15 PDT 2010
#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/>
More information about the MacRuby-devel
mailing list