Skip Menu |
 

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

Report information
The Basics
Id: 100959
Status: resolved
Priority: 0/
Queue: XML-Parser

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

Bug Information
Severity: (no value)
Broken in: 2.44
Fixed in: 2.44



Subject: Test t/astress.t fails on perl 5.10.0
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-16870-1418803211-495.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 272
Download (untitled) / with headers
text/plain 272b
I was able to reproduce this on a 5.10.0 perl on both Linux and OS X. t/astress.t .. 1/27 not ok 5 not ok 6 not ok 7 not ok 8 not ok 9 not ok 10 not ok 11 not ok 14 not ok 18 not ok 19 not ok 20 not ok 21 not ok 22 not ok 23 not ok 24 t/astress.t .. Failed 15/27 subtests
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-16870-1418803211-495.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-16870-1418803211-495.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-24221-1418843507-1276.100959-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 873
Download (untitled) / with headers
text/plain 873b
This is because the code assumes that FileHandle has a read() method, which it does on more recent perls because of inheritance from IO::Handle, but isn't true on older perls. prove -bv t/astress.t t/astress.t .. 1..27 ok 1 ok 2 ok 3 Parse error: Can't locate object method "read" via package "FileHandle" at /root/.cpan/build/XML-Parser-2.43-haFpxP/blib/lib/XML/Parser/Expat.pm line 482. at line 10, column 34, byte 240 Handler couldn't resolve external entity at line 10, column 34, byte 240 error in processing external entity reference at line 10, column 34, byte 240 at /root/.cpan/build/XML-Parser-2.43-haFpxP/blib/lib/XML/Parser.pm line 187 ok 4 not ok 5 not ok 6 not ok 7 not ok 8 not ok 9 not ok 10 not ok 11 ok 12 ok 13 not ok 14 ok 15 ok 16 ok 17 not ok 18 not ok 19 not ok 20 not ok 21 not ok 22 not ok 23 not ok 24 ok 25 ok 26 ok 27 Failed 15/27 subtests
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-24221-1418843507-1276.100959-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-16870-1418803211-495.0-0-0 [...] rt.cpan.org> <rt-4.0.18-24221-1418843507-1276.100959-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-3165-1421046366-1073.100959-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
RT-Send-CC: rt-cpan [...] trout.me.uk
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 277
Download (untitled) / with headers
text/plain 277b
This looks to have been broken for a while. For those still using 5.10, the solution appears to be to use FileHandle with your XML::Parser. How about this for a hack on the unit test problem? https://github.com/toddr/XML-Parser/commit/b576a78adec94b808146184eb9ee54be9488c79e
CC: MICHIELB [...] cpan.org
MIME-Version: 1.0
X-Spam-Status: No, score=-6.699 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FROM_OUR_RT=-4, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <rt-4.0.18-3165-1421046366-1664.100959-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-100959 [...] rt.cpan.org> <rt-4.0.18-16870-1418803211-495.100959-6-0 [...] rt.cpan.org> <rt-4.0.18-24221-1418843507-1276.100959-6-0 [...] rt.cpan.org> <rt-4.0.18-3165-1421046366-1664.100959-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.50.108.83 with SMTP id hi19mr13743513igb.8.1421048320135; Sun, 11 Jan 2015 23:38:40 -0800 (PST)
Message-ID: <CABD0r13ckfH0_ECcwykYMwVSEanKsUsL8Qav=RLJFVTdDFyvFg [...] mail.gmail.com>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.699
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 07D1D24069E for <cpan-bug+XML-Parser [...] hipster.bestpractical.com>; Mon, 12 Jan 2015 02:39:01 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oEONKeW+USjw for <cpan-bug+XML-Parser [...] hipster.bestpractical.com>; Mon, 12 Jan 2015 02:38:47 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id E76572402F7 for <bug-XML-Parser [...] rt.cpan.org>; Mon, 12 Jan 2015 02:38:46 -0500 (EST)
Received: (qmail 3813 invoked by alias); 12 Jan 2015 07:38:46 -0000
Received: from mail-ie0-f179.google.com (HELO mail-ie0-f179.google.com) (209.85.223.179) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Sun, 11 Jan 2015 23:38:43 -0800
Received: by mail-ie0-f179.google.com with SMTP id rp18so23915848iec.10 for <bug-XML-Parser [...] rt.cpan.org>; Sun, 11 Jan 2015 23:38:40 -0800 (PST)
Received: by 10.64.216.72 with HTTP; Sun, 11 Jan 2015 23:38:19 -0800 (PST)
Delivered-To: cpan-bug+XML-Parser [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #100959] Test t/astress.t fails on perl 5.10.0
Return-Path: <michiel.beijen [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=gI2Gq85Jwx7MtOwtkoRoNwY3pph2RGeTuRovN8QGA2M=; b=NAeP40s/xt8erTKwmi93g8Tom+oCyGgBSWqsCr+eGvu4s4di+w7t5JQAss/7ngM6Wy xzlGbES4AvQcMaDJ6Uzk0FKIHn4lfQG7AyMDvmYbPxMR6Zf4jpthyx6QXZRa8F5Bdsg/ tDd3EOpmDaPkoOezDEI4ZdVhZ5hxQawPEHzwD9OmCSKrpf7tkeMGsNgQrWVR9ECD0RY8 YBNNixblY+yCHDoVvVv748YwyXooB/j+/0mdBtSISJ4TFW+dES4sDr4rzqfLMSlH32nG Auyraq8m0NuMqabDeeO+qaGp6U7UBhGWvORb5ArmpucsklOtJD7SegiX2cdHjHGzLT54 sK7Q==
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+XML-Parser [...] hipster.bestpractical.com
X-RT-Mail-Extension: xml-parser
Date: Mon, 12 Jan 2015 08:38:19 +0100
X-Spam-Level:
To: bug-XML-Parser [...] rt.cpan.org
From: Michiel Beijen <michiel.beijen [...] gmail.com>
RT-Message-ID: <rt-4.0.18-27268-1421048341-728.100959-0-0 [...] rt.cpan.org>
Content-Length: 763
Download (untitled) / with headers
text/plain 763b
Hi Todd, On Mon, Jan 12, 2015 at 8:06 AM, Todd Rinaldo via RT <bug-XML-Parser@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=100959 > > > This looks to have been broken for a while. For those still using 5.10, the solution appears to be to use FileHandle with your XML::Parser. > > How about this for a hack on the unit test problem? > > https://github.com/toddr/XML-Parser/commit/b576a78adec94b808146184eb9ee54be9488c79e
Great! Or maybe even use if $] < 5.012, FileHandle; although that is just nitpicking, it's only in the test file and your change already makes tests pass... thanks a lot. I'm still interested in 5.10.x mostly because my employer deploys stuff on CentOS/RHEL 6 and it comes with 5.10.1 as a system perl. -- Mike
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-16870-1418803211-495.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-16870-1418803211-495.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-19032-1421317087-99.100959-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 55
Thanks, tests pass again on my 5.10.0 and 5.10.1 perls.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-3165-1421046366-1073.100959-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-16870-1418803211-495.0-0-0 [...] rt.cpan.org> <rt-4.0.18-24221-1418843507-1276.100959-0-0 [...] rt.cpan.org> <rt-4.0.18-3165-1421046366-1073.100959-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-15946-1454314343-1657.100959-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
RT-Send-CC: rt-cpan [...] trout.me.uk, michiel.beijen [...] gmail.com
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 556
Download (untitled) / with headers
text/plain 556b
On 2015-01-12 02:06:06, TODDR wrote: Show quoted text
> This looks to have been broken for a while. For those still using > 5.10, the solution appears to be to use FileHandle with your > XML::Parser. > > How about this for a hack on the unit test problem? > > https://github.com/toddr/XML- > Parser/commit/b576a78adec94b808146184eb9ee54be9488c79e
As I see the same error in another distribution (libxml-perl, see http://www.cpantesters.org/cpan/report/0ada90c8-7d53-11e5-bd9c-5d080e4543d6 for a sample fail report) I think the fix should go to the .pm, not the .t file.


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.