Issue #9939 has been reported by Nobuyoshi Nakada.

----------------------------------------
Bug #9939: segfault by modifying array during Array#combination
https://bugs.ruby-lang.org/issues/9939

* Author: Nobuyoshi Nakada
* Status: Assigned
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: core
* Target version: current: 2.2.0
* ruby -v: r46416
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
~~~ruby
$ ruby -e 'a = [*0..500]' -e 'a.combination(2) {|*,x| a.clear}'
-e:2: [BUG] Segmentation fault at 0x00000000000000
~~~



-- 
https://bugs.ruby-lang.org/