nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

CC protect CopFILE_free and CopSTASH_free in END block #296

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since global destruction in 1.45_01 (?) after the END block 
  call_list(PL_scopestack_ix, PL_endav);
handling at LEAVE tries to free the COPs in the end CVs.
only with threads, and only with CC

special case pp_sub_END (todo: multiple?)
to NULLify CopFILE and CopSTASHPV in those functions

Original issue reported on code.google.com by reini.urban on 13 Feb 2014 at 4:23

GoogleCodeExporter commented 9 years ago
Fixed with commit 9e3c31d660237b03fa3bfbdbfeb164b36fc7d350
Author: Reini Urban <rurban@cpanel.net>
Date:   Thu Feb 13 10:57:47 2014 -0600

    CC: fix #296 testcc 48: protect CopFILE_free and CopSTASH_free in END block

    END blocks do cv_undef in LEAVE afterwards with -C,-O3, but only
    ITHREADS is affected

Original comment by reini.urban on 13 Feb 2014 at 4:58