Heiko Seebach created JRUBY-6400:
------------------------------------
Summary: StackOverflowError in loading bundler when starting
cucumber
Key: JRUBY-6400
URL: https://jira.codehaus.org/browse/JRUBY-6400
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.6
Environment: hk@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 <[email protected]>,
Michal Papis <[email protected]> [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...
Reporter: Heiko Seebach
Assignee: Thomas E Enebo
I installed 1.6.6 this morning and can't run cucumer with it:
{code}
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$
{code}
But with 1.6.5 it works:
{code}
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:
{code}
I've not much more infos about that. a
{code}
puts "hi"
{code}
on line 1 of bundler/definition.rb is executed, but the original line 1, which
is
{code}
require "digest/sha1"
{code}
crashes with the above error message.
I find it quite strange, that the following works with JRuby 1.6.6:
[code}
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$
{code}
Because here all the bundler stuff is loaded in the same way..
Any ideas on how to analyse this?
thanks, Heiko
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
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