[libxml-devel] Code snippet to crash libxml (segfault)
Saurabh Nanda
saurabhnanda at gmail.com
Wed Feb 6 17:11:05 EST 2008
Why does the following code always cause a segfault on the last
statement, when simply trying to refer to 'doc'? The answer to this
could probably give me some pointers to my previous queries.
require 'xml/libxml'
x=XML::Parser.string("<test>something</test>")
doc=x.parse
x.parse
puts '-- about to print refer to doc'
doc
Thanks,
Saurabh.
--
http://nandz.blogspot.com
http://foodieforlife.blogspot.com
More information about the libxml-devel
mailing list