Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mixed use of rvm ruby and system ruby? #37

Open
ripple0328 opened this issue Dec 6, 2013 · 5 comments
Open

mixed use of rvm ruby and system ruby? #37

ripple0328 opened this issue Dec 6, 2013 · 5 comments

Comments

@ripple0328
Copy link

when launch robe-start or cucumber there is similar error.
I am not sure whether it is caused by robe or something else.

os: mavericks
system ruby: 2.0.0p247
emacs: osxformacemacs 24.3

(insert (shell-command-to-string "ruby -v"))

ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-darwin13.0.0]


(insert (getenv "PATH"))

/Users/qingbo/.rvm/gems/ruby-1.9.3-p484/bin:/Users/qingbo/.rvm/gems/ruby-1.9.3-p484@global/bin:/Users/qingbo/.rvm/rubies/ruby-1.9.3-p484/bin:/Users/qingbo/.rvm/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/sbin:/usr/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin

 (insert (shell-command-to-string "which ruby"))

 /Users/qingbo/.rvm/rubies/ruby-1.9.3-p484/bin/ruby

all seem right.

when I run such as M-x robe-start or M-x feature-verify-scenario-at-pos got similar error below
some log:
rake cucumber CUCUMBER_OPTS="" FEATURE="features"
/Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/json-1.8.1/lib/json/common.rb:67: [BUG] Segmentation fault
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]

-- Control frame information -----------------------------------------------
c:0051 p:---- s:0184 e:000183 CFUNC :initialize
c:0050 p:---- s:0182 e:000181 CFUNC :new
c:0049 p:0075 s:0179 e:000176 METHOD /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/json-1.8.1/lib/json/common.rb:67
c:0048 p:0070 s:0168 e:000166 CLASS /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/json-1.8.1/lib/json/ext.rb:17
c:0047 p:0011 s:0165 e:000164 CLASS /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/json-1.8.1/lib/json/ext.rb:12
c:0046 p:0057 s:0163 e:000162 TOP /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/json-1.8.1/lib/json/ext.rb:9 [FINISH]
c:0045 p:---- s:0161 e:000160 CFUNC :require
c:0044 p:0010 s:0157 e:000156 BLOCK /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251
c:0043 p:0054 s:0155 e:000154 METHOD /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236
c:0042 p:0015 s:0150 e:000149 METHOD /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251
c:0041 p:0019 s:0145 e:000144 CLASS /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/json-1.8.1/lib/json.rb:58
c:0040 p:0017 s:0143 e:000142 TOP /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/json-1.8.1/lib/json.rb:54 [FINISH]
c:0039 p:---- s:0141 e:000140 CFUNC :require
c:0038 p:0010 s:0137 e:000136 BLOCK /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251
c:0037 p:0054 s:0135 e:000134 METHOD /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236
c:0036 p:0015 s:0130 e:000129 METHOD /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251
c:0035 p:0031 s:0125 e:000124 METHOD /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/newrelic_rpm-3.6.9.171/lib/new_relic/helper.rb:57
c:0034 p:0041 s:0122 e:000121 CLASS /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/newrelic_rpm-3.6.9.171/lib/new_relic/helper.rb:77
c:0033 p:0009 s:0120 e:000119 TOP /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/newrelic_rpm-3.6.9.171/lib/new_relic/helper.rb:6 [FINISH]
c:0032 p:---- s:0118 e:000117 CFUNC :require
c:0031 p:0010 s:0114 e:000113 BLOCK /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251
c:0030 p:0054 s:0112 e:000111 METHOD /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236
c:0029 p:0015 s:0107 e:000106 METHOD /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251
c:0028 p:0047 s:0102 e:000101 TOP /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/newrelic_rpm-3.6.9.171/lib/new_relic/control.rb:10 [FINISH]
c:0027 p:---- s:0100 e:000099 CFUNC :require
c:0026 p:0010 s:0096 e:000095 BLOCK /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251
c:0025 p:0054 s:0094 e:000093 METHOD /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236
c:0024 p:0015 s:0089 e:000088 METHOD /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251
c:0023 p:0007 s:0084 e:000083 TOP /Users/qingbo/.rvm/gems/ruby-1.9.3-p484/gems/newrelic_rpm-3.6.9.171/lib/newrelic_rpm.rb:24 [FINISH]
c:0022 p:---- s:0081 e:000080 CFUNC :require
c:0021 p:0021 s:0077 e:000076 BLOCK /Users/qingbo/.rvm/gems/ruby-1.9.3-p484@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72 [FINISH]
c:0020 p:---- s:0074 e:000073 CFUNC :each
c:0019 p:0055 s:0071 e:000070 BLOCK /Users/qingbo/.rvm/gems/ruby-1.9.3-p484@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70 [FINISH]
c:0018 p:---- s:0064 e:000063 CFUNC :each
c:0017 p:0030 s:0061 e:000060 METHOD /Users/qingbo/.rvm/gems/ruby-1.9.3-p484@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59
c:0016 p:0013 s:0057 e:000056 METHOD /Users/qingbo/.rvm/gems/ruby-1.9.3-p484@global/gems/bundler-1.3.5/lib/bundler.rb:132
c:0014 p:---- s:0051 e:000050 CFUNC :require
c:0013 p:0073 s:0047 e:000046 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45`

@ripple0328 ripple0328 reopened this Dec 6, 2013
@bhushangahire
Copy link

Any luck on this. I am getting the same issue. With same environment.

@senny
Copy link
Owner

senny commented Mar 13, 2014

@bhushangahire not yet sorry. Since I switched to rbenv and don't have a running rvm environment anymore it's hard to reproduce your scenario.

@bitops
Copy link

bitops commented Apr 3, 2014

@senny is there anything we can do to help out? Our shop is all rvm based so I can't switch to rbenv just to get this working. If you can provide any pointers I can look at the code too.

@senny
Copy link
Owner

senny commented Apr 4, 2014

The environment looks fine. The debugging information provided by @ripple0328 shows that the right ruby is activated. This could be related to feature-verify-scenario-at-pos. It starts the actual process and there could be something interfering with the env.

Do you have feature-use-rvm enabled? See https://github.com/michaelklishin/cucumber.el/blob/master/feature-mode.el#L502-L503 for more infos. Does rvm-activate-corresponding-ruby change to system ruby? What happens when you do shell-command "bundle exec cucumber <path-to-feature>" without going through cucumber.el?

@bitops
Copy link

bitops commented Apr 4, 2014

I am having a similar issue as @ripple0328 though it's just in trying to run shell commands via compile, I'm not using cucumber.el or anything. This gist has my information: https://gist.github.com/bitops/9981234

I'm also on Mavericks, running in Emacs for Mac OS X, 24.3.

@senny let me know if there's any other info I can give you that would help out. I'm running the head of the rvm.el repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants