Issue #11235 has been updated by Usaku NAKAMURA.

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

ruby_2_1 r51597 merged revision(s) 50827,50921.

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

* 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: DONE, 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/