Jabber4r brokenness

Hi,
I have the following program:

···

-----
require 'jabber4r/jabber4r'
puts 'connecting'
session = Jabber::Session.bind_digest('blah@server/name', 'password')
puts 'done'
-----

It never gets to the puts 'done' statement. It stops working on line 283
in session.rb, Thread.stop

I think this has been answered already, for an older version of ruby and
rexml. I am using rexml 3.0.4 and ruby 1.8.2.

Any ideas?

--
Luke Worth