On Fri, Dec 30, 2011 at 6:36 PM, Luis Lavena <luislavena / gmail.com> wrote:

> Peter Vandenabeele wrote in post #1038848:
> > Hi,
> >
> > While running cucumber tests on shoes with ruby-1.9.3-p0 (on rvm on
> > linux
> > on 32 bit x86),
> > I may have hit a ruby bug:
> >
> >
> >
> /home/peterv/.rvm/gems/ruby-1.9.3-p0/gems/json-1.6.3/lib/json/common.rb:66:
> > [BUG] unknown type 0x22 (0xc given)
> >   ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
> >   ...
>
> The problem is not Ruby 1.9.3-p0 versus 1.9.3-p6, the problem is that
> you have an extension is not compiled for Ruby 1.9.2/1.9.3 and somehow
> Ruby is trying to load it.
>
> Search Ruby 1.9.2 or 1.9.3 unknown type 0x22 in Google and will find
> several occurrences of that.
>
> It doesn't happen on your fresh Ruby 1.9.3-head because gem and
> extensions were freshly compiled for it -- not shared with previous
> installation.
>
> I recommend you remove existing gems and install them again.
>

Thanks. Indeed, I created a new rvm gemset (with ruby 1.9.3-p0),
bundle installed the gems again and now the tests pass.

I am curious how I got into this situation though ... (I was upgrading
in rvm from the default 1.9.2 .rvmrc to test a new 1.9.3 environment
and maybe I made a mistake in that process ... I cannot exactly
reproduce my command history).

Thanks again,

Peter

-- 
Peter Vandenabeele
http://twitter.com/peter_v
http://rails.vandenabeele.com