Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6.6
    • Fix Version/s: JRuby 1.6.7
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Number of attachments :
      0

      Description

      I installed 1.6.6 this morning and can't run cucumer with it:

      hk@hk:~/ws/r3/us$ jruby -J-Xmx2000m -J-XX:MaxPermSize=256m -S  cucumber --color --format pretty
      Using the default profile...
      load error: bundler/definition -- java.lang.StackOverflowError: null (LoadError)
      /home/hk/.rvm/gems/jruby-1.6.6@global/gems/bundler-1.0.21/lib/bundler.rb:138:in `definition'
      /home/hk/.rvm/gems/jruby-1.6.6@global/gems/bundler-1.0.21/lib/bundler.rb:126:in `load'
      /home/hk/.rvm/gems/jruby-1.6.6@global/gems/bundler-1.0.21/lib/bundler.rb:110:in `setup'
      /home/hk/ws/r3/us/config/boot.rb:8:in `(root)'
      org/jruby/RubyKernel.java:1027:in `require'
      /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
      /home/hk/ws/r3/us/config/boot.rb:1:in `(root)'
      org/jruby/RubyKernel.java:1027:in `require'
      /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
      /home/hk/ws/r3/us/config/application.rb:2:in `(root)'
      org/jruby/RubyKernel.java:1027:in `require'
      /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
      /home/hk/ws/r3/us/config/environment.rb:7:in `(root)'
      org/jruby/RubyKernel.java:1027:in `require'
      /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `require'
      /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
      /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-rails-1.2.0/lib/cucumber/rails.rb:28:in `(root)'
      org/jruby/RubyKernel.java:1052:in `load'
      /home/hk/ws/r3/us/features/support/env.rb:143:in `load_code_file'
      /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:171:in `load_file'
      /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
      org/jruby/RubyArray.java:1614:in `each'
      /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
      /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime.rb:137:in `load_step_definitions'
      /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime.rb:39:in `run!'
      /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
      /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/cli/main.rb:20:in `execute'
      /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/cucumber:14:in `(root)'
      org/jruby/RubyKernel.java:1052:in `load'
      /home/hk/.rvm/gems/jruby-1.6.6@us/bin/cucumber:19:in `(root)'
      hk@hk:~/ws/r3/us$ 
      

      But with 1.6.5 it works:

      hk@hk:~/ws/r3/us$ jruby -J-Xmx2000m -J-XX:MaxPermSize=256m -S  cucumber --color --format pretty $1 $2 $3 $4 $5
      Using the default profile...
      
      Feature:
      

      I've not much more infos about that. a

      puts "hi"
      

      on line 1 of bundler/definition.rb is executed, but the original line 1, which is

      require "digest/sha1"
      

      crashes with the above error message.

      I find it quite strange, that the following works with JRuby 1.6.6:

      hk@hk:~/ws/r3/us$ rvm use 1.6.6@us
      Using /home/hk/.rvm/gems/jruby-1.6.6 with gemset us
      hk@hk:~/ws/r3/us$ jruby -J-Xmx2000m -J-XX:MaxPermSize=256m -S  rails runner "puts 'hi'"
      hi
      hk@hk:~/ws/r3/us$ 
      

      Because here all the bundler stuff is loaded in the same way..
      Any ideas on how to analyse this?

      thanks, Heiko

        Issue Links

          Activity

          Hide
          Heiko Seebach added a comment - - edited

          I've some more findings. The same happens for bundler 1.1.rc7:

          hk@hk:~/ws/r3/us$ jruby -J-Xss10m -J-Xmx2000m -J-XX:MaxPermSize=256m -S  cucumber 
          Using the default profile...
          load error: bundler/definition -- java.lang.StackOverflowError: null (LoadError)
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:134:in `definition'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:122:in `load'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:106:in `setup'
          /home/hk/ws/r3/us/config/boot.rb:8:in `(root)'
          org/jruby/RubyKernel.java:1027:in `require'
          /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
          /home/hk/ws/r3/us/config/boot.rb:1:in `(root)'
          org/jruby/RubyKernel.java:1027:in `require'
          /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
          /home/hk/ws/r3/us/config/application.rb:2:in `(root)'
          org/jruby/RubyKernel.java:1027:in `require'
          /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
          /home/hk/ws/r3/us/config/environment.rb:7:in `(root)'
          org/jruby/RubyKernel.java:1027:in `require'
          /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `require'
          /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-rails-1.2.0/lib/cucumber/rails.rb:28:in `(root)'
          org/jruby/RubyKernel.java:1052:in `load'
          /home/hk/ws/r3/us/features/support/env.rb:143:in `load_code_file'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:171:in `load_file'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
          org/jruby/RubyArray.java:1614:in `each'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime.rb:137:in `load_step_definitions'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime.rb:39:in `run!'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/cli/main.rb:20:in `execute'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/cucumber:14:in `(root)'
          org/jruby/RubyKernel.java:1052:in `load'
          /home/hk/.rvm/gems/jruby-1.6.6@us/bin/cucumber:19:in `(root)'
          hk@hk:~/ws/r3/us$ 
          

          And when I run jruby with -d, I get internal Java stacktraces which migth be helpful:

          java.lang.StackOverflowError
          	at sun.nio.cs.UTF_8.updatePositions(UTF_8.java:76)
          	at sun.nio.cs.UTF_8$Encoder.encodeArrayLoop(UTF_8.java:411)
          	at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:466)
          	at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:561)
          	at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:257)
          	at java.lang.StringCoding.encode(StringCoding.java:289)
          	at java.lang.String.getBytes(String.java:954)
          	at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
          	at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:243)
          	at java.io.File.exists(File.java:750)
          	at org.jruby.ext.posix.JavaSecuredFile.exists(JavaSecuredFile.java:119)
          	at org.jruby.RubyFileTest.file_p(RubyFileTest.java:168)
          	at org.jruby.RubyFileTest$FileTestFileMethods.file_p(RubyFileTest.java:460)
          	at org.jruby.RubyFileTest$FileTestFileMethods$s$1$0$file_p.call(RubyFileTest$FileTestFileMethods$s$1$0$file_p.gen:65535)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
          	at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.block_1$RUBY$__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:55)
          	at rubyjit$Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4$block_1$RUBY$__file__.call(rubyjit$Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4$block_1$RUBY$__file__:65535)
          	at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:112)
          	at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:95)
          	at org.jruby.runtime.Block.yield(Block.java:130)
          	at org.jruby.RubyArray.collect(RubyArray.java:2324)
          	at org.jruby.RubyArray$i$0$0$collect.call(RubyArray$i$0$0$collect.gen:65535)
          	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:142)
          	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:153)
          	at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:54)
          	at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
          	at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:267)
          	at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
          	at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:409)
          	at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:147)
          	at org.jruby.RubyClass.finvoke(RubyClass.java:536)
          	at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:529)
          	at org.jruby.RubyEnumerable.callEach(RubyEnumerable.java:93)
          	at org.jruby.RubyEnumerable.detectCommon(RubyEnumerable.java:530)
          	at org.jruby.RubyEnumerable.detectCommon(RubyEnumerable.java:521)
          	at org.jruby.RubyEnumerable.find(RubyEnumerable.java:573)
          	at org.jruby.RubyEnumerable$s$find.call(RubyEnumerable$s$find.gen:65535)
          	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:142)
          	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:153)
          	at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.chained_0_rescue_1$RUBY$SYNTHETIC__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38)
          	at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb)
          	at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
          	at rubyjit.Gem::Specification#spec_directories_from_classpath_3A3B4B0D25414550A64848469D47B44042E60BE3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:72)
          	at rubyjit.Gem::Specification#spec_directories_from_classpath_3A3B4B0D25414550A64848469D47B44042E60BE3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
          	at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:54)
          	at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
          	at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:267)
          	at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
          	at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:409)
          	at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:147)
          	at org.jruby.RubyClass.finvoke(RubyClass.java:536)
          	at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:529)
          	at org.jruby.RubyEnumerable.callEach(RubyEnumerable.java:93)
          	at org.jruby.RubyEnumerable.detectCommon(RubyEnumerable.java:530)
          	at org.jruby.RubyEnumerable.detectCommon(RubyEnumerable.java:521)
          	at org.jruby.RubyEnumerable.find(RubyEnumerable.java:573)
          	at org.jruby.RubyEnumerable$s$find.call(RubyEnumerable$s$find.gen:65535)
          	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:142)
          	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:153)
          	at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.chained_0_rescue_1$RUBY$SYNTHETIC__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38)
          	at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb)
          	at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
          	at rubyjit.Gem::Specification#spec_directories_from_classpath_3A3B4B0D25414550A64848469D47B44042E60BE3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:72)
          	at rubyjit.Gem::Specification#spec_directories_from_classpath_3A3B4B0D25414550A64848469D47B44042E60BE3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
          	at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:54)
          	at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
          	at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:267)
          	at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
          	at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:409)
          	at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:147)
          	at org.jruby.RubyClass.finvoke(RubyClass.java:536)
          	at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:529)
          	at org.jruby.RubyEnumerable.callEach(RubyEnumerable.java:93)
          

          this repeats for about 1000 lines, until the known output:

          	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:142)
          	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:153)
          	at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.chained_0_rescue_1$RUBY$SYNTHETIC__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38)
          	at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb)
          	at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
          	at rubyjit.Gem::Specification#spec_directories_from_classpath_3A3B4B0D25414550A64848469D47B44042E60BE3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:72)
          	at rubyjit.Gem::Specification#spec_directories_from_classpath_3A3B4B0D25414550A64848469D47B44042E60BE3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
          	at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:54)
          	at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
          	at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:267)
          	at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127)
          	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133)
          	at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:409)
          	at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb)
          	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:147)
          	at org.jruby.RubyClass.finvoke(RubyClass.java:536)
          	at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:529)
          	at org.jruby.RubyEnumerable.callEach(RubyEnumerable.java:93)
          Exception `LoadError' at /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:134 - load error: bundler/definition -- java.lang.StackOverflowError: null
          Exception `LoadError' at /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:134 - load error: bundler/definition -- java.lang.StackOverflowError: null
          Exception `LoadError' at /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:134 - load error: bundler/definition -- java.lang.StackOverflowError: null
          load error: bundler/definition -- java.lang.StackOverflowError: null (LoadError)
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:134:in `definition'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:122:in `load'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:106:in `setup'
          /home/hk/ws/r3/us/config/boot.rb:8:in `(root)'
          org/jruby/RubyKernel.java:1027:in `require'
          /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
          /home/hk/ws/r3/us/config/boot.rb:1:in `(root)'
          org/jruby/RubyKernel.java:1027:in `require'
          /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
          /home/hk/ws/r3/us/config/application.rb:2:in `(root)'
          org/jruby/RubyKernel.java:1027:in `require'
          /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
          /home/hk/ws/r3/us/config/environment.rb:7:in `(root)'
          org/jruby/RubyKernel.java:1027:in `require'
          /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `require'
          /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-rails-1.2.0/lib/cucumber/rails.rb:28:in `(root)'
          org/jruby/RubyKernel.java:1052:in `load'
          /home/hk/ws/r3/us/features/support/env.rb:143:in `load_code_file'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:171:in `load_file'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
          org/jruby/RubyArray.java:1614:in `each'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime.rb:137:in `load_step_definitions'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime.rb:39:in `run!'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/cli/main.rb:20:in `execute'
          /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/cucumber:14:in `(root)'
          org/jruby/RubyKernel.java:1052:in `load'
          /home/hk/.rvm/gems/jruby-1.6.6@us/bin/cucumber:19:in `(root)'
          hk@hk:~/ws/r3/us$ 
          
          Show
          Heiko Seebach added a comment - - edited I've some more findings. The same happens for bundler 1.1.rc7: hk@hk:~/ws/r3/us$ jruby -J-Xss10m -J-Xmx2000m -J-XX:MaxPermSize=256m -S cucumber Using the default profile... load error: bundler/definition -- java.lang.StackOverflowError: null (LoadError) /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:134:in `definition' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:122:in `load' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:106:in `setup' /home/hk/ws/r3/us/config/boot.rb:8:in `(root)' org/jruby/RubyKernel.java:1027:in `require' /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require' /home/hk/ws/r3/us/config/boot.rb:1:in `(root)' org/jruby/RubyKernel.java:1027:in `require' /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require' /home/hk/ws/r3/us/config/application.rb:2:in `(root)' org/jruby/RubyKernel.java:1027:in `require' /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require' /home/hk/ws/r3/us/config/environment.rb:7:in `(root)' org/jruby/RubyKernel.java:1027:in `require' /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `require' /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-rails-1.2.0/lib/cucumber/rails.rb:28:in `(root)' org/jruby/RubyKernel.java:1052:in `load' /home/hk/ws/r3/us/features/support/env.rb:143:in `load_code_file' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:171:in `load_file' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!' org/jruby/RubyArray.java:1614:in `each' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime.rb:137:in `load_step_definitions' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime.rb:39:in `run!' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/cli/main.rb:43:in `execute!' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/cli/main.rb:20:in `execute' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/cucumber:14:in `(root)' org/jruby/RubyKernel.java:1052:in `load' /home/hk/.rvm/gems/jruby-1.6.6@us/bin/cucumber:19:in `(root)' hk@hk:~/ws/r3/us$ And when I run jruby with -d, I get internal Java stacktraces which migth be helpful: java.lang.StackOverflowError at sun.nio.cs.UTF_8.updatePositions(UTF_8.java:76) at sun.nio.cs.UTF_8$Encoder.encodeArrayLoop(UTF_8.java:411) at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:466) at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:561) at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:257) at java.lang.StringCoding.encode(StringCoding.java:289) at java.lang. String .getBytes( String .java:954) at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:243) at java.io.File.exists(File.java:750) at org.jruby.ext.posix.JavaSecuredFile.exists(JavaSecuredFile.java:119) at org.jruby.RubyFileTest.file_p(RubyFileTest.java:168) at org.jruby.RubyFileTest$FileTestFileMethods.file_p(RubyFileTest.java:460) at org.jruby.RubyFileTest$FileTestFileMethods$s$1$0$file_p.call(RubyFileTest$FileTestFileMethods$s$1$0$file_p.gen:65535) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167) at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.block_1$RUBY$__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:55) at rubyjit$Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4$block_1$RUBY$__file__.call(rubyjit$Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4$block_1$RUBY$__file__:65535) at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:112) at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:95) at org.jruby.runtime.Block.yield(Block.java:130) at org.jruby.RubyArray.collect(RubyArray.java:2324) at org.jruby.RubyArray$i$0$0$collect.call(RubyArray$i$0$0$collect.gen:65535) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:142) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:153) at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:54) at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133) at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:267) at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133) at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:409) at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:147) at org.jruby.RubyClass.finvoke(RubyClass.java:536) at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:529) at org.jruby.RubyEnumerable.callEach(RubyEnumerable.java:93) at org.jruby.RubyEnumerable.detectCommon(RubyEnumerable.java:530) at org.jruby.RubyEnumerable.detectCommon(RubyEnumerable.java:521) at org.jruby.RubyEnumerable.find(RubyEnumerable.java:573) at org.jruby.RubyEnumerable$s$find.call(RubyEnumerable$s$find.gen:65535) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:142) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:153) at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.chained_0_rescue_1$RUBY$SYNTHETIC__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38) at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb) at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167) at rubyjit.Gem::Specification#spec_directories_from_classpath_3A3B4B0D25414550A64848469D47B44042E60BE3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:72) at rubyjit.Gem::Specification#spec_directories_from_classpath_3A3B4B0D25414550A64848469D47B44042E60BE3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133) at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:54) at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133) at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:267) at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133) at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:409) at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:147) at org.jruby.RubyClass.finvoke(RubyClass.java:536) at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:529) at org.jruby.RubyEnumerable.callEach(RubyEnumerable.java:93) at org.jruby.RubyEnumerable.detectCommon(RubyEnumerable.java:530) at org.jruby.RubyEnumerable.detectCommon(RubyEnumerable.java:521) at org.jruby.RubyEnumerable.find(RubyEnumerable.java:573) at org.jruby.RubyEnumerable$s$find.call(RubyEnumerable$s$find.gen:65535) at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:142) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:153) at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.chained_0_rescue_1$RUBY$SYNTHETIC__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38) at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb) at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167) at rubyjit.Gem::Specification#spec_directories_from_classpath_3A3B4B0D25414550A64848469D47B44042E60BE3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:72) at rubyjit.Gem::Specification#spec_directories_from_classpath_3A3B4B0D25414550A64848469D47B44042E60BE3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133) at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:54) at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133) at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:267) at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133) at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:409) at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:147) at org.jruby.RubyClass.finvoke(RubyClass.java:536) at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:529) at org.jruby.RubyEnumerable.callEach(RubyEnumerable.java:93) this repeats for about 1000 lines, until the known output: at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:142) at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:153) at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.chained_0_rescue_1$RUBY$SYNTHETIC__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38) at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb) at rubyjit.Kernel#require_CC0AB6E083B284E4B4A2718274E3389B4B585AB3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167) at rubyjit.Gem::Specification#spec_directories_from_classpath_3A3B4B0D25414550A64848469D47B44042E60BE3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:72) at rubyjit.Gem::Specification#spec_directories_from_classpath_3A3B4B0D25414550A64848469D47B44042E60BE3.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133) at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb:54) at rubyjit.Gem::Specification#dirs_6AF935170759BA6E38755CCDE0A159E50838C8D4.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133) at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:267) at rubyjit.Gem::Specification#_all_07044B79B7D7F8B19E32AA03A687F53EA43CB505.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:127) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:133) at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb:409) at rubyjit.Gem::Specification#each_5BA493A3B88150CB895A15E75931CEFCE63DEF6A.__file__(/home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/specification.rb) at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:147) at org.jruby.RubyClass.finvoke(RubyClass.java:536) at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:529) at org.jruby.RubyEnumerable.callEach(RubyEnumerable.java:93) Exception `LoadError' at /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:134 - load error: bundler/definition -- java.lang.StackOverflowError: null Exception `LoadError' at /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:134 - load error: bundler/definition -- java.lang.StackOverflowError: null Exception `LoadError' at /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:134 - load error: bundler/definition -- java.lang.StackOverflowError: null load error: bundler/definition -- java.lang.StackOverflowError: null (LoadError) /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:134:in `definition' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:122:in `load' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/bundler-1.1.rc.7/lib/bundler.rb:106:in `setup' /home/hk/ws/r3/us/config/boot.rb:8:in `(root)' org/jruby/RubyKernel.java:1027:in `require' /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require' /home/hk/ws/r3/us/config/boot.rb:1:in `(root)' org/jruby/RubyKernel.java:1027:in `require' /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require' /home/hk/ws/r3/us/config/application.rb:2:in `(root)' org/jruby/RubyKernel.java:1027:in `require' /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require' /home/hk/ws/r3/us/config/environment.rb:7:in `(root)' org/jruby/RubyKernel.java:1027:in `require' /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `require' /home/hk/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-rails-1.2.0/lib/cucumber/rails.rb:28:in `(root)' org/jruby/RubyKernel.java:1052:in `load' /home/hk/ws/r3/us/features/support/env.rb:143:in `load_code_file' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:171:in `load_file' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!' org/jruby/RubyArray.java:1614:in `each' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime.rb:137:in `load_step_definitions' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/runtime.rb:39:in `run!' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/cli/main.rb:43:in `execute!' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/../lib/cucumber/cli/main.rb:20:in `execute' /home/hk/.rvm/gems/jruby-1.6.6@us/gems/cucumber-1.1.1/bin/cucumber:14:in `(root)' org/jruby/RubyKernel.java:1052:in `load' /home/hk/.rvm/gems/jruby-1.6.6@us/bin/cucumber:19:in `(root)' hk@hk:~/ws/r3/us$
          Hide
          Nick Sieger added a comment -

          We've known about stack overflows with Bundler for some time. Is it possible to generate the error w/o running Cucumber, but only running bundle install?

          Show
          Nick Sieger added a comment - We've known about stack overflows with Bundler for some time. Is it possible to generate the error w/o running Cucumber, but only running bundle install ?
          Hide
          Heiko Seebach added a comment -

          Hey gain,

          with the knowledge of the above stack trace, it's quite easy to find a simple patch like the following:

          Simple change

              def spec_directories_from_classpath
                require 'jruby/util'
                stuff = JRuby::Util.classloader_resources("specifications")
              end
          

          to

              def spec_directories_from_classpath
                @@load_count||=0
                require 'jruby/util' if @@load_count==0
                @@load_count+=1
                stuff = JRuby::Util.classloader_resources("specifications")
              end
          

          around line 72 in .../jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb

          But I'm quite sure, that such a patch only fights against the symptoms, not against the real cause.

          Heiko

          Show
          Heiko Seebach added a comment - Hey gain, with the knowledge of the above stack trace, it's quite easy to find a simple patch like the following: Simple change def spec_directories_from_classpath require 'jruby/util' stuff = JRuby::Util.classloader_resources( "specifications" ) end to def spec_directories_from_classpath @@load_count||=0 require 'jruby/util' if @@load_count==0 @@load_count+=1 stuff = JRuby::Util.classloader_resources( "specifications" ) end around line 72 in .../jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb But I'm quite sure, that such a patch only fights against the symptoms, not against the real cause. Heiko
          Hide
          Heiko Seebach added a comment - - edited

          @Nick Sieger:
          > Is it possible to generate the error w/o running Cucumber, but only running bundle install
          no I can run bundle install, all the rake tasks, the rails server with requests against it, the rails console, everything works, except cucumber....

          Show
          Heiko Seebach added a comment - - edited @Nick Sieger: > Is it possible to generate the error w/o running Cucumber, but only running bundle install no I can run bundle install, all the rake tasks, the rails server with requests against it, the rails console, everything works, except cucumber....
          Hide
          Hiroshi Nakamura added a comment -

          This could be the same issue with JRUBY-6407. I should have investigated sooner. Still investigating.

          Show
          Hiroshi Nakamura added a comment - This could be the same issue with JRUBY-6407 . I should have investigated sooner. Still investigating.
          Hide
          Hiroshi Nakamura added a comment -

          Great. Heiko has already investigated and found a workaround. According to the workaround, my investigation at JRUBY-6407 seems to be correct. 409c61fb should be reverted.

          Show
          Hiroshi Nakamura added a comment - Great. Heiko has already investigated and found a workaround. According to the workaround, my investigation at JRUBY-6407 seems to be correct. 409c61fb should be reverted.
          Hide
          Charles Oliver Nutter added a comment -

          After some confusion, this is also fixed and is likely the same as JRUBY-6407.

          Show
          Charles Oliver Nutter added a comment - After some confusion, this is also fixed and is likely the same as JRUBY-6407 .

            People

            • Assignee:
              Hiroshi Nakamura
              Reporter:
              Heiko Seebach
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: