From: "duerst (Martin Dürst)" Date: 2013-02-03T16:28:33+09:00 Subject: [ruby-core:51819] [ruby-trunk - Bug #7772] Consider bumping stack size in ruby_qsort Issue #7772 has been updated by duerst (Martin D��rst). Sorry, I should have had a look at the patch. It makes indeed sense to apply this patch. ---------------------------------------- Bug #7772: Consider bumping stack size in ruby_qsort https://bugs.ruby-lang.org/issues/7772#change-35797 Author: Conrad.Irwin (Conrad Irwin) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: 1.9.3p362 At the moment the maximum size of the stack is 32. The comment implies this should be enough for arrays with up to 2**32 elements, but it's possible to create larger arrays on some big systems. I was not able to trigger a bug with: ([0, 1] * (2**32 + 10000)).sort! so it may actually never be a problem in practice, but it seems unsafe. -- http://bugs.ruby-lang.org/