[Bug middle-end/23408] [4.1 Regression] ICE in cgraph_decide_inlining_incrementally (using freed GC memory)
Andrew Pinski
pinskia@physics.uc.edu
Tue Aug 16 21:24:00 GMT 2005
>
>
> ------- 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
More information about the Gcc-bugs
mailing list