Project

General

Profile

Actions

Bug #8654

closed

SEGV in Array#count

Added by Glass_saga (Masaki Matsushita) over 11 years ago. Updated about 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.1.0dev (2013-07-18 trunk 42039) [x86_64-linux]
[ruby-core:56072]

Description

Following code causes SEGV.

a1 = []
a2 = Array.new(100) {|i| i }
a2.count do |i|
p i
a2.replace(a1) if i == 0
end


Files

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0