Rspec windows gem not running on 1.9?

Hi All,

My spec files work on 1.8.
Running on 1.9.1-p243 (mingw) with rspec-1.2.9, I get a GC error :


F:\dev\ruby\DMX>rake ruby19:spec
(in F:/dev/ruby/DMX)
1.9.1
[BUG] cross-thread violation on rb_gc()
ruby 1.8.6 (2009-08-04) [i386-mingw32]

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application’s support team for more information.

My spec main file starts by printing RUBY_VERSION (gives 1.9.1), but the
bug report speaks of 1.8.6.

I understand the rspec gem installed by ‘gem install’ is not compatible
with 1.9. If this is the correct explanation, how can I get a correct
one (without a mingw compiler) ?

Thanks for your help.

Michel D. wrote:

Sorry, the bug comes from the json gem I use in my project

F:\Ruby19\bin>irb
irb(main):001:0> puts RUBY_VERSION
1.9.1
=> nil
irb(main):002:0> require ‘json’
[BUG] cross-thread violation on rb_gc()
ruby 1.8.6 (2009-08-04) [i386-mingw32]

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application’s support team for more information.

So, same question for ‘json’. How to get a correct one ?

Michel D. wrote:

Michel D. wrote:

Sorry, the bug comes from the json gem I use in my project

Solved : json is packed with 1.9. and uninstalling the gem solves the
problem…

Sorry for the noise added to the forum.