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
SEGFAULT when trying to reference a non-code ref as a code ref #13132
Comments
From @kentfredricCreated by @kentfredricThe following code snippet causes Perl to segfault : $Foo::nosub = undef; warnings and string pragmas have no impact on behaviour. Granted, this code is somewhat illogical. Fails on 5.18 and 5.19.2 , but not on 5.16.0 Perl Info
|
From @cpansproutOn Sun Jul 28 07:21:40 2013, kentfredric@gmail.com wrote:
What you have there is a glob, not a reference.
It was probably this commit that caused it: commit 186a5ba Don’t create pads for sub stubs The bug can be reduced to this: $ref = *Foo::nosub; The assignment creates a glob copy (coercible glob; one that downgrades \&$ref autovivifies a stub in that glob. Stub autovivification used to stringify the glob, look it up again by I removed what seemed like a waste of CPU cycles, but apparently it I suspect the correct fix is to do stringfy-and-lookup if the glob is -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Sun Jul 28 08:10:02 2013, sprout wrote:
I didn’t finish explaining before I sent that: Every sub has a pointer
-- Father Chrysostomos |
From @cpansproutOn Sun Jul 28 08:10:02 2013, sprout wrote:
I have fixed this in 2f222bb. The bug is actually older than 186a5ba, -- Father Chrysostomos |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#119051 (status was 'resolved')
Searchable as RT119051$
The text was updated successfully, but these errors were encountered: