From: "hammady (Hossam Hammady)" Date: 2013-04-11T20:32:09+09:00 Subject: [ruby-core:54174] [ruby-trunk - Bug #8253][Open] Can't eval very long strings (SystemStackError) Issue #8253 has been reported by hammady (Hossam Hammady). ---------------------------------------- Bug #8253: Can't eval very long strings (SystemStackError) https://bugs.ruby-lang.org/issues/8253 Author: hammady (Hossam Hammady) Status: Open Priority: Normal Assignee: Category: core Target version: ruby -v: ruby 1.9.2p320 (2012-04-20) [x86_64-linux] I have a very long string which is the output from a Solr server, RSolr gem fails to eval the response as a Ruby object because it is too long (> 640K). I have filed a detailed bug description here: https://github.com/mwmitchell/rsolr/issues/61 The problematic response can be found here: http://da.qcri.org/solr-response-46-70000.txt It boiled down that Kernel.eval fails because the string is too long for the allocated stack. File: vm.c Function: vm_set_eval_stack MACRO: CHECK_STACK_OVERFLOW Is it just a limitation in the VM or the stack can have a dynamically larger size? -- http://bugs.ruby-lang.org/