Skip Menu |

This queue is for tickets about the JSON-SL CPAN distribution.

Report information
The Basics
Id: 94074
Status: resolved
Priority: 0/
Queue: JSON-SL

People
Owner: MNUNBERG [...] cpan.org
Requestors: mmcclenn [...] geology.wisc.edu
Cc:
AdminCc:

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



Subject: seg fault when parsing particular json
Date: Thu, 20 Mar 2014 19:58:54 -0500
To: bug-JSON-SL [...] rt.cpan.org
From: Michael McClennen <mmcclenn [...] geology.wisc.edu>
Hi Mark, Your JSON::SL module is exactly what I need for my current project! Unfortunately, it seg faults while trying to parse the attached file. Note that JSON::decode_json handles the file contents properly with no errors. Perl: This is perl 5, version 12, subversion 4 (v5.12.4) built for darwin-thread-multi-2level OS: Darwin synonymy.geology.wisc.edu 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64 Dist: JSON-SL-1.0.1 Please let me know if this is something that can be fixed easily. Otherwise, I'll have to brute-force the whole thing with decode_json (this is just the initial fragment of a 2.7 MB file). -- Michael McClennen

Message body is not shown because sender requested not to inline it.

Sorry for the late reply. Can you tell me if this is still an issue? I could not manage to reproduce this on either mac or Linux with this file you provided. I fixed a small bug and have released 1.0.2 recently. Please see if this solves your issue - or provide the JSON::SL specific code you were using (i.e. incr_parse? root_callback, etc) On Thu Mar 20 20:59:05 2014, mmcclenn@geology.wisc.edu wrote: Show quoted text
> Hi Mark, > > Your JSON::SL module is exactly what I need for my current project! > Unfortunately, it seg faults while trying to parse the attached file. > Note that JSON::decode_json handles the file contents properly with no > errors. > > Perl: This is perl 5, version 12, subversion 4 (v5.12.4) built for > darwin-thread-multi-2level > OS: Darwin synonymy.geology.wisc.edu 12.5.0 Darwin Kernel > Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu- > 2050.48.12~1/RELEASE_X86_64 x86_64 > Dist: JSON-SL-1.0.1 > > Please let me know if this is something that can be fixed easily. > Otherwise, I'll have to brute-force the whole thing with decode_json > (this is just the initial fragment of a 2.7 MB file). > > -- Michael McClennen