Subject: | crash with multiple shutdown |
Date: | Fri, 28 Jun 2013 14:34:19 +0100 |
To: | bug-Devel-NYTProf [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
Devel::NYTProf can cause a crash if finish_profile() is called after
the Perl interpreter has been destructed. This can occur if using the
new libcexit option, if Perl exits in an orderly fashion. The crash
occurs during hv_clear(), if the scope stack's memory allocation has
gone away. The fix is to add "if(HvUSEDKEYS(sub_callers_hv))" in front of
"hv_clear(sub_callers_hv);" in finish_profile().
-zefram