[LLVMbugs] [Bug 17329] New: Compiling file named "event.c" when using --analyze cause object file to be XML

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Sep 22 23:06:54 PDT 2013


            Bug ID: 17329
           Summary: Compiling file named "event.c" when using --analyze
                    cause object file to be XML
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: noloader at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Compiling a file named "event.c" with Clang 3.3 and the analyzer switch results
in an object file filled with XML.

This behavior was observed on Mac OS X 10.8.5 (x64) and Ubuntu 12.10 (x64).
Clang 3.3 and Compiler RT was fetched from LLVM downloads.


$ uname -a
Linux ubuntu 3.2.0-53-generic #81-Ubuntu SMP Thu Aug 22 21:01:03 UTC 2013
x86_64 x86_64 x86_64 GNU/Linux
$ /usr/local/bin/clang -v
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix

$ cat event.c
#include <stdio.h>
int main(int argc, char* argv[]) {

    return !argc;


# Without --analyze
$ /usr/local/bin/clang event.c -o event.exe 
$ file event.exe 
event.exe: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically
linked (uses shared libs), for GNU/Linux 2.6.24,
BuildID[sha1]=0x515f04ded44a568ac08cf142b76119c5f0638c96, not stripped


# With --analyze
$ /usr/local/bin/clang --analyze event.c -o event.exe
$ file event.exe
event.exe: XML document text
$ cat event.exe 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
<plist version="1.0">
<string>clang version 3.3 (tags/RELEASE_33/final)</string>

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/20130923/21707a8e/attachment.html>

More information about the llvm-bugs mailing list