This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10139: g++ 3.4 ICE --- memory overwrite/allocation problem?
- From: snyder <snyder at fnal dot gov>
- To: gcc-gnats at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jh at suse dot cz
- Date: 18 Mar 2003 21:17:38 -0600
- Subject: Re: c++/10139: g++ 3.4 ICE --- memory overwrite/allocation problem?
- References: <20030318192600.27837.qmail@sources.redhat.com>
hi -
This crash seems to be related to this change to libiberty/hashtab.c:
2003-12-03 Jan Hubicka <jh at suse dot cz>
* hashtab.c (htab_expand): Fix warning.
* hashtab.c (htab_expand): Compute the size of hashtable based
on the number of elements actually used.
(htab_traverse): Call htab_expand when table is too empty.
If i back out that change, then the problem goes away for my
testcase, as well as for the original source from which
i extracted it.
In addition, since sending this report, i've run into a couple
other similar, mysterious SEGVs in gcc; reverting this change
fixes those crashes too.
sss