Project

General

Profile

Actions

Bug #9151

closed

Segfault in Ruby head

Added by sam.saffron (Sam Saffron) almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby-head
[ruby-core:58567]

Description

Following code causes a segfault in ruby head on x64:

class A
attr_accessor :b

def hash
[b,""].hash
end
end

class B
attr_accessor :a

def hash
[a,""].hash
end
end

a = A.new
b = B.new
a.b = b
b.a = a

p a.hash
p b.hash

p [a,"hello"].hash == [b,"world"].hash

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0