FWIW, I can't reproduce this on Linux + Perl 5.26 + XML::LibXML::Reader 2.0132, although the bug tracker shows quite a few bugs that could explain the problem. Have you tried upgrading your XML-LibXML? If that doesn't help, do you have the possibility to upgrade your entire Perl? (Strawberry Perl 5.16.3.1 comes with libxml2-2.9.0 and XML-LibXML 2.0014, while Strawberry Perl 5.26.2.1 comes with libxml2-2.9.4 and XML-LibXML 2.0132.)

It could of course in theory also be a problem with the input data, which you haven't shown - if you could provide a minimal sample that still causes your Perl to crash, that might help. See Short, Self-Contained, Correct Example.

Update: The sample data you provided (Update 2: I hope I found the right TBXcoreStructV02.dtd file on the net) still doesn't cause it to crash on my machine, which means it's likely a problem with your version of XML-LibXML and/or libxml2 (or, IMO less likely, your Perl 5.16).


In reply to Re: Perl panicking XML::LibXML::Reader copyCurrentNode (updated) by haukex
in thread Perl panicking XML::LibXML::Reader copyCurrentNode by IB2017

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.