[LLVMbugs] [Bug 20229] New: crash diagnostics don't work on Windows

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 7 12:04:39 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20229

            Bug ID: 20229
           Summary: crash diagnostics don't work on Windows
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rnk at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Consider:

$ cat t.cpp
int main() {
#pragma clang __debug assert
}

$ clang -c t.cpp
This is an assertion!
UNREACHABLE executed at ..\tools\clang\lib\Lex\Pragma.cpp:871!
clang.exe: error: clang frontend command failed with exit code 3 (use -v to see
invocation)

'abort' gives exit code 3 on Windows, making this code fail:
    // If result status is < 0, then the driver command signalled an error.
    // If result status is 70, then the driver command reported a fatal error.
    // In these cases, generate additional diagnostic information if possible.
    if (CommandRes < 0 || CommandRes == 70) {
      TheDriver.generateCompilationDiagnostics(*C, FailingCommand);
      break;
    }

-- 
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/20140707/d860c835/attachment.html>


More information about the llvm-bugs mailing list