bugXMPP4R - Bugs: bug #18132, REXML::UndefinedNamespaceException...

 
 
Show feedback again

bug #18132: REXML::UndefinedNamespaceException when running on Windows 7 with Ruby 1.9.2-p180

Submitted by:  None
Submitted on:  Fri 13 May 2011 08:05:31 PM UTC  
 
Category: NoneSeverity: 5 - Blocker
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 26 May 2011 12:51:22 PM UTC, comment #3:

The problem appears to be caused by (or at least related to) the parser thread getting stuck in the "aborting" state after being killed upon successful authentication.

The following patch exposes the issue as a hang on Ruby 1.9.2, but runs normally on 1.8.7 and 1.9.1.

Tim Jensen <tjensen>
Fri 13 May 2011 08:35:48 PM UTC, comment #2:

The server is ejabberd version 2.1.2-2, running on Ubuntu 10.04.2 LTS.

Tim Jensen <tjensen>
Fri 13 May 2011 08:19:59 PM UTC, comment #1:

The following monkey-patch instrumentation of REXML is sufficient to make the problem disappear:

module REXML::Parsers
class BaseParser
alias_method :the_real_pull, :pull
def pull
puts "PULL START #{Thread.current}"
the_real_pull
ensure
puts "PULL END: #{Thread.current}"
end
end
end

Tim Jensen <tjensen>
Fri 13 May 2011 08:05:31 PM UTC, original submission:

I'm trying to use XMPP4R 0.5 with Ruby 1.9.2-p180 on Windows 7, but I am observing a REXML exception during the authentication step. The error appears to be timing sensitive because it occurs about 90% of the time and monkey patching REXML to produce debug output makes the issue disappear.

I have attached a small script to reproduce the error. I have also attached the output from running the script with Ruby 1.9.2-p180 on Windows 7.

This issue does not occur with Ruby 1.8.7-p334 on Windows 7.
This issue does not occur with Ruby 1.9.2-p180 on Linux.
This issue does not occur with Ruby 1.8.7-p334 on Linux.

Anonymous

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #12997:  xmpp-test.rb added by None (462B - application/x-ruby)
file #12998:  xmpp-test-output.txt added by None (6kB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tjensen (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 13 May 2011 08:05:31 PM UTCNoneAttached File-=>Added xmpp-test.rb, #12997
      Attached File-=>Added xmpp-test-output.txt, #12998
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup