Actions
Bug #9727
closedArray#reject aborts with callcc
Description
2.0.0以降で、以下のコードが異常終了します。
require 'continuation'
cont = nil
a = [*1..10].reject do |i|
callcc{|c| cont = c} if !cont and i == 10
false
end
a.unshift(:x)
cont.call if a.size < 1000
Updated by nobu (Nobuyoshi Nakada) over 10 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Applied in changeset r45562.
array.c: maybe shared array
- array.c (ary_reject): may be turned into a shared array during
the given block. [ruby-dev:48101] [Bug #9727]
Updated by usa (Usaku NAKAMURA) over 10 years ago
- Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: DONE, 2.1: REQUIRED
Backported into ruby_2_0_0 at r46155.
Updated by nagachika (Tomoyuki Chikanaga) over 10 years ago
- Backport changed from 2.0.0: DONE, 2.1: REQUIRED to 2.0.0: DONE, 2.1: DONE
r45562 was backported into ruby_2_1
branch at r46188.
Actions
Like0
Like0Like0Like0