This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: hot/cold related segfault


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?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]