Project

General

Profile

Bug #10460 » rspec_ruby_segfault.rb

RSpec segfault example - Ajedi32 (Ajedi32 W), 11/26/2014 10:29 PM

 
require 'ostruct'

describe "Ruby Segfault" do
let(:obj1) { OpenStruct.new(prop: obj2) }

describe "asdf" do
let(:obj2) { obj1 }

it "shouldn't produce a segfault, but it does (sometimes)" do
obj2
end
end
end
(1-1/2)