[LLVMbugs] [Bug 6938] New: clang:crashes when compiling nmi.c

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 25 07:55:34 PDT 2010


           Summary: clang:crashes when compiling nmi.c
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 4068

Created an attachment (id=4735)
 --> (http://llvm.org/bugs/attachment.cgi?id=4735)
preprocessed source

'clang -Os -c nmi.i' crashes, see below.
clang -Os -c nmi.i -w works.

clang -c nmi.i crashes too. Looks like something when it wants to emit
warnings/analyze code for warnings.

clang: /home/edwin/llvm-git/clang/lib/Analysis/CFG.cpp:331:
bool<unnamed>::CFGBuilder::FinishBlock(clang::CFGBlock*): Assertion `B' failed. 
0  clang           0x000000000118753f                                           
1  clang           0x0000000001187d4d                                           
2  libpthread.so.0 0x0000003a06a0ea60                                           
3  libc.so.6       0x0000003a05e31f05 gsignal + 53
4  libc.so.6       0x0000003a05e34d10 abort + 384
5  libc.so.6       0x0000003a05e2afaa __assert_fail + 234
6  clang           0x0000000000835bb6
7  clang           0x000000000083ec99
8  clang           0x000000000083adb7
9  clang           0x000000000083e10c
10 clang           0x000000000083acc5
11 clang           0x000000000083c174
12 clang           0x000000000083a86d
13 clang           0x000000000083cec0
14 clang           0x0000000000831bb4
15 clang           0x000000000060f0c2
16 clang           0x000000000060fc84
17 clang           0x00000000006357ed
18 clang           0x0000000000635ef7
19 clang           0x000000000090e284
20 clang           0x0000000000919867
21 clang           0x000000000091eee7
22 clang           0x00000000009181f5
23 clang           0x0000000000918688
24 clang           0x000000000091a3c9
25 clang           0x000000000091a89a
26 clang           0x00000000005fc8eb
27 clang           0x0000000000415d99
28 clang           0x00000000004095c9
29 clang           0x000000000040bf8b main + 1675
30 libc.so.6       0x0000003a05e1eabd __libc_start_main + 253
31 clang           0x0000000000407099
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name nmi.i
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1 -Os
-fmessage-length 126 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-MyYG0K.s -x cpp-output nmi.i
1.      arch/x86/kernel/apic/nmi.c:475:1: current parser token 'static'
2.      arch/x86/kernel/apic/nmi.c:393:1: parsing function body
clang: error: compiler command failed due to signal 6 (use -v to see

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