http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51297

--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> 2011-11-24 
18:30:40 UTC ---
The line numbers in the backtrace don't seem to correspond to current sources. 
for instance line 866 is the definition of find_source, not the location of one
of the two bsearch calls.

which of the two bsearch calls is blowing up?

this one:
 name_map = (name_map_t *)bsearch
    (file_name, names, n_names, sizeof (*names), name_search);

or this one:
  name_map = (name_map_t *)bsearch
    (canon, names, n_names, sizeof (*names), name_search);

What are the values being passed to the bsearch call?

Oh, I see that it appears the string being passed to 'find_source' is
unreadable:
#2  0x08056d88 in find_source (file_name=0x80a2f70 <error reading variable>)
    at /vol/gcc/src/hg/trunk/local/gcc/gcov.c:866

What does gcov-dump -lo tell you about the gcno file?

Reply via email to