develooper Front page | perl.perl5.porters | Postings from December 2011

[perl #30807] Misleading error message from Storable

From:
James E Keenan via RT
Date:
December 2, 2011 16:26
Subject:
[perl #30807] Misleading error message from Storable
Message ID:
rt-3.6.HEAD-5084-1322871990-88.30807-15-0@perl.org
On Sat Jul 24 08:20:35 2004, rickdelaney wrote:
> 
> This is a bug report for perl from rick@bort.ca,
> generated with the help of perlbug 1.34 running under perl v5.8.3.
> -----------------------------------------------------------------
> % perl -MStorable=thaw -e 'thaw("a")'
> Magic number checking on storable string failed at
>    ../../lib/Storable.pm (autosplit into
>    ../../lib/auto/Storable/thaw.al) line 358, at -e line 1
> 
> So far so good.
> 
> % perl -MStorable=thaw -e 'thaw("aa")'
> Storable binary image v48.97 more recent than I am (v2.6) at
>    ../../lib/Storable.pm (autosplit into
>    ../../lib/auto/Storable/thaw.al) line 358, at -e line 1
> 
> It would be nice if the second had the same error as the first.
> 

I can confirm that, notwithstanding minor changes in the error messages,
this bug is still present in the Storable that ships with Perl 5.14.2:
$ perl -MStorable=thaw -e 'thaw("a")'
Magic number checking on storable string failed at
/usr/local/lib/perl5/5.14.2/darwin-2level/Storable.pm line 416, at -e line 1

$ perl -MStorable=thaw -e 'thaw("aa")'
Storable binary image v48.97 more recent than I am (v2.8) at
/usr/local/lib/perl5/5.14.2/darwin-2level/Storable.pm line 416, at -e line 1

Thank you very much.
Jim Keenan



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About