This is the mail archive of the gcc-bugs@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: c++/10139: g++ 3.4 ICE --- memory overwrite/allocation problem?


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


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