This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/64123] [5 Regression] Instrumented Firefox segfaults on start
- From: "xur at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 02 Feb 2015 19:18:14 +0000
- Subject: [Bug gcov-profile/64123] [5 Regression] Instrumented Firefox segfaults on start
- Auto-submitted: auto-generated
- References: <bug-64123-4 at http dot gcc dot gnu dot org/bugzilla/>
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-bugzilla@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.