Skip to content

Instantly share code, notes, and snippets.

@sgonyea
Created November 8, 2010 01:10
Show Gist options
  • Save sgonyea/667258 to your computer and use it in GitHub Desktop.
Save sgonyea/667258 to your computer and use it in GitHub Desktop.
Damnable SystemStackError
sgonyea@skg:~/Sites/curl_ffi$ irb -d
ruby-1.9.2-p0 > require './lib/curl_ffi'
Exception `LoadError' at <internal:lib/rubygems/custom_require>:29 - no such file to load -- ffi
Exception `LoadError' at <internal:lib/rubygems/custom_require>:29 - no such file to load -- rubygems/defaults/operating_system
Exception `LoadError' at <internal:lib/rubygems/custom_require>:37 - no such file to load -- rubygems/defaults/operating_system
Exception `LoadError' at <internal:lib/rubygems/custom_require>:29 - no such file to load -- rubygems/defaults/ruby
Exception `LoadError' at <internal:lib/rubygems/custom_require>:37 - no such file to load -- rubygems/defaults/ruby
Exception `LoadError' at <internal:lib/rubygems/custom_require>:29 - no such file to load -- 1.9/ffi_c
Exception `LoadError' at <internal:lib/rubygems/custom_require>:37 - no such file to load -- 1.9/ffi_c
Exception `LoadError' at /Users/sgonyea/.rvm/gems/ruby-1.9.2-p0/gems/ffi-0.6.3/lib/ffi/library.rb:53 - Could not open library 'libcurl': dlopen(libcurl, 5): image not found
/Users/sgonyea/Sites/curl_ffi/lib/bindings.rb:949: warning: method redefined; discarding old easy_setopt_handler
(eval):2: warning: previous definition of easy_setopt_handler was here
=> true
ruby-1.9.2-p0 > require './lib/streamly'
=> true
ruby-1.9.2-p0 > req = Streamly.get("http://google.com/")
Exception `SystemStackError' at /Users/sgonyea/Sites/curl_ffi/lib/bindings.rb:953 - stack level too deep
Exception `SystemStackError' at /Users/sgonyea/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/irb/workspace.rb:80 - stack level too deep
SystemStackError: stack level too deep
from /Users/sgonyea/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/irb/workspace.rb:80
Maybe IRB bug!!
ruby-1.9.2-p0 > exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment