https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64123
--- Comment #23 from xur at google dot com --- I overlooked that gcov_master was also used in gcov_dump_int. The bug is exactly as Honza described. I can reproduce with a simple example. Nathan: did you use dlopen? It seems using dlopen will change gcov_master behavior and hide the issue. If you call shared library function directly and use fork, you will reproduce. On Sun, Feb 1, 2015 at 6:57 AM, nathan at acm dot org <gcc-bugzi...@gcc.gnu.org> wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64123 > > --- Comment #22 from Nathan Sidwell <nathan at acm dot org> --- > thanks Honza, that was helpful. I'm an idiot. Your workaround unhiding > gcov_var is fine for now, while I figure out if there's a better way. I am > puzzled as to why I can't observe this failure in the testcase I've > constructed.