From: "ko1 (Koichi Sasada)" Date: 2013-02-17T14:24:46+09:00 Subject: [ruby-core:52335] [ruby-trunk - Bug #7772] Consider bumping stack size in ruby_qsort Issue #7772 has been updated by ko1 (Koichi Sasada). Category set to core Assignee set to nobu (Nobuyoshi Nakada) Target version set to 2.1.0 Nobu, could you check, and introduce it? I think it should be included with 2.0.0-p???. ---------------------------------------- Bug #7772: Consider bumping stack size in ruby_qsort https://bugs.ruby-lang.org/issues/7772#change-36380 Author: Conrad.Irwin (Conrad Irwin) Status: Open Priority: Normal Assignee: nobu (Nobuyoshi Nakada) Category: core Target version: 2.1.0 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/