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