Subject: | post validation core dumps |
I'm using Solaris 7(SunOS pandora 5.7 Generic_106541-04 sun4u sparc SUNW,Ultra-250), Perl 5.00503
I've installed libxml 2.4.15 and libxslt 1.0.12
I've also installed XML-SAX-0.09 and XML-NamespaceSupport-1.04
I've installed XML-LibXML-1.31 but I get a core dump when I try to post validate:
#!/usr/local/bin/perl
use XML::LibXML;
local *FH;
open FH, "doc.xml";
my $xml;
while (<FH>) {$xml .= $_};
#print "XML:\n$xml:\n";
eval
{
my $parser = XML::LibXML->new();
my $doc = $parser->parse_string($xml);
if (!$doc->is_valid) { # this is the line that causes a core dump and only if doc is invalid.
warn("document is not valid!");
}
};
if ($@) {print "error: $@\n"};
print "end\n";
here is a copy of doc.xml (which should fail post validation):
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE revision SYSTEM "test.dtd">
<fred>test</fred>
and test.dtd:
<!ELEMENT fred (#PCDATA )>
TRACES:
perl Makefile.PL
running xml2-config... ok
looking for -lxml2... yes
If you are building XML::LibXML from CVS, you may wish to run
$ make docs
before doing anything else. This will re-build the documentation
from the XML file in examples/libxml.xml. This is *not* necessary
if you are building from a CPAN distribution.
Checking if your kit is complete...
Looks good
Writing Makefile for XML::LibXML
#######################################################
make
mkdir blib
mkdir blib/lib
mkdir blib/lib/XML
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/XML
mkdir blib/arch/auto/XML/LibXML
mkdir blib/lib/auto
mkdir blib/lib/auto/XML
mkdir blib/lib/auto/XML/LibXML
mkdir blib/man3
cp lib/XML/LibXML/CDATASection.pod blib/lib/XML/LibXML/CDATASection.pod
cp lib/XML/LibXML/Comment.pod blib/lib/XML/LibXML/Comment.pod
cp lib/XML/LibXML/DocumentFragment.pod blib/lib/XML/LibXML/DocumentFragment.pod
cp lib/XML/LibXML/Boolean.pm blib/lib/XML/LibXML/Boolean.pm
cp lib/XML/LibXML/Attr.pod blib/lib/XML/LibXML/Attr.pod
cp lib/XML/LibXML/Dtd.pod blib/lib/XML/LibXML/Dtd.pod
cp lib/XML/LibXML/NodeList.pm blib/lib/XML/LibXML/NodeList.pm
cp lib/XML/LibXML/SAX/Generator.pm blib/lib/XML/LibXML/SAX/Generator.pm
cp lib/XML/LibXML/SAX/Builder.pm blib/lib/XML/LibXML/SAX/Builder.pm
cp lib/XML/LibXML/Document.pod blib/lib/XML/LibXML/Document.pod
cp lib/XML/LibXML/SAX/Parser.pm blib/lib/XML/LibXML/SAX/Parser.pm
cp lib/XML/LibXML/Number.pm blib/lib/XML/LibXML/Number.pm
cp LibXML.pm blib/lib/XML/LibXML.pm
cp lib/XML/LibXML/Text.pod blib/lib/XML/LibXML/Text.pod
cp lib/XML/LibXML/Node.pod blib/lib/XML/LibXML/Node.pod
cp lib/XML/LibXML/Literal.pm blib/lib/XML/LibXML/Literal.pm
cp lib/XML/LibXML/Element.pod blib/lib/XML/LibXML/Element.pod
cp lib/XML/LibXML/Namespace.pod blib/lib/XML/LibXML/Namespace.pod
/bin/perl -I/usr/local/lib/perl5/5.00503/sun4-solaris -I/usr/local/lib/perl5/5.00503 /usr/lo
cal/lib/perl5/5.00503/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.00503/ExtUtils/typema
p -typemap typemap LibXML.xs >xstmp.c && mv xstmp.c LibXML.c
gcc -c -I/usr/local/libxml/include/libxml2/libxml -I/usr/local/libxml/include/libxml2 -I/usr
/local/include -O -DVERSION=\"1.31\" -DXS_VERSION=\"1.31\" -fPIC -I/usr/local/lib/perl5/5
.00503/sun4-solaris/CORE -DHAVE_BLANK LibXML.c
gcc -c -I/usr/local/libxml/include/libxml2/libxml -I/usr/local/libxml/include/libxml2 -I/usr
/local/include -O -DVERSION=\"1.31\" -DXS_VERSION=\"1.31\" -fPIC -I/usr/local/lib/perl5/5
.00503/sun4-solaris/CORE -DHAVE_BLANK dom.c
gcc -c -I/usr/local/libxml/include/libxml2/libxml -I/usr/local/libxml/include/libxml2 -I/usr
/local/include -O -DVERSION=\"1.31\" -DXS_VERSION=\"1.31\" -fPIC -I/usr/local/lib/perl5/5
.00503/sun4-solaris/CORE -DHAVE_BLANK parser.c
gcc -c -I/usr/local/libxml/include/libxml2/libxml -I/usr/local/libxml/include/libxml2 -I/usr
/local/include -O -DVERSION=\"1.31\" -DXS_VERSION=\"1.31\" -fPIC -I/usr/local/lib/perl5/5
.00503/sun4-solaris/CORE -DHAVE_BLANK xpath.c
Running Mkbootstrap for XML::LibXML ()
chmod 644 LibXML.bs
LD_RUN_PATH="/usr/local/libxml/sparc/lib:/usr/local/lib:/lib" gcc -o blib/arch/auto/XML/LibX
ML/LibXML.so -R/usr/local/libxml/sparc/lib -R/usr/local/lib -R/lib -G -L/usr/local/lib LibXM
L.o dom.o parser.o xpath.o -L/usr/local/libxml/sparc/lib -R/usr/local/libxml/sparc/lib -l
xml2 -lz -lpthread -lm -lsocket -lnsl
chmod 755 blib/arch/auto/XML/LibXML/LibXML.so
cp LibXML.bs blib/arch/auto/XML/LibXML/LibXML.bs
chmod 644 blib/arch/auto/XML/LibXML/LibXML.bs
Manifying blib/man3/XML::LibXML::CDATASection.3
Manifying blib/man3/XML::LibXML::DocumentFragment.3
Manifying blib/man3/XML::LibXML::Comment.3
Manifying blib/man3/XML::LibXML::Boolean.3
Manifying blib/man3/XML::LibXML::Attr.3
Manifying blib/man3/XML::LibXML::Dtd.3
Manifying blib/man3/XML::LibXML::NodeList.3
Manifying blib/man3/XML::LibXML::SAX::Generator.3
Manifying blib/man3/XML::LibXML::SAX::Builder.3
Manifying blib/man3/XML::LibXML::Document.3
Manifying blib/man3/XML::LibXML::SAX::Parser.3
Manifying blib/man3/XML::LibXML::Number.3
Manifying blib/man3/XML::LibXML.3
Manifying blib/man3/XML::LibXML::Text.3
Manifying blib/man3/XML::LibXML::Node.3
Manifying blib/man3/XML::LibXML::Literal.3
Manifying blib/man3/XML::LibXML::Element.3
Manifying blib/man3/XML::LibXML::Namespace.3
The following went to standard error:
/usr/local/bin/pod2man: lib/XML/LibXML/Boolean.pm is missing required section: SYNOPSIS
/usr/local/bin/pod2man: lib/XML/LibXML/Number.pm is missing required section: SYNOPSIS
/usr/local/bin/pod2man: lib/XML/LibXML/Literal.pm is missing required section: SYNOPSIS
#################################################
make test
PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.00503/sun4-solar
is -I/usr/local/lib/perl5/5.00503 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0;
runtests @ARGV;' t/*.t
t/01basic...........ok
t/02parsestring.....ok
t/03parsefile.......ok
t/04parsefh.........ok
t/05dombasic........ok
t/06nodetypes.......ok
t/07nodelist........ok
t/08findnodes.......ok
t/09append..........ok
t/10ns..............ok
t/11memory..........skipping test on this platform
t/12html............ok
t/13dtd.............ok
t/14sax.............ok
t/15nodelist........ok
t/16docnodes........ok
t/17callbacks.......ok
t/18docfree.........ok
All tests successful, 1 test skipped.
Files=18, Tests=270, 7 wallclock secs ( 4.52 cusr + 1.06 csys = 5.58 CPU)
make install
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/XML/LibXML/LibXML.so (unchan
ged)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/XML/LibXML/LibXML.bs (unchan
ged)
Files found in blib/arch --> Installing files in blib/lib into architecture dependend librar
y tree!
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/CDATASection.pod (unch
anged)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/Comment.pod (unchanged
)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/DocumentFragment.pod (
unchanged)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/Boolean.pm (unchanged)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/Attr.pod (unchanged)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/Dtd.pod (unchanged)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/NodeList.pm (unchanged
)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/SAX/Generator.pm (unch
anged)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/SAX/Builder.pm (unchan
ged)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/SAX/Parser.pm (unchang
ed)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/Document.pod (unchange
d)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/Number.pm (unchanged)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/Text.pod (unchanged)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/Node.pod (unchanged)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/Literal.pm (unchanged)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/Element.pod (unchanged
)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML/Namespace.pod (unchang
ed)
Skipping /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/XML/LibXML.pm (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::CDATASection.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::DocumentFragment.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::Comment.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::Boolean.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::Attr.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::Dtd.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::NodeList.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::SAX::Generator.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::SAX::Builder.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::Document.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::SAX::Parser.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::Number.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::Text.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::Node.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::Literal.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::Element.3 (unchanged)
Skipping /usr/local/lib/perl5/5.00503/man/man3/XML::LibXML::Namespace.3 (unchanged)
Writing /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/XML/LibXML/.packlist
Appending installation info to /usr/local/lib/perl5/5.00503/sun4-solaris/perllocal.pod
I can send a copy of the core dump on request
Many thanks