[#61424] [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals — Eric Wong <normalperson@...>

I'm unsure about this. I _hate_ the extra branches this adds;

13 messages 2014/03/12

[ruby-core:61535] [ruby-trunk - Bug #9505] Bug that should cause SystemStackError segfaults under Ruby 2.1

From: daniel@...
Date: 2014-03-16 10:15:25 UTC
List: ruby-core #61535
Issue #9505 has been updated by Daniel Fone.


I can reproduce almost exactly this issue on 2.1.1p97. Full details and steps I used to reproduce are in https://github.com/danielfone/rspec-memoization-segfault

----------------------------------------
Bug #9505: Bug that should cause SystemStackError segfaults under Ruby 2.1
https://bugs.ruby-lang.org/issues/9505#change-45821

* Author: Jimmy Cuadra
* Status: Feedback
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0]
* Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
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



-- 
http://bugs.ruby-lang.org/

In This Thread

Prev Next