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
localizing $foo, then glob-aliasing to an LVALUE segfaults when trying to restore. #7432
Comments
From james@mastros.bizCreated by james@mastros.bizHello, everybody. I was recently playing with LVALUEs trying to get Code: { Output: Backtrace: Sorry, I don't have a 5.8.5 or debugging perl handy -- let me know if either Perl Info
|
From @hvdsJames Mastros (via RT) <perlbug-followup@perl.org> wrote: Segfault confirmed on bleadperl (@23061): perl -e '{ local $foo; my $x; *foo = \pos($x) }' #0 Perl_magic_setpos (sv=0x8160330, mg=0x0) at mg.c:1687 Hugo |
The RT System itself - Status changed from 'new' to 'open' |
From @iabynOn Thu, Jul 22, 2004 at 03:41:59PM +0100, hv@crypt.org wrote:
It occurs because when unlocalizing, any magic associated with the local Now, I'm not sure why magic is copied across to the restored value; I Anyway, I guess the fix is to not copy across the magic if it's a PVLV Dave. -- |
From @smpeters
Again, not sure what the fix was, but it works just fine in bleadperl. |
@smpeters - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#30778 (status was 'resolved')
Searchable as RT30778$
The text was updated successfully, but these errors were encountered: