Project

General

Profile

Actions

Bug #9505

closed

Bug that should cause SystemStackError segfaults under Ruby 2.1

Added by Perceptes (Jimmy Cuadra) almost 11 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0]
Backport:
[ruby-core:60601]

Description

Using rspec-core.3.0.0.beta1 and ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0]:

require "rspec"
require "rspec/autorun"

describe "Ruby 2.1 segfault" do
  let(:argument) { double }

  subject { subject.new(double) }

  it "will segfault" do
    subject
  end
end

Running this program under Ruby 2.0 results in a SystemStackError. Under Ruby 2.1, Ruby segfaults.

Crash log: https://gist.github.com/jimmycuadra/8892336
Segfault output: https://gist.github.com/jimmycuadra/8892213


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #13412: Infinite recursion with define_method may cause silent SEGV or cfp consistency errorClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0