Issue #10061 has been updated by Nobuyoshi Nakada.

Status changed from Feedback to Closed

----------------------------------------
Bug #10061: Segmentation fault
https://bugs.ruby-lang.org/issues/10061#change-47913

* Author: John Doe
* Status: Closed
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED
----------------------------------------
~~~
array = []
100000.times { array = [array] }
puts array
~~~
~~~
bug.rb:4: [BUG] Segmentation fault at 0x007fffaa0e0ff8
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0004 p:---- s:0011 e:000010 CFUNC  :puts
c:0003 p:---- s:0009 e:000008 CFUNC  :puts
c:0002 p:0022 s:0005 E:0022c0 EVAL   bug.rb:4 [FINISH]
c:0001 p:0000 s:0002 E:0020c8 TOP    [FINISH]

-- Ruby level backtrace information ----------------------------------------
bug.rb:4:in `<main>'
bug.rb:4:in `puts'
bug.rb:4:in `puts'

~~~



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