From: "usa (Usaku NAKAMURA)" Date: 2013-11-01T00:00:21+09:00 Subject: [ruby-core:58106] [ruby-trunk - Bug #8654] SEGV in Array#count Issue #8654 has been updated by usa (Usaku NAKAMURA). Backport changed from 1.9.3: REQUIRED, 2.0.0: DONE to 1.9.3: DONE, 2.0.0: DONE Backported to ruby_1_9_3 at r43491. ---------------------------------------- Bug #8654: SEGV in Array#count https://bugs.ruby-lang.org/issues/8654#change-42695 Author: Glass_saga (Masaki Matsushita) Status: Closed Priority: Normal Assignee: Glass_saga (Masaki Matsushita) Category: core Target version: current: 2.1.0 ruby -v: ruby 2.1.0dev (2013-07-18 trunk 42039) [x86_64-linux] Backport: 1.9.3: DONE, 2.0.0: DONE Following code causes SEGV. a1 = [] a2 = Array.new(100) {|i| i } a2.count do |i| p i a2.replace(a1) if i == 0 end -- http://bugs.ruby-lang.org/