Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: ivan.wills [...] gmail.com
Cc:
AdminCc:

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



Subject: Perl 5.18.0 - XML::LibXML::XPathContext Loses it's document object
Date: Mon, 22 Jul 2013 07:13:25 +1000
To: bug-XML-LibXML [...] rt.cpan.org
From: Ivan Wills <ivan.wills [...] gmail.com>
The XML::LibXML::XPathContext- object appears to loose it's document object die()ing with "XPathContext: lost current node at lib/W3C/SOAP/XSD/Document.pm line 219." when scope changes. You can reproduce the bug with W3C-SOAP using the t/xsd_parser.t test, all earlier perl versions pass this test. Ivan. -- email/jabber: ivan.wills@gmail.com / / _ _ / \ / | | | | / \/ \_| | |
Hi Ivan, On Sun Jul 21 17:13:37 2013, ivan.wills@gmail.com wrote: Show quoted text
> The XML::LibXML::XPathContext- object appears to loose it's document object > die()ing with "XPathContext: lost current node at > lib/W3C/SOAP/XSD/Document.pm line 219." when scope changes. > You can reproduce the bug with W3C-SOAP using the t/xsd_parser.t test, all > earlier perl versions pass this test. >
Thanks for reporting this - I'll try to investigate. In the meanwhile, you can help me, by writing a self-contained t/*.t file for XML::LibXML. Regards, -- Shlomi Fish Show quoted text
> Ivan. >
Subject: Re: [rt.cpan.org #87132] Perl 5.18.0 - XML::LibXML::XPathContext Loses it's document object
Date: Mon, 22 Jul 2013 17:24:15 +1000
To: bug-XML-LibXML [...] rt.cpan.org
From: Ivan Wills <ivan.wills [...] gmail.com>
I'll shall try. On 22 July 2013 16:43, Shlomi Fish via RT <bug-XML-LibXML@rt.cpan.org>wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=87132 > > > Hi Ivan, > > On Sun Jul 21 17:13:37 2013, ivan.wills@gmail.com wrote:
> > The XML::LibXML::XPathContext- object appears to loose it's document
> object
> > die()ing with "XPathContext: lost current node at > > lib/W3C/SOAP/XSD/Document.pm line 219." when scope changes. > > You can reproduce the bug with W3C-SOAP using the t/xsd_parser.t test,
> all
> > earlier perl versions pass this test. > >
> > Thanks for reporting this - I'll try to investigate. In the meanwhile, you > can help me, by writing a self-contained t/*.t file for XML::LibXML. > > Regards, > > -- Shlomi Fish >
> > Ivan. > >
> > > >
-- email/jabber: ivan.wills@gmail.com / / _ _ / \ / | | | | / \/ \_| | |
Hi Ivan, On Mon Jul 22 03:24:31 2013, ivan.wills@gmail.com wrote: Show quoted text
> I'll shall try. > >
Just to let you know that I started the work on creating a self-contained executable for that here: https://github.com/shlomif/W3C-SOAP/tree/perl-5.18.0-XML-LibXML-crash-isolate--rt87132 (Note the branch). Regards, -- Shlomi Fish Show quoted text
> On 22 July 2013 16:43, Shlomi Fish via RT <bug-XML-LibXML@rt.cpan.org>wrote: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=87132 > > > > > Hi Ivan, > > > > On Sun Jul 21 17:13:37 2013, ivan.wills@gmail.com wrote:
> > > The XML::LibXML::XPathContext- object appears to loose it's document
> > object
> > > die()ing with "XPathContext: lost current node at > > > lib/W3C/SOAP/XSD/Document.pm line 219." when scope changes. > > > You can reproduce the bug with W3C-SOAP using the t/xsd_parser.t test,
> > all
> > > earlier perl versions pass this test. > > >
> > > > Thanks for reporting this - I'll try to investigate. In the meanwhile, you > > can help me, by writing a self-contained t/*.t file for XML::LibXML. > > > > Regards, > > > > -- Shlomi Fish > >
> > > Ivan. > > >
> > > > > > > >
> >
Hi Ivan, On Mon Jul 22 03:24:31 2013, ivan.wills@gmail.com wrote: Show quoted text
> I'll shall try. >
In this branch where I demoosified the reduced program, I'm no longer ever getting a crash: https://github.com/shlomif/W3C-SOAP/tree/perl-5.18.0-XML-LibXML-crash-isolate--rt87132--no-moose To try it do: while perl Crash_Reproduce.t ; do echo $((i++)) ; done Inside bash. Works fine, while in the branch of https://github.com/shlomif/W3C-SOAP/tree/perl-5.18.0-XML-LibXML-crash-isolate--rt87132 - it crashes. Maybe my demoosification was wrong (I'll try to see using Devel::Cover), but maybe Moose is part fo the the problem. Regards, -- Shlomi Fish Show quoted text
> > On 22 July 2013 16:43, Shlomi Fish via RT <bug-XML-LibXML@rt.cpan.org>wrote: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=87132 > > > > > Hi Ivan, > > > > On Sun Jul 21 17:13:37 2013, ivan.wills@gmail.com wrote:
> > > The XML::LibXML::XPathContext- object appears to loose it's document
> > object
> > > die()ing with "XPathContext: lost current node at > > > lib/W3C/SOAP/XSD/Document.pm line 219." when scope changes. > > > You can reproduce the bug with W3C-SOAP using the t/xsd_parser.t test,
> > all
> > > earlier perl versions pass this test. > > >
> > > > Thanks for reporting this - I'll try to investigate. In the meanwhile, you > > can help me, by writing a self-contained t/*.t file for XML::LibXML. > > > > Regards, > > > > -- Shlomi Fish > >
> > > Ivan. > > >
> > > > > > > >
> >
On Thu Jul 25 12:12:58 2013, SHLOMIF wrote: Show quoted text
> Hi Ivan, > > On Mon Jul 22 03:24:31 2013, ivan.wills@gmail.com wrote:
> > I'll shall try. > >
> > In this branch where I demoosified the reduced program, I'm no longer > ever getting a crash: > > https://github.com/shlomif/W3C-SOAP/tree/perl-5.18.0-XML-LibXML-crash- > isolate--rt87132--no-moose > > To try it do: > > while perl Crash_Reproduce.t ; do echo $((i++)) ; done > > Inside bash. Works fine, while in the branch of > https://github.com/shlomif/W3C-SOAP/tree/perl-5.18.0-XML-LibXML- > crash-isolate--rt87132 - it crashes. Maybe my demoosification was > wrong (I'll try to see using Devel::Cover), but maybe Moose is part > fo the the problem.
OK, in the same branch (the --nomoose one) I fixed a coverage bug, but it still doesn't crash anymore. Regards, -- Shlomi Fish Show quoted text
> > Regards, > > -- Shlomi Fish >
> > > > On 22 July 2013 16:43, Shlomi Fish via RT <bug-XML-
> LibXML@rt.cpan.org>wrote:
> >
> > > <URL: https://rt.cpan.org/Ticket/Display.html?id=87132 > > > > > > > Hi Ivan, > > > > > > On Sun Jul 21 17:13:37 2013, ivan.wills@gmail.com wrote:
> > > > The XML::LibXML::XPathContext- object appears to loose it's
> document
> > > object
> > > > die()ing with "XPathContext: lost current node at > > > > lib/W3C/SOAP/XSD/Document.pm line 219." when scope changes. > > > > You can reproduce the bug with W3C-SOAP using the t/xsd_parser.t
> test,
> > > all
> > > > earlier perl versions pass this test. > > > >
> > > > > > Thanks for reporting this - I'll try to investigate. In the
> meanwhile, you
> > > can help me, by writing a self-contained t/*.t file for
> XML::LibXML.
> > > > > > Regards, > > > > > > -- Shlomi Fish > > >
> > > > Ivan. > > > >
> > > > > > > > > > > >
> > > >
> >
Hi Ivan, I found out that in the “moose>” branch if I change «lazy_build => 0,» to «lazy_build => 1,», then the bug is fixed (this was some thing the --nomoose branch did differently). So this seems like an initialisation problem in the moose code and not a problem in XML-LibXML. Can I close this bug here (in XML-LibXML)? Regards, -- Shlomi Fish On Thu Jul 25 12:25:47 2013, SHLOMIF wrote: Show quoted text
> On Thu Jul 25 12:12:58 2013, SHLOMIF wrote:
> > Hi Ivan, > > > > On Mon Jul 22 03:24:31 2013, ivan.wills@gmail.com wrote:
> > > I'll shall try. > > >
> > > > In this branch where I demoosified the reduced program, I'm no longer > > ever getting a crash: > > > > https://github.com/shlomif/W3C-SOAP/tree/perl-5.18.0-XML-LibXML- > > crash- > > isolate--rt87132--no-moose > > > > To try it do: > > > > while perl Crash_Reproduce.t ; do echo $((i++)) ; done > > > > Inside bash. Works fine, while in the branch of > > https://github.com/shlomif/W3C-SOAP/tree/perl-5.18.0-XML-LibXML- > > crash-isolate--rt87132 - it crashes. Maybe my demoosification was > > wrong (I'll try to see using Devel::Cover), but maybe Moose is > > part > > fo the the problem.
> > OK, in the same branch (the --nomoose one) I fixed a coverage bug, but > it still doesn't crash anymore. > > Regards, > > -- Shlomi Fish >
> > > > Regards, > > > > -- Shlomi Fish > >
> > > > > > On 22 July 2013 16:43, Shlomi Fish via RT <bug-XML-
> > LibXML@rt.cpan.org>wrote:
> > >
> > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=87132 > > > > > > > > > Hi Ivan, > > > > > > > > On Sun Jul 21 17:13:37 2013, ivan.wills@gmail.com wrote:
> > > > > The XML::LibXML::XPathContext- object appears to loose it's
> > document
> > > > object
> > > > > die()ing with "XPathContext: lost current node at > > > > > lib/W3C/SOAP/XSD/Document.pm line 219." when scope changes. > > > > > You can reproduce the bug with W3C-SOAP using the > > > > > t/xsd_parser.t
> > test,
> > > > all
> > > > > earlier perl versions pass this test. > > > > >
> > > > > > > > Thanks for reporting this - I'll try to investigate. In the
> > meanwhile, you
> > > > can help me, by writing a self-contained t/*.t file for
> > XML::LibXML.
> > > > > > > > Regards, > > > > > > > > -- Shlomi Fish > > > >
> > > > > Ivan. > > > > >
> > > > > > > > > > > > > > > >
> > > > > >
> > > >
Subject: Re: [rt.cpan.org #87132] Perl 5.18.0 - XML::LibXML::XPathContext Loses it's document object - CLOSE
Date: Fri, 2 Aug 2013 07:56:46 +1000
To: bug-XML-LibXML [...] rt.cpan.org
From: Ivan Wills <ivan.wills [...] gmail.com>
Hi Shiomi, Thanks for the investigation, I would try to close the bug but I'm not sure how, will adding the CLOSE to the subject will do it? Regrads, Ivan On 2 August 2013 00:24, Shlomi Fish via RT <bug-XML-LibXML@rt.cpan.org>wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=87132 > > > Hi Ivan, > > I found out that in the “moose>” branch if I change «lazy_build => 0,» to > «lazy_build => 1,», then the bug is fixed (this was some thing the > --nomoose branch did differently). So this seems like an initialisation > problem in the moose code and not a problem in XML-LibXML. > Can I close this bug here (in XML-LibXML)? > > Regards, > > -- Shlomi Fish > > On Thu Jul 25 12:25:47 2013, SHLOMIF wrote:
> > On Thu Jul 25 12:12:58 2013, SHLOMIF wrote:
> > > Hi Ivan, > > > > > > On Mon Jul 22 03:24:31 2013, ivan.wills@gmail.com wrote:
> > > > I'll shall try. > > > >
> > > > > > In this branch where I demoosified the reduced program, I'm no longer > > > ever getting a crash: > > > > > > https://github.com/shlomif/W3C-SOAP/tree/perl-5.18.0-XML-LibXML- > > > crash- > > > isolate--rt87132--no-moose > > > > > > To try it do: > > > > > > while perl Crash_Reproduce.t ; do echo $((i++)) ; done > > > > > > Inside bash. Works fine, while in the branch of > > > https://github.com/shlomif/W3C-SOAP/tree/perl-5.18.0-XML-LibXML- > > > crash-isolate--rt87132 - it crashes. Maybe my demoosification was > > > wrong (I'll try to see using Devel::Cover), but maybe Moose is > > > part > > > fo the the problem.
> > > > OK, in the same branch (the --nomoose one) I fixed a coverage bug, but > > it still doesn't crash anymore. > > > > Regards, > > > > -- Shlomi Fish > >
> > > > > > Regards, > > > > > > -- Shlomi Fish > > >
> > > > > > > > On 22 July 2013 16:43, Shlomi Fish via RT <bug-XML-
> > > LibXML@rt.cpan.org>wrote:
> > > >
> > > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=87132 > > > > > > > > > > > Hi Ivan, > > > > > > > > > > On Sun Jul 21 17:13:37 2013, ivan.wills@gmail.com wrote:
> > > > > > The XML::LibXML::XPathContext- object appears to loose it's
> > > document
> > > > > object
> > > > > > die()ing with "XPathContext: lost current node at > > > > > > lib/W3C/SOAP/XSD/Document.pm line 219." when scope changes. > > > > > > You can reproduce the bug with W3C-SOAP using the > > > > > > t/xsd_parser.t
> > > test,
> > > > > all
> > > > > > earlier perl versions pass this test. > > > > > >
> > > > > > > > > > Thanks for reporting this - I'll try to investigate. In the
> > > meanwhile, you
> > > > > can help me, by writing a self-contained t/*.t file for
> > > XML::LibXML.
> > > > > > > > > > Regards, > > > > > > > > > > -- Shlomi Fish > > > > >
> > > > > > Ivan. > > > > > >
> > > > > > > > > > > > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
-- email/jabber: ivan.wills@gmail.com / / _ _ / \ / | | | | / \/ \_| | |
Hi Ivan, On Thu Aug 01 17:57:02 2013, ivan.wills@gmail.com wrote: Show quoted text
> Hi Shiomi, > > Thanks for the investigation,
You're welcome. Show quoted text
> I would try to close the bug but I'm not > sure > how, will adding the CLOSE to the subject will do it? >
There's a "Status" drop down in the "Ticket and Transaction" section on the right. I resolved it for you now. Regards, -- Shlomi Fish