-
Notifications
You must be signed in to change notification settings - Fork 560
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 restore overloading on SCALAR(0x90e1638) #2958
Comments
From @andkCreated by k@ak-71.mind.deFrom time to time I get this error from Storable: Cannot restore overloading on SCALAR(0x90e1638) at ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/fd_retrieve.al) line 295 It happened just now again with Storable 1.0.6 and perl 5.7.0@7936 Any guesses? This has never, really, really never occurred with Storable 0.603. I -- Perl Info
|
From [Unknown Contact. See original ticket]Quoting Andreas J. Koenig: Yes, it probably means the package defining the overloading magic Since the scalar was stored with "overloading" magic, Storable croaks Try this patch (compiles, but untested): --- Storable.xs 2000/11/05 17:21:24 1.0.1.5 stash = (HV *) SvSTASH (sv); SvAMAGIC_on(rv); It will not make it work, but it should tell you in which package the scalar : This has never, really, really never occurred with Storable 0.603. I No wonder: overloading was never stored nor retrieved by then. ;-) Raphael |
From @andk
> Since the scalar was stored with "overloading" magic, Storable croaks > Try this patch (compiles, but untested): > --- Storable.xs 2000/11/05 17:21:24 1.0.1.5 > stash = (HV *) SvSTASH (sv); > SvAMAGIC_on(rv); > It will not make it work, but it should tell you in which package the scalar This is a great patch and now I also know how to reproduce it: setting Cannot restore overloading on SCALAR(0x90dab14) (package URI::http) at which clearly indicates what I have to do before trying to retrieve > : This has never, really, really never occurred with Storable 0.603. I > No wonder: overloading was never stored nor retrieved by then. ;-) ;-) Thanks! |
From The RT System itselfThe patch will be in the next Storable release. |
Migrated from rt.perl.org#4864 (status was 'resolved')
Searchable as RT4864$
The text was updated successfully, but these errors were encountered: