[LLVMbugs] [Bug 12928] New: clang crash with c89 standard mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 23 11:11:42 PDT 2012


             Bug #: 12928
           Summary: clang crash with c89 standard mode
           Product: clang
           Version: 3.0
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: prohit99 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Below is the snipped log of the output in which the clang front-end crashes
trying to compile the file in ANSI C 89 ( ISO C 90 ) mode.

/usr/bin/cc -v -arch x86_64 -std=c89 genksmmap.c -c -o genksmmap.o   
-fno-common -no-cpp-precomp -Wall -Wno-unused  -O1
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.3.0
Thread model: posix
clang: warning: argument unused during compilation: '-no-cpp-precomp'
 "/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.7.3 -emit-obj
-disable-free -disable-llvm-verifier -main-file-name genksmmap.c -pic-level 1
-mdisable-fp-elim -relaxed-aliasing -masm-verbose -munwind-tables -target-cpu
core2 -target-linker-version 128.2 -v -coverage-file genksmmap.o -resource-dir
/usr/bin/../lib/clang/3.1 -fmodule-cache-path
/var/folders/zz/zyxvpxvq6csfxvn_n0001dpc000bdl/T/clang-module-cache -O1 -Wall
-Wno-unused -std=c89 -fdebug-compilation-dir 
-ferror-limit 19 -fmessage-length 159 -stack-protector 1 -fblocks
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-dispatch-method=mixed
-fno-common -fdiagnostics-show-option -fcolor-diagnostics -o genksmmap.o -x c
clang -cc1 version 3.1 based upon llvm 3.1svn default target

clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal 2 (use -v to see
clang: note: diagnostic msg: Please submit a bug report to
http://developer.apple.com/bugreporter/ and include command line arguments and
all diagnostic information.
clang: error: unable to execute command: Segmentation fault: 11
clang: note: diagnostic msg: Error generating preprocessed source(s).

I'm not sure how to get any more diagnostic information.

Machine details :
$ sw_vers
ProductName:    Mac OS X
ProductVersion:    10.7.3
BuildVersion:    11D50


Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list