Nokogiri crashes JRuby on Windows
---------------------------------

                 Key: JRUBY-4679
                 URL: http://jira.codehaus.org/browse/JRUBY-4679
             Project: JRuby
          Issue Type: Bug
          Components: Windows
    Affects Versions: JRuby 1.4
         Environment: jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-03-27 
f0340d3) (Java HotSpot(TM) Client VM 1.6.0_18) [x86-java]
            Reporter: Vladimir Sizikov


Found this repor on the Internet:

http://www.eggheadcafe.com/software/aspnet/35918831/a-sure-way-to-crash-jruby.aspx

Here 's the simplified version:

{code}
require "rubygems"
require 'java'
require "nokogiri"

# p "Same thread"
# p Nokogiri::XML::Document.parse('"one"')

p "New thread"
th = Thread.new do
  p Nokogiri::XML::Document.parse('""')
end.join
{code}

This crashes on Windows, with JRuby 1.4.0 and 1.5.0dev. Interestingly enough, 
outside of the thread there is no crash, only if we parse *inside* the thread. 
Also, commenting out the two lines before the thread is launched also 
eliminates the problem.

Weeeird! :)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to