gcov / gcda-based profiling crashes when shared libraries are unloaded
Patch by Benoit Belley and test by Marco Castelluccio for Firefox
See https://bugs.llvm.org/show_bug.cgi?id=27224 & https://bugzilla.mozilla.org/show_bug.cgi?id=1401230
Paths
| Differential D38124
Hide some symbols to avoid a crash on shutdown when using code coverage ClosedPublic Authored by sylvestre.ledru on Sep 21 2017, 2:05 AM.
Details Summary gcov / gcda-based profiling crashes when shared libraries are unloaded Patch by Benoit Belley and test by Marco Castelluccio for Firefox See https://bugs.llvm.org/show_bug.cgi?id=27224 & https://bugzilla.mozilla.org/show_bug.cgi?id=1401230
Diff Detail
Event TimelineComment Actions Autodesk would also like to see this fix merged into LLVM 5.0.1 and we also agree about the importance of having a regression tests. @sylvestre.ledru : Is someone on the Firefox team working on writing a unit test for this ? Shall we jump-in and try to help ? Comment Actions I added two more reviewers as we would like to get that in trunk before 6.0 branches. Closed by commit rCRT321703: Hide some symbols to avoid a crash on shutdown when using code coverage (authored by marco). · Explain Why This revision was automatically updated to reflect the committed changes. Herald added subscribers: Restricted Project, llvm-commits. · View Herald TranscriptJan 3 2018, 3:22 AM Comment Actions The change was already positively reviewed with the request for a test, which has been written since then.
Revision Contents
Diff 128514 lib/profile/GCDAProfiling.c
test/profile/Inputs/instrprof-dlopen-dlclose-main.c
test/profile/instrprof-dlopen-dlclose-gcov.test
|