This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23408] [4.1 Regression] ICE in cgraph_decide_inlining_incrementally (using freed GC memory)
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Aug 2005 21:23:58 -0000
- Subject: [Bug middle-end/23408] [4.1 Regression] ICE in cgraph_decide_inlining_incrementally (using freed GC memory)
- References: <20050815213014.23408.e9925248@stud4.tuwien.ac.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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