Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.6
-
Fix Version/s: JRuby 1.6.7
-
Component/s: None
-
Labels:None
-
Environment:Hidehk@hk:~/ws/r3/us$ rvm info
jruby-1.6.6@us:
system:
uname: "Linux hk 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 17:23:00 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux"
bash: "/bin/bash => GNU bash, Version 4.2.10(1)-release (x86_64-pc-linux-gnu)"
zsh: " => not installed"
rvm:
version: "rvm 1.10.2 by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.beginrescueend.com/]"
updated: "13 hours 46 minutes 12 seconds ago"
ruby:
interpreter: "jruby"
version: "1.6.6"
date: "2012-01-30"
platform: "linux-amd64-java"
patchlevel: "OpenJDK 64-Bit Server VM 1.6.0_23"
full_version: "jruby 1.6.6 (ruby-1.8.7-p357) (2012-01-30 5673572) (OpenJDK 64-Bit Server VM 1.6.0_23) [linux-amd64-java]"
homes:
gem: "/home/hk/.rvm/gems/jruby-1.6.6@us"
ruby: "/home/hk/.rvm/rubies/jruby-1.6.6"
binaries:
ruby: "/home/hk/.rvm/rubies/jruby-1.6.6/bin/ruby"
irb: "/home/hk/.rvm/rubies/jruby-1.6.6/bin/irb"
gem: "/home/hk/.rvm/rubies/jruby-1.6.6/bin/gem"
rake: "/home/hk/.rvm/gems/jruby-1.6.6@global/bin/rake"
environment:
PATH: "/home/hk/.rvm/gems/jruby-1.6.6@us/bin:/home/hk/.rvm/gems/jruby-1.6.6@global/bin:/home/hk/.rvm/rubies/jruby-1.6.6/bin:/home/hk/.rvm/bin:/home/hk/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
GEM_HOME: "/home/hk/.rvm/gems/jruby-1.6.6@us"
GEM_PATH: "/home/hk/.rvm/gems/jruby-1.6.6@us:/home/hk/.rvm/gems/jruby-1.6.6@global"
MY_RUBY_HOME: "/home/hk/.rvm/rubies/jruby-1.6.6"
IRBRC: "/home/hk/.rvm/rubies/jruby-1.6.6/.irbrc"
RUBYOPT: ""
gemset: "us"
I ran "bundle update" before running the code below...Showhk@hk :~/ws/r3/us$ rvm info jruby-1.6.6@us : system: uname: "Linux hk 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 17:23:00 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux" bash: "/bin/bash => GNU bash, Version 4.2.10(1)-release (x86_64-pc-linux-gnu)" zsh: " => not installed" rvm: version: "rvm 1.10.2 by Wayne E. Seguin < wayneeseguin@gmail.com >, Michal Papis < mpapis@gmail.com > [ https://rvm.beginrescueend.com/ ]" updated: "13 hours 46 minutes 12 seconds ago" ruby: interpreter: "jruby" version: "1.6.6" date: "2012-01-30" platform: "linux-amd64-java" patchlevel: "OpenJDK 64-Bit Server VM 1.6.0_23" full_version: "jruby 1.6.6 (ruby-1.8.7-p357) (2012-01-30 5673572) (OpenJDK 64-Bit Server VM 1.6.0_23) [linux-amd64-java]" homes: gem: "/home/hk/.rvm/gems/jruby-1.6.6@us" ruby: "/home/hk/.rvm/rubies/jruby-1.6.6" binaries: ruby: "/home/hk/.rvm/rubies/jruby-1.6.6/bin/ruby" irb: "/home/hk/.rvm/rubies/jruby-1.6.6/bin/irb" gem: "/home/hk/.rvm/rubies/jruby-1.6.6/bin/gem" rake: "/home/hk/.rvm/gems/jruby-1.6.6@global/bin/rake" environment: PATH: "/home/hk/.rvm/gems/jruby-1.6.6@us/bin:/home/hk/.rvm/gems/jruby-1.6.6@global/bin:/home/hk/.rvm/rubies/jruby-1.6.6/bin:/home/hk/.rvm/bin:/home/hk/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" GEM_HOME: "/home/hk/.rvm/gems/jruby-1.6.6@us" GEM_PATH: "/home/hk/.rvm/gems/jruby-1.6.6@us:/home/hk/.rvm/gems/jruby-1.6.6@global" MY_RUBY_HOME: "/home/hk/.rvm/rubies/jruby-1.6.6" IRBRC: "/home/hk/.rvm/rubies/jruby-1.6.6/.irbrc" RUBYOPT: "" gemset: "us" I ran "bundle update" before running the code below...
-
Number of attachments :
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
- is related to
-
JRUBY-6407
StackOverflowError regarding RubyGems, require(), rubygems/defaults/jruby.rb, and jruby/util.rb
-
I've some more findings. The same happens for bundler 1.1.rc7:
And when I run jruby with -d, I get internal Java stacktraces which migth be helpful:
this repeats for about 1000 lines, until the known output: