Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Storable CPAN distribution.

Report information
The Basics
Id: 84705
Status: open
Priority: 0/
Queue: Storable

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

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

Subject: suspected XS bug
Download (untitled) / with headers
text/plain 510b
I went source diving in the xs and was unable to find anything wonky... but if you run the attached test file in perl 5.16.x or higher, you'll see that the xs exposes a type of internal array that users shouldn't have access to even doing something as dumb as the attached. Probably not a problem for any real use cases, but indicates a possible memory allocation problem. -- If riding in an airplane is flying, then riding in a boat is swimming. 116 jumps, 48.6 minutes of freefall, 92.9 freefall miles.
text/x-perl 495b
package dumb_thing; use strict; use warnings; use Tie::Array; use Carp; use base 'Tie::StdArray'; sub TIEARRAY { my $class = shift; my $this = bless [], $class; my $that = shift; @$this = @$that; $this; } package main; use strict; use warnings; use Storable qw(freeze thaw); my $x = [1,2,3,4]; broken($x); # works fine around the world broken( thaw( freeze($x) ) ); # broken in 5.16 and 5.17 sub broken { my $w = shift; tie @$_, dumb_thing => $_ for $w; }
Download (untitled) / with headers
text/plain 168b
Broken with Storable 0.5@7, but core started to error with 5.16 only. See Fixed with RURBAN/Storable-3.05_04.tar.gz -- Reini Urban

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

Please report any issues with to