Skip Menu |

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 81703
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.0013
Fixed in: (no value)



Subject: 40reader_mem_error.t hangs on Windows
Strawberry perl 5.8.9, 5.14.0, 5.16.1 D:\06\XML-LibXML-2.0013>perl -Mblib t/40reader_mem_error.t 1..2 Terminating on signal SIGINT(2) -- Alexandr Ciornii, http://chorny.net
On 2012-12-04 15:19:26, CHORNY wrote: Show quoted text
> Strawberry perl 5.8.9, 5.14.0, 5.16.1 > > D:\06\XML-LibXML-2.0013>perl -Mblib t/40reader_mem_error.t > 1..2 > Terminating on signal SIGINT(2) >
It does not hang, but is very, very slow, and may take up to an hour to complete. Reason is that currently w3.org is very slow, and this test is implicitly downloading the xhtml DTD from w3.org. Unfortunately this is a modular DTD with many includes... $ time lwp-request http://w3.org/TR/xhtml11/DTD/xhtml11.dtd > /dev/null 0.136u 0.014s 0:29.77 0.4% 6+5268k 3+0io 0pf+0w (That is, half a minute just for first file...) My suggestion is to use a test case without an externally loaded DTD, or provide all necessary DTDs locally and setup a catalog (the latter is what we do at $company, we were bitten too many times by slow DTD providers). Regards, Slaven
On Wed Dec 05 01:36:53 2012, SREZIC wrote: Show quoted text
> On 2012-12-04 15:19:26, CHORNY wrote:
> > Strawberry perl 5.8.9, 5.14.0, 5.16.1 > > > > D:\06\XML-LibXML-2.0013>perl -Mblib t/40reader_mem_error.t > > 1..2 > > Terminating on signal SIGINT(2) > >
> > It does not hang, but is very, very slow, and may take up to an hour to > complete. Reason is that currently w3.org is very slow, and this test is > implicitly downloading the xhtml DTD from w3.org. Unfortunately this is > a modular DTD with many includes... > > $ time lwp-request http://w3.org/TR/xhtml11/DTD/xhtml11.dtd > /dev/null > 0.136u 0.014s 0:29.77 0.4% 6+5268k 3+0io 0pf+0w > > (That is, half a minute just for first file...) > > My suggestion is to use a test case without an externally loaded DTD, or > provide all necessary DTDs locally and setup a catalog (the latter is > what we do at $company, we were bitten too many times by slow DTD > providers). > > Regards, > Slaven
Thanks for the report and the proposed fix. I now added some code to prevent validation and loading external DTDs. It is available in XML-LibXML-2.0014.tar.gz which was uploaded to CPAN. The reason why I didn't run into this bug is because I have an $XML_CATALOG_FILES environment variable set by default which contains the XHTML DTDs. Regards, -- Shlomi Fish