From: sameer.deshmukh93@... Date: 2016-08-31T17:44:39+00:00 Subject: [ruby-core:77116] [Ruby trunk Bug#12716] Array#values_at fails for large argument size 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: