I have not had a chance to go through the code in detail yet, but thought I'd share my observations.

On Linux Mint 18 with:

This is perl 5, version 24, subversion 0 (v5.24.0) built for x86_64-li +nux

...under Perlbrew, and:

perl -MJSON::XS -E 'say $JSON::XS::VERSION' 3.02

I get the same result:

perl jsonxs.pl End of document 1 panic: sv_chop ptr=16e6219, start=16ebf20, end=16ec0e0 at jsonxs.pl li +ne 41, <DATA> chunk 886.

Removing your requisite use 5.24.0; and after installing 5.16.3, I get the same error (note I included use feature 'say';):

End of document 1 panic: sv_chop ptr=1ed94c9, start=1d31480, end=1d31640 at jsonxs.pl li +ne 41, <DATA> chunk 886.

So it doesn't seem related to the platform, nor the version of Perl. Only thing that's the same is the version of JSON::XS.


In reply to Re: JSON::XS parsing error when incrementally parsing JSON file - "panic: sv_chop" by stevieb
in thread [SOLVED] JSON::XS parsing error when incrementally parsing JSON file - "panic: sv_chop" by ateague

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.