Without this, it's possible to hit assertion failures when global destruction
attempts to skip the PVIO for PL_stderrgv while cleaning up all objects.
PL_last_in_gv = NULL;
else if ((const GV *)sv == PL_statgv)
PL_statgv = NULL;
+ else if ((const GV *)sv == PL_stderrgv)
+ PL_stderrgv = NULL;
case SVt_PVMG:
case SVt_PVNV:
case SVt_PVIV:
BEGIN { require "./test.pl"; }
-plan( tests => 57 );
+plan( tests => 58 );
# Used to segfault (bug #15479)
fresh_perl_like(
'',
'',
);
+ # Variant of the above which creates an object that persists until global
+ # destruction.
+ fresh_perl_is(
+ 'use Exporter; package A; sub a { // }; %::=""',
+ '',
+ '',
+ );
}
# now tests in eval