Skip to content

stack level too deep (SystemStackError) #65

philwhln opened this Issue May 2, 2012 · 4 comments

2 participants

philwhln commented May 2, 2012

"stack level too deep (SystemStackError)"

ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]

I get this issue in addressable/idna.rb

The require of addressable/idna/pure.rb is failing.

require "addressable/idna/pure"

Running this example....

require "eventmachine"
require "em-xmlrpc-client" do do
    client = XMLRPC::Client.new2("")
    result ="someMethod", "arg1", 123) # Uses em-http-request.

The issue is being caused because the data assigned to UNICODE_DATA is too large. If I break it up with {}.merge({}).merge({}) statements I do not see this issue.

I cannot reproduce this outside of the above example.


Can you duplicate outside Event Machine? I'm really going to need a minimal test case here.

philwhln commented May 3, 2012

Hi Bob,

Thanks for the reply.

I managed to replicate it outside of Event Machine, but not outside of Fibers...

require "fiber"

f = do
  require "addressable/idna/pure"
stack level too deep (SystemStackError)
$ uname -a
Linux stackato-nrb6 2.6.38-13-server #57~lucid1-Ubuntu SMP Tue Mar 6 20:23:13 UTC 2012 x86_64 GNU/Linux
$ ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]

My short-term solution is to require "require 'addressable/idna'" at the top of my script before anything else runs, although this is not ideal, because 'addressable/idna' is a dependency of a dependency of a dependency.


OK, thanks, I think that should be sufficient for a test case.


Yup, confirmed, was able to get a working test that reproduces this.

@sporkmonger sporkmonger pushed a commit that closed this issue May 4, 2012
Bob Aman Moved unicode tables out into a data file.
This probably should have happened a long time ago. Closes #65.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.