[ruby-core:77116] [Ruby trunk Bug#12716] Array#values_at fails for large argument size
From:
sameer.deshmukh93@...
Date:
2016-08-31 17:44:39 UTC
List:
ruby-core #77116
Issue #12716 has been reported by Sameer Deshmukh. ---------------------------------------- Bug #12716: Array#values_at fails for large argument size https://bugs.ruby-lang.org/issues/12716 * Author: Sameer Deshmukh * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.2.1p85 (2015-02-26 revision 49769) [i686-linux] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- Say I have this Array: ~~~ ruby a = [1] * 140_000 ~~~ Now, I call Array#values_at in this way: ~~~ ruby a.values_at(*[1,2,3]*100_000) ~~~ I get this error: ~~~ Exception: SystemStackError: stack level too deep -- 0: (pry):6:in `__pry__' ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>