This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37057] 7 Internal Compiler Errors when compiling OpenFOAM-1.5
- From: "hubicka at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Sep 2008 09:24:27 -0000
- Subject: [Bug c++/37057] 7 Internal Compiler Errors when compiling OpenFOAM-1.5
- References: <bug-37057-16570@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from hubicka at ucw dot cz 2008-09-14 09:24 -------
Subject: Re: 7 Internal Compiler Errors when compiling OpenFOAM-1.5
Looking at the log, it seems to be another leak where multiple
declarations points to single struct function. This is of course quite
evil bug with various side effects (surprisingly often the sharing just
works, but it is always memory leak and tends to break various targets),
we had instance of it already in IPCP versioning and template
instantiation. THis is why I added explicit ggc_free in cgraph code
now.
I am just leaving for US trip, so I am not sure how soon I will be able
to look, but debugging is quite easy. You figure out the shared decls
(i.e. one is in the backtrace where garbagecollector crashes, other is
the one we call ggc_free on the struct function when removing it). Then
breakpoint on the end of ggc_page with condition of result being either
of those addresses to see who builds them and the second one is the
wrong copy.
Honza
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37057