From: nagachika00@... Date: 2017-01-16T19:46:09+00:00 Subject: [ruby-core:79100] [Ruby trunk Bug#13052] Array#combination segfaults if the Array is modified during iteration Issue #13052 has been updated by Tomoyuki Chikanaga. Backport changed from 2.1: UNKNOWN, 2.2: DONE, 2.3: REQUIRED to 2.1: UNKNOWN, 2.2: DONE, 2.3: DONE ruby_2_3 r57350 merged revision(s) 57119. ---------------------------------------- Bug #13052: Array#combination segfaults if the Array is modified during iteration https://bugs.ruby-lang.org/issues/13052#change-62508 * Author: Kazuki Yamaguchi * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.1: UNKNOWN, 2.2: DONE, 2.3: DONE ---------------------------------------- Array#combination and Array#repeated_combination segfault if the Array is modified from the invoked block. Reproduce: ~~~ruby ary = *1..100 ary.combination(1) { |x| p x; ary.clear } #=> segfault # or ary.repeated_combination(1) { |x| p x; ary.clear } #=> segfault ~~~ This is the same as [Bug #9939], but it didn't fix the case of the argument is 1. -- https://bugs.ruby-lang.org/ Unsubscribe: