[ruby-core:63690] [ruby-trunk - Bug #9939] segfault by modifying array during Array#combination

From: nagachika00@...
Date: 2014-07-13 14:17:22 UTC
List: ruby-core #63690
Issue #9939 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE

r46417 and r46418 were backported into `ruby_2_1` branch at r46808.

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

* Author: Nobuyoshi Nakada
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: core
* Target version: current: 2.2.0
* ruby -v: r46416
* Backport: 2.0.0: REQUIRED, 2.1: DONE
----------------------------------------
~~~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/

In This Thread

Prev Next