Project

General

Profile

Actions

Bug #9151

closed

Segfault in Ruby head

Added by sam.saffron (Sam Saffron) about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
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