[LLVMbugs] [Bug 12015] New: compiler crash in SATE synthetic testcases

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 16 04:11:36 PST 2012


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

             Bug #: 12015
           Summary: compiler crash in SATE synthetic testcases
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: reif at earthlink.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8064
  --> http://llvm.org/bugs/attachment.cgi?id=8064
code from SATE synthetic testcases

I get this crash when compiling this file:

~/clangbug$ clang -c
CWE685_Function_Call_With_Incorrect_Number_Of_Arguments__basic_05.c
CWE685_Function_Call_With_Incorrect_Number_Of_Arguments__basic_05.c:36:31:
warning: more '%' conversions than data arguments [-Wformat]
            sprintf(dst, "%s %s", SRC_STR);
                             ~^
CWE685_Function_Call_With_Incorrect_Number_Of_Arguments__basic_05.c:65:31:
warning: more '%' conversions than data arguments [-Wformat]
            sprintf(dst, "%s %s", SRC_STR);
                             ~^
CWE685_Function_Call_With_Incorrect_Number_Of_Arguments__basic_05.c:98:31:
warning: more '%' conversions than data arguments [-Wformat]
            sprintf(dst, "%s %s", SRC_STR);
                             ~^
0  clang 0x09ab959b
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple i386-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -main-file-name
CWE685_Function_Call_With_Incorrect_Number_Of_Arguments__basic_05.c
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-target-cpu pentium4 -momit-leaf-frame-pointer -coverage-file
CWE685_Function_Call_With_Incorrect_Number_Of_Arguments__basic_05.o
-resource-dir /usr/local/bin/../lib/clang/3.1 -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem /usr/local/include
-internal-isystem /usr/local/bin/../lib/clang/3.1/include
-internal-externc-isystem /usr/include/i686-linux-gnu -internal-externc-isystem
/include -internal-externc-isystem /usr/include -fdebug-compilation-dir
/home/reif/clangbug -ferror-limit 19 -fmessage-length 207 -mstackrealign
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fdiagnostics-show-option -fcolor-diagnostics -o
CWE685_Function_Call_With_Incorrect_Number_Of_Arguments__basic_05.o -x c
CWE685_Function_Call_With_Incorrect_Number_Of_Arguments__basic_05.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module
'CWE685_Function_Call_With_Incorrect_Number_Of_Arguments__basic_05.c'.
4.    Running pass 'X86 AT&T-Style Assembly Printer' on function
'@CWE685_Function_Call_With_Incorrect_Number_Of_Arguments__basic_05_bad'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg:
/tmp/CWE685_Function_Call_With_Incorrect_Number_Of_Arguments__basic_05-5aWnX4.i
clang: note: diagnostic msg:
/tmp/CWE685_Function_Call_With_Incorrect_Number_Of_Arguments__basic_05-5aWnX4.sh

-- 
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