Skip Menu | will be shut down on March 1st, 2021.

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

Report information
The Basics
Id: 128572
Status: new
Priority: 0/
Queue: JSON-XS

Owner: Nobody in particular
Requestors: WATERKIP [...]

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

Subject: Please release 3.04 as 4.01 and use X.Y_Z notation for trial releases
Download (untitled) / with headers
text/plain 314b
Hi, I came across the following bug in the 4.0 release of JSON::XS. You will get one of these errors: * Bizarre copy of HASH in subroutine exit at * panic: attempt to copy freed scalar 55dd1fa66068 to 55dd1fa660b0 at * Bizarre copy of ARRAY in anonymous array ([]) I'm running on perl 5.28 btw. Cheers, Wesley
text/x-perl 408b
#!/usr/bin/perl use warnings; use strict; use JSON::XS; my $scalar = '{"type": "bug", "behaviour":"weird"}'; my $json = JSON::XS->new->utf8->filter_json_object( sub { my $args = shift; my %construct_args = %{$args}; return \%construct_args; } ); use Data::Dumper; my $val = $json->decode($scalar); print Dumper $val; # works print Dumper $json->decode($scalar); # no worky

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to