Bugs item #7622, was opened at 2007-01-05 23:10
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=7622&group_id=494
Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Kouhei Sutou (kou)
>Assigned to: Charlie Savage (cfis)
Summary: unknown XPath function causes SEGV
Initial Comment:
A sample script:
require 'xml/libxml'
require 'tempfile'
xml = Tempfile.new("xxx")
xml.puts("<a/>")
xml.close
doc = XML::Document.file(xml.path)
begin
p doc.find("//*[name(.)=normalize_space(' a ')]")
rescue XML::XPath::InvalidPath
puts $!
puts $@
end
p doc.find("//*[name(.)=normalize-space(' a ')]")
Result:
xmlXPathCompOpEval: function normalize_space not found
Unregistered function
xmlXPathCompiledEval: 3 objects left on the stack.
Invalid XPath expression for this document
/tmp/a.rb:10:in `find'
/tmp/a.rb:10
*** glibc detected *** corrupted double-linked list: 0xb7e824f8 ***
zsh: abort ruby /tmp/a.rb
----------------------------------------------------------------------
>Comment By: Charlie Savage (cfis)
Date: 2008-07-01 03:16
Message:
The error message remains the same, but this no longer causes a segfault. Test
case added.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=7622&group_id=494
_______________________________________________
libxml-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/libxml-devel