Skip Menu |

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

Report information
The Basics
Id: 101041
Status: open
Priority: 0/
Queue: XML-Twig

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

Bug Information
Severity: (no value)
Broken in: 3.48
Fixed in: 3.49



CC: ANDK [...] cpan.org
Subject: Test failure with perl 5.21.7
See http://matrix.cpantesters.org/?dist=XML-Twig;os=linux;perl=5.21.7;reports=1#sl=6,0 for a reports overview. It looks like the breakage happened between the bleadperl commits 100b2bb8398f189ce38052fd6f7138adebb1b995 and 3503e8484ba6399e51aec16d01278970f6a0ebe5
On Sat Dec 20 15:06:02 2014, SREZIC wrote: Show quoted text
> See http://matrix.cpantesters.org/?dist=XML- > Twig;os=linux;perl=5.21.7;reports=1#sl=6,0 for a reports overview. It > looks like the breakage happened between the bleadperl commits > 100b2bb8398f189ce38052fd6f7138adebb1b995 and > 3503e8484ba6399e51aec16d01278970f6a0ebe5
This passes for me with v5.21.6-639-g8be8179. It may be an OS-specific failure, or it may be a temporary blead bug that got fixed.
CC: SREZIC [...] cpan.org, ANDK [...] cpan.org
Subject: Re: [rt.cpan.org #101041] Test failure with perl 5.21.7
Date: Sun, 21 Dec 2014 11:58:52 +0100
To: bug-XML-Twig [...] rt.cpan.org
From: Andreas Koenig <andreas.koenig.7os6VVqR [...] franz.ak.mind.de>
It's dependent on XML::Parser. Downgrading to TODDR/XML-Parser-2.41.tar.gz makes the tests pass again, as I just verified for a v5.21.6 and
On 2014-12-21 05:59:11, andreas.koenig.7os6VVqR@franz.ak.mind.de wrote: Show quoted text
> It's dependent on XML::Parser. Downgrading to > TODDR/XML-Parser-2.41.tar.gz makes the tests pass again, as I just > verified for a v5.21.6 and
Confirmed, it fails for me too, with a newer XML::Parser and older perls.
On Sun Dec 21 09:23:07 2014, SREZIC wrote: Show quoted text
> On 2014-12-21 05:59:11, andreas.koenig.7os6VVqR@franz.ak.mind.de wrote:
> > It's dependent on XML::Parser. Downgrading to > > TODDR/XML-Parser-2.41.tar.gz makes the tests pass again, as I just > > verified for a v5.21.6 and
> > Confirmed, it fails for me too, with a newer XML::Parser and older perls.
A patch to XML::Parser to improve error messages interferes with the way XML::Twig uses die inside a handler to trigger an exception that's caught after parsing. I am investigating the patch which looks wrong to me. __ mirod
On 2015-01-03 10:01:29, MIROD wrote: Show quoted text
> On Sun Dec 21 09:23:07 2014, SREZIC wrote:
> > On 2014-12-21 05:59:11, andreas.koenig.7os6VVqR@franz.ak.mind.de > > wrote:
> > > It's dependent on XML::Parser. Downgrading to > > > TODDR/XML-Parser-2.41.tar.gz makes the tests pass again, as I just > > > verified for a v5.21.6 and
> > > > Confirmed, it fails for me too, with a newer XML::Parser and older > > perls.
> > A patch to XML::Parser to improve error messages interferes with the > way XML::Twig uses die inside a handler to trigger an exception that's > caught after parsing. > > I am investigating the patch which looks wrong to me. >
The problematic change in XML::Parser was reverted and there are no problems if XML-Parser-2.44 is used. However, it could be that there are XML-Parser-2.43 installations out there in the wild, so maybe it's a good idea to force a better version in XML::Twig's Makefile.PL (e.g. using something like [untested] $min_xml_parser_version = 0; if (eval { require XML::Parser; 1 }) { if ($XML::Parser::VERSION = 2.43) { $min_xml_parser_version = 2.44; } } ... PREREQ_PM => { ... 'XML::Parser' => $min_xml_parser_version ... } A new XML-Twig release would also have the side-effect of "cleaning" up the CPAN Testers reports. Currently http://matrix.cpantesters.org/?dist=XML-Twig+3.48 shows quite a lot of red spots...
On Sat Dec 20 15:06:02 2014, SREZIC wrote: Show quoted text
> See http://matrix.cpantesters.org/?dist=XML- > Twig;os=linux;perl=5.21.7;reports=1#sl=6,0 for a reports overview. It > looks like the breakage happened between the bleadperl commits > 100b2bb8398f189ce38052fd6f7138adebb1b995 and > 3503e8484ba6399e51aec16d01278970f6a0ebe5
So it was a problem with XML::Parser 2.43. XML::Parser 2.44 fixed the problem, and XML::Twig 3.49 includes a workaround that makes it work with XML::Parser 2.43 (by monkey patching the module to restore the normal behaviour of XML::Parser). __ mirod