Issue #11235 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE

Backported into `ruby_2_2` branch at r51473.

----------------------------------------
Bug #11235: [BUG] Segmentation fault
https://bugs.ruby-lang.org/issues/11235#change-53659

* Author: Ikuo Suyama
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.0.0p598 (2014-11-13) [x64-mingw32]
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: DONE
----------------------------------------
コード

~~~ruby
n = []
(1..10**9).each do |i|
  n << i
end
puts n.length
~~~

実行時のログ

~~~
>ruby a.rb
a.rb:3: [BUG] Segmentation fault
ruby 2.0.0p598 (2014-11-13) [x64-mingw32]
~~~

配列の要素数の上限を超えたため発生していると思いますが、
[BUG]という表示は適切ではないと思います。


---Files--------------------------------
bug-11235.log (4.14 KB)


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