Jruby crashes JVM using nokogiri EXCEPTION_ACCESS_VIOLATION
-----------------------------------------------------------
Key: JRUBY-4555
URL: http://jira.codehaus.org/browse/JRUBY-4555
Project: JRuby
Issue Type: Bug
Components: Ruby 1.8.7, Windows
Affects Versions: JRuby 1.4
Environment: ---
jruby -v
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-12-04 6586) (Java
HotSpot(TM) Clie
nt VM 1.6.0_18) [x86-java]
---
jruby -v
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-02-10 a94cc80) (Java
HotSpot(T
M) Client VM 1.6.0_18) [x86-java]
same on Windows 7
Reporter: Oliver Theobald
Attachments: hs_err_pid3148.log
Jruby on rails crashes the jvm using nokogiri-1.4.1-java. (see attachment for
log)
The following line of code causes the jvm to crash:
class UploadController < ApplicationController
def upload
file = params[:file]
#crash
@doc = Nokogiri::XML(file.read)
#
@pfad = @doc.xpath("//name")
end
end
Using nokogiri in a file e.g. nok.rb with the following lines:
require 'nokogiri'
file = File.new "somefile.xml"
@doc = Nokogiri::XML(file.read)
p @doc
runs without problem
--
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