[llvm-bugs] [Bug 28769] New: Coverage data includes call to __cxx_global_array_dtor

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 29 07:57:06 PDT 2016


            Bug ID: 28769
           Summary: Coverage data includes call to __cxx_global_array_dtor
           Product: clang
           Version: 3.9
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: llvm.flamefire at spamgourmet.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16834
  --> https://llvm.org/bugs/attachment.cgi?id=16834&action=edit
GCOV file

I was using clang++ with the --coverage flag to generate coverage data on a
larger project (https://github.com/Return-To-The-Roots/s25client)
However I see an completely unexpected call to "__cxx_global_array_dtor" in the
gcno file which should not be there and leads to false positives. The line I've
seen this is this one:
A line that is almost the same as the surrounding ones, but the only one that
got that call attributed.

I was not able to create a mini-example with this behaviour as clang coverage
works in almost all other cases, especially trivial ones.

I attach the raw gcov file (llvm-cov gcov <gcda file> --dump), just search for

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160729/1509ef89/attachment.html>

More information about the llvm-bugs mailing list