Project

General

Profile

Actions

Bug #13948

closed

Segfault instead of recursion depth error

Added by rpon (Ryan Pon) about 7 years ago. Updated about 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
2.4.2
[ruby-core:83054]

Description

Repro instructions:


# (using Ruby 2.4.2)
# 1. $ git clone git@github.com:thoughtbot/factory_girl.git && cd factory_girl
# 2. $ bundle install
# 3. Add the code snippet under spec/acceptance/recursion.rb
# 4. $ rspec spec/acceptance/recursion.rb

require "spec_helper"

describe "seg fault" do
  before do
    define_model("User", two: :string, one: :string)

    FactoryGirl.define do
      factory :user do
        one { two }
        two { one }
      end
    end
  end

  subject { FactoryGirl.create(:user) }

  it('recursion depth error') { subject }
  it('segfault')              { subject } # need to do deep recursion twice
end

Results in:

[1]    1229 segmentation fault  bundle exec rspec

Related issues 1 (1 open0 closed)

Related to Ruby master - Bug #13164: A second `SystemStackError` exception results in `Segmentation fault (core dumped)`OpenActions
Actions #1

Updated by shyouhei (Shyouhei Urabe) about 7 years ago

  • Related to Bug #13164: A second `SystemStackError` exception results in `Segmentation fault (core dumped)` added
Actions #2

Updated by jeremyevans0 (Jeremy Evans) about 5 years ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0