[LLVMbugs] [Bug 6158] New: clang crash on C++ file
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Jan 27 01:36:40 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6158
Summary: clang crash on C++ file
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: epajarre at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4130)
--> (http://llvm.org/bugs/attachment.cgi?id=4130)
preprocessed source (from on open source library)
I am a new user of clang, and I am seeing it crash on several of my C++ files.
I am including the preprocessed files and the error message. Several of the
failing C++ files seem to give sort of similar crash results.
I tried this on the latest svn sources (94664), compiled on Ubuntu 9.10
(Adding the stderr.txt here because cannot find how to do multiple attachments)
ANALYZE: pui-src/puButtonBox.cxx puButtonBox
Cast kind 9 not handled.
clang++: GRExprEngine.cpp:2246: void
clang::GRExprEngine::VisitCast(clang::CastExpr*, clang::Expr*,
clang::ExplodedNode*, clang::ExplodedNodeSet&, bool): Assertion `0' failed.
0 clang++ 0x092e998a
1 clang++ 0x092e97ff
2 0x4001d400 __kernel_sigreturn + 0
3 libc.so.6 0x401c2932 abort + 386
4 libc.so.6 0x401b8648 __assert_fail + 248
5 clang++ 0x08316e49
6 clang++ 0x08310176
7 clang++ 0x0831ad93
8 clang++ 0x0830fe70
9 clang++ 0x0830f968
10 clang++ 0x083087a6
11 clang++ 0x08308e82
12 clang++ 0x08308acb
13 clang++ 0x0813b944
14 clang++ 0x081390af
15 clang++ 0x081391a6
16 clang++ 0x0813922c
17 clang++ 0x08138ddb
18 clang++ 0x08138892
19 clang++ 0x081385c9
20 clang++ 0x083a480e
21 clang++ 0x0806cd1e
22 clang++ 0x0806c9b1
23 clang++ 0x08057f33
24 clang++ 0x0804e6e8
25 clang++ 0x08052e66 main + 267
26 libc.so.6 0x401abb56 __libc_start_main + 230
27 clang++ 0x0804d371
Stack dump:
0. Program arguments: clang++ -cc1 -DIBOutlet=__attribute__((iboutlet))
-cc1 -triple i386-pc-linux-gnu -fsyntax-only -disable-free -main-file-name
puButtonBox.cxx -mrelocation-model static -mdisable-fp-elim -target-cpu
pentium4 -resource-dir /usr/local/lib/clang/1.1 -DLUA_USE_POSIX -DLINUX
-D__SSE__ -DT_EXE=1 -DdDOUBLE -DNDEBUG -DEP_USE_STDIO=1 -DBUS_SIM=0 -Ipui-src
-Ilua-src/include -Ilpng120 -Izpp/zlib -I/usr/include -fmessage-length 0
-fexceptions -fgnu-runtime -fdiagnostics-show-option -x c++
pui-src/puButtonBox.cxx -analyze -analyzer-display-progress
-analyzer-eagerly-assume -analyzer-opt-analyze-nested-blocks
-warn-objc-unused-ivars -warn-security-syntactic -warn-objc-methodsigs
-checker-cfref -warn-dead-stores -analyzer-store=region
-analyzer-constraints=range -analyzer-output=html -o
/tmp/scan-build-2010-01-27-2
1. pui-src/puButtonBox.cxx:18:1: current parser token 'int'
2. pui-src/puButtonBox.cxx:13:24: Error evaluating statement
3. pui-src/puButtonBox.cxx:13:24: Error evaluating statement
4. pui-src/puButtonBox.cxx:13:54
<Spelling=/usr/local/lib/clang/1.1/include/stddef.h:36:14>: Error evaluating
statement
--
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