This is the mail archive of the gcc-patches@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: [PATCH] Introduce libgcov.so run-time library (PR gcov-profile/84107).


On Wed, 29 Aug 2018, Martin Liška wrote:
> > Can you shortly tell why the testcase in the PR segfaults?  Does the issue
> > only affect indirect call profiling?
> 
> What happens is that there will exist 2 instances of:
> void * __gcov_indirect_call_callee;
> 
> one in main executable, and one another in DSO loaded via dlopen.

Sorry, but no, there's no dlopen in the testcase, only plain dynamic linking,
and the reason for segfault is more subtle than that.

Preparing the testcase was quite an enlightening experience.

Alexander

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