Hi % uname -a FreeBSD vbook.fbsd.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Mon Oct 3 02:16:18 MSD 2005 root vbook fbsd ru:/usr/obj/usr/src/sys/VBOOK i386 % pkg_info -I p5-XML-LibXML\* perl\* p5-XML-LibXML-1.58_1 Interface to Gnome libxml2 library p5-XML-LibXML-Common-0.13 Routines and Constants common for XML::LibXML and XML::GDOM p5-XML-LibXML-Iterator-1.00 XML::LibXML::Iterator is an iterator for XML::LibXML parsed p5-XML-LibXML-XPathContext-0.06 Perl interface to libxml2's xmlXPathContext perl-5.8.7 Practical Extraction and Report Language % perl xpath.pl test.xml <user>user</user> % perl xpath.pl test2.xml <user>test</user> Bad free() ignored (PERL_CORE) at xpath.pl line 22. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ problem here % perl xpath.pl test3.xml <user>test</user> % diff test2.xml test3.xml 16,20d15 < <log> < <file>/var/log/builds.log</file> < <level>10</level> < </log> < % Actually one can remove any log, directory, email section from test2.xml and problem disappears. Commenting $xc->findnodes(..) also cures problem, (but same problem with $xc->findvalues) see xpath.pl and test*.xml in attachment. -- Vladimir B. Grebenschikov SWsoft Inc. vova swsoft com
Attachment:
test.xml
Description: Text Data
Attachment:
test2.xml
Description: Text Data
Attachment:
test3.xml
Description: Text Data
Attachment:
xpath.pl
Description: Perl program