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
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 176
Download (untitled) / with headers
text/plain 176b
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-2823-1354689413-1038.81703-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 858
Download (untitled) / with headers
text/plain 858b
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
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-2823-1354689413-1038.81703-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <rt-3.8.HEAD-2823-1354689413-1038.81703-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-10474-1354698987-1530.81703-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1315
Download (untitled) / with headers
text/plain 1.2k
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.