Bug ID: 30702
           Summary: ICE when compiling with --coverage but without -g
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: gccas
    Classification: Unclassified

We noticed an ICE when compiling a file with the flag '--coverage' but without
This happens on many test-cases (maybe all test-cases), even empty test cases.

This ICE is related to commits r264657 and r281508.

To reproduce this crash:

  Create (empty) test-case
  $ touch t.cpp

  Successful compilation:
  $ clang -c -g --coverage t.cpp

  $ clang -c    --coverage t.cpp

  All DICompileUnits must be listed in
  clang: ..../llvm/lib/IR/Verifier.cpp:4432:
  virtual bool {anonymous}::VerifierLegacyPass::doFinalization(llvm::Module&):
  Assertion `!V->hasBrokenDebugInfo() && "Module contains invalid debug info"'
  #0 0x0000000001c81da5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) ...
  clang: error: clang frontend command failed due to signal
                (use -v to see invocation) clang version 4.0.0 (trunk 281550)
  Target: x86_64-unknown-linux-gnu
  Thread model: posix

I looked into the history of this ICE.

  Prior to r264657, the compiler finishes normally (return code 0).

  Starting at r264657, the compiler produces the message:
    All DICompileUnits must be listed in
  and exits with a fatal error.

  Starting at r281508, the compiler still produces the message:
    All DICompileUnits must be listed in
  and also triggers the Verifier.cpp failure:
    "Module contains invalid debug info"
  and then produces the stack dump.

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to