New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storable cannot handle threads::shared tied hashes and arrays #8320
Comments
From laocoon@fastmail.fmCreated by laocoon@fastmail.fmThis is a bug report for perl from laocoon@fastmail.fm, ----------------------------------------------------------------- Storable seems to have problems thawing shared hashes and arrays correctly. % perl -Mthreads -Mthreads::shared -wle 'use Storable qw/freeze thaw/; Confirmed with 5.8.7, Storable v2.13, threads v1.05, threads::shared v0.93 Perl Info
|
From au@hcsd.deHi all! On Mo. 06. Feb. 2006, 07:46:15, lao wrote:
The problem is still present in recent Perl versions (verified against #!/usr/bin/perl use strict; use threads; use Data::Dumper; my $data = { my $x = shared_clone( $data ); print Dumper([ $x ]); my $y = Storable::freeze( $x ); print Dumper([ $z ]); Error message is: Can't locate object method "FETCH" via package "threads::shared::tie" What needs to be done to make module Storable work on tied hashes and Best regards, Stephan |
From au@hcsd.de |
The RT System itself - Status changed from 'new' to 'open' |
From au@hcsd.deThis bug is still present in Perl 5.12.0 – serializing shared Hashes and |
From [Unknown Contact. See original ticket]This bug is still present in Perl 5.12.0 – serializing shared Hashes and |
From mokalan@gmail.comStill present in 5.16.1 |
From [Unknown Contact. See original ticket]Still present in 5.16.1 |
From @tonycozOn Fri, 09 Apr 2010 11:21:48 -0700, stephan_a wrote:
Storable does work on tied hashes and arrays, and preserves the tie through the freeze()/thaw(). While threads::shared could be modified to provide the normal FETCH etc methods, I can't see it as practical to reattach the SV to its common shared SV. I guess the change you're looking for is a way to *not* preserve the tie through the freeze/thaw process. Tony |
Migrated from rt.perl.org#38443 (status was 'open')
Searchable as RT38443$
The text was updated successfully, but these errors were encountered: