Segmentation Fault in rvm'd Ruby on Mac when running RSpec -
i developing @ uni, saved dropbox intending continue @ home. message greeted me:
$ spec graph_spec.rb /users/amadan/.rvm/gems/ruby-1.9.2-rc1/gems/priorityqueue-0.1.2/ext/priority_queue/cpriorityqueue.bundle: [bug] segmentation fault ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
however,
$ `which spec` graph_spec.rb ........................................................................... finished in 0.046973 seconds 75 examples, 0 failures
what heck going on here?
for reference:
$ spec /users/amadan/.rvm/gems/ruby-1.9.2-rc1/bin/spec
update: noticed 1.8.7 there... how did there? top of spec file says:
$ head `which spec` #!/users/amadan/.rvm/rubies/ruby-1.9.2-rc1/bin/ruby # # file generated rubygems. # # application 'rspec' installed part of gem, , # file here facilitate running it. # require 'rubygems'
where "run 1.8.7"?!?
it's rvm messing gems , rubies. recommend testing on cleaned rvm installation (with 1.9 installed).
is /users/amadan/.rvm/rubies/ruby-1.9.2-rc1/bin/ruby
really ruby 1.9.2 ?
other way test explicitely run ruby spec
sure 1.9.2 called.
to conclude, segfaults happen in ruby (esp. on 1.8) , avoided reorganizing ruby code. luck !
Comments
Post a Comment