------- Comment #6 from haubi at gentoo dot org 2008-02-25 19:24 ------- Created an attachment (id=15230) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15230&action=view) valgrind output for cc1plus
This coverage_checksum_string() indeed has slightly changed from gcc-4.0-branch to gcc-4.1-branch, see also http://gcc.gnu.org/ml/gcc-help/2007-12/msg00229.html IMHO, coverage.c, line 460 is part of the problem: 459 if (offset) 460 for (;string[offset]; offset++) 461 for (i = i + offset; string[i]; i++) 462 if (string[i]=='_') When the loop from line 461 is at end-of-string, it is restarted within loop from line 460 with offset=9 ("9" also seen in the valgrind-output), reading behind the end-of-string. Don't have the REOPEN button here - please do this for me if advisable, thanks! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32316