This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: hot/cold related segfault
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: gcc-patches at gcc dot gnu dot org, Caroline Tice <ctice at apple dot com>
- Date: Mon, 04 Apr 2005 08:43:57 -0400
- Subject: Re: hot/cold related segfault
- References: <20050404114606.GC12900@bubble.modra.org>
On Mon, 2005-04-04 at 21:16 +0930, Alan Modra wrote:
> I've been seeing this sort of thing since the hot/cold block
> partitioning patch went in.
>
> The cause being the free of unlikely_text_section_name in
> rest_of_handle_final. With just the right conditions, the free might
> return memory to the operating system. A later access then segfaults.
> Applying the following as obvious.
>
> * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
> after freeing.
>
I assume this fixes http://gcc.gnu.org/ml/gcc/2005-04/msg00110.html?