This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Check for deleted stashes when reporting var names
authorFlorian Ragwitz <rafl@debian.org>
Tue, 16 Nov 2010 06:14:04 +0000 (07:14 +0100)
committerFlorian Ragwitz <rafl@debian.org>
Tue, 16 Nov 2010 06:26:24 +0000 (07:26 +0100)
commit249534c343ab758089ce40786709465e328c8b2d
tree266791ae56984c6181edf2c2d3fa7c1f2e623589
parentecbbcad639528457f99648a7a5576d629350122e
Check for deleted stashes when reporting var names

The stash of the GV is what's being used to look up a global variables name. If
the GV has no stash, we might as well give up early. This fixes a segfault
because S_varname would later assume gv_fullname4 has resolved the glob's full
name and try to use the svu_pv slot of the scalar returned, while all it got
back was undef.
sv.c
t/lib/warnings/9uninit