Stack overflow from infinite loop with bundler in 1.9-mode
----------------------------------------------------------
Key: JRUBY-6203
URL: https://jira.codehaus.org/browse/JRUBY-6203
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.5
Environment: RVM 1.9.2, bundler 1.0.21, OS X Lion
Reporter: Anders Bengtsson
Assignee: Thomas E Enebo
Hi!
When I start rake in my Rails app with JRuby 1.6.5 with --1.9 it breaks with
"stack level too deep". Using -d gives screen after screen of this:
...
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
at
rubyjit.full_gem_path_C6832BBF145F5FC75E71C0F1D212B0B02F354F9E.__file__(/Users/anders.bengtsson/.rvm/gems/jruby-1.6.5/gems/bundler-1.0.21/lib/bundler/rubygems_ext.rb:21)
at
rubyjit.full_gem_path_C6832BBF145F5FC75E71C0F1D212B0B02F354F9E.__file__(/Users/anders.bengtsson/.rvm/gems/jruby-1.6.5/gems/bundler-1.0.21/lib/bundler/rubygems_ext.rb)
at
org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
at
rubyjit.full_gem_path_C6832BBF145F5FC75E71C0F1D212B0B02F354F9E.__file__(/Users/anders.bengtsson/.rvm/gems/jruby-1.6.5/gems/bundler-1.0.21/lib/bundler/rubygems_ext.rb:21)
at
rubyjit.full_gem_path_C6832BBF145F5FC75E71C0F1D212B0B02F354F9E.__file__(/Users/anders.bengtsson/.rvm/gems/jruby-1.6.5/gems/bundler-1.0.21/lib/bundler/rubygems_ext.rb)
at
org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
at
rubyjit.full_gem_path_C6832BBF145F5FC75E71C0F1D212B0B02F354F9E.__file__(/Users/anders.bengtsson/.rvm/gems/jruby-1.6.5/gems/bundler-1.0.21/lib/bundler/rubygems_ext.rb:21)
at
rubyjit.full_gem_path_C6832BBF145F5FC75E71C0F1D212B0B02F354F9E.__file__(/Users/anders.bengtsson/.rvm/gems/jruby-1.6.5/gems/bundler-1.0.21/lib/bundler/rubygems_ext.rb)
at
org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
Exception `SystemStackError' at org/jruby/RubyArray.java:1612 - stack level too
deep
The code in bundler it gets stuck in looks like this:
alias_method :rg_full_gem_path, :full_gem_path
alias_method :rg_loaded_from, :loaded_from
def full_gem_path
source.respond_to?(:path) ?
Pathname.new(loaded_from).dirname.expand_path(Bundler.root).to_s :
rg_full_gem_path
end
This doesn't happen with JRuby 1.6.4 (nor with 1.6.5 in 1.8-mode as far as I
can tell).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email