[Bug 365244] [NEW] LibXML::XML::Document.validate(LibXML::XML::Schema) fails with Segmataion fault
svenk
sven.krzyzak at gmx.net
Wed Apr 22 19:24:19 UTC 2009
Public bug reported:
Architecture: x86_64
Description: Ubuntu 9.04
Release: 9.04
libxml-ruby1.8: 0.9.4-1
When i call `ruby information_controller_test`, the following code throws an Segmetation fault, but
the same xml / xsd files works with `xmllint --schema version.xsd version.xml` without any problem.
# Start of Code ####
require File.dirname(__FILE__) + '/../test_helper'
require 'libxml'
class MylynConnector::InformationControllerTest < ActionController::TestCase
def setup
@controller = MylynConnector::InformationController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
end
def test_version
get :version
.
.
xmldoc = LibXML::XML::Document.string @response.body
schema = read_schema 'version'
valid = xmldoc.validate schema # produces the segmentation fault
end
protected
def read_schema name
schemapath = File.dirname(__FILE__) + '/../schema/' + name + '.xsd';
schemadoc = LibXML::XML::Document.file schemapath
LibXML::XML::Schema.document schemadoc
end
end
# End of Code ####
The same xml / xsd files works with `xmllint --schema version.xsd
version.xml` without any problem.
** Affects: libxml-ruby (Ubuntu)
Importance: Undecided
Status: New
--
LibXML::XML::Document.validate(LibXML::XML::Schema) fails with Segmataion fault
https://bugs.launchpad.net/bugs/365244
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list