------- Additional Comments From pinskia at physics dot uc dot edu  2005-08-16 
21:23 -------
Subject: Re:  [4.1 Regression] ICE in cgraph_decide_inlining_incrementally 
(using freed GC memory)

> 
> 
> ------- Additional Comments From e9925248 at stud4 dot tuwien dot ac dot at  
> 2005-08-16 21:20 -------
> I think, I found the cause of this:
> cgraph_early_inlining holds a list of cgraph nodes in the array order.
> 
> In this example, cgraph_decide_inlining_incrementally removes all references
> known by the garbage collector to a node contained in this array, which has 
> not
> been processed. Then it calls the ggc_collect. With checking enabled, the 
> freed
> memory is overwritten so that the following access cause a segementation 
> fault.

The other way to fix it, would be move the order array to GC memory so we call
still call ggc_collect.

-- Pinski


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23408

Reply via email to