develooper Front page | perl.perl5.porters | Postings from September 2010

[perl #70614] Seg. fault with eval/use/UNITCHECK/DESTROY/eval combination

From:
Father Chrysostomos via RT
Date:
September 23, 2010 00:12
Subject:
[perl #70614] Seg. fault with eval/use/UNITCHECK/DESTROY/eval combination
Message ID:
rt-3.6.HEAD-5116-1285225929-324.70614-15-0@perl.org
On Tue Mar 16 07:12:13 2010, sprout wrote:
> This case can be reduced to:
> eval "UNITCHECK{ eval 0 }"
> 
> (eval 0 triggers the bug more reliably than eval ''.)
> 
> The inner eval clobbers PL_eval_start, so when the UNITCHECK finishes,  
> the outer eval tries to call the inner eval’s code, which has been  
> freed already.
> 
> The attached patch saves PL_eval_start and restores it after UNITCHECK.

Applied as 8ed49485fa2d8dfdc87e0a7a269aa210d3e6da83.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About