[LLVMbugs] [Bug 9240] New: Sema::CheckArrayAccess assertion failure when building 403.gcc
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 17 13:53:46 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9240
Summary: Sema::CheckArrayAccess assertion failure when building
403.gcc
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: stoklund at 2pi.dk
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6174)
--> (http://llvm.org/bugs/attachment.cgi?id=6174)
Preprocessed C source
$ /d/b/Release+Asserts/bin/clang -v
clang version 2.9 (trunk 125781)
Target: i386-apple-darwin10
Thread model: posix
$ /d/b/Release+Asserts/bin/clang -O3 -mllvm -disable-llvm-optzns -m32
-fomit-frame-pointer -mdynamic-no-pic stmt.i
Assertion failed: (BitWidth == RHS.BitWidth && "Bit widths must be same for
comparison"), function slt, file /Volumes/Data/g/llvm/lib/Support/APInt.cpp,
line 552.
0 clang 0x0124eb68 PrintStackTrace(void*) + 40
1 clang 0x0124f1ea SignalHandler(int) + 826
2 libSystem.B.dylib 0x9131445b _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1859042255
4 clang 0x0124edfb abort + 27
5 clang 0x0124edd4 __assert_rtn + 100
6 clang 0x01218ffb llvm::APInt::slt(llvm::APInt const&) const +
1243
7 clang 0x002d9f05
clang::Sema::CheckArrayAccess(clang::ArraySubscriptExpr const*) + 421
8 clang 0x003d7320
clang::Sema::CheckAssignmentOperands(clang::Expr*, clang::Expr*&,
clang::SourceLocation, clang::QualType) + 1696
9 clang 0x003d843e
clang::Sema::CreateBuiltinBinOp(clang::SourceLocation,
clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) + 142
10 clang 0x003d95be clang::Sema::BuildBinOp(clang::Scope*,
clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) +
542
11 clang 0x003c9297 clang::Sema::ActOnBinOp(clang::Scope*,
clang::SourceLocation, clang::tok::TokenKind, clang::Expr*, clang::Expr*) +
2791
12 clang 0x0027fb42
clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult<clang::Expr*,
true>, clang::prec::Level) + 1874
13 clang 0x0027f3be clang::Parser::ParseAssignmentExpression() +
222
14 clang 0x0027f2b2 clang::Parser::ParseExpression() + 18
15 clang 0x0029975b
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 827
16 clang 0x0029d562 clang::Parser::ParseCompoundStatementBody(bool)
+ 322
17 clang 0x00299505
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 229
18 clang 0x0029adef
clang::Parser::ParseIfStatement(clang::ParsedAttributes&) + 527
19 clang 0x00299877
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 1111
20 clang 0x0029d562 clang::Parser::ParseCompoundStatementBody(bool)
+ 322
21 clang 0x0029e1a7
clang::Parser::ParseFunctionStatementBody(clang::Decl*) + 167
22 clang 0x002a8439
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 889
23 clang 0x0026d53e
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*) + 910
24 clang 0x002a7d16
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 838
25 clang 0x002a7ec7
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 327
26 clang 0x002a7584
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2516
27 clang 0x002a6b9d
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 205
28 clang 0x00266ab6 clang::ParseAST(clang::Sema&, bool) + 214
29 clang 0x000520ab clang::ASTFrontendAction::ExecuteAction() + 139
30 clang 0x00240c77 clang::CodeGenAction::ExecuteAction() + 903
31 clang 0x00051b61 clang::FrontendAction::Execute() + 289
32 clang 0x00030652
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1010
33 clang 0x0000afec
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2780
34 clang 0x0000332b cc1_main(char const**, char const**, char
const*, void*) + 5867
35 clang 0x0000743e main + 1054
36 clang 0x00001c35 start + 53
37 clang 0x00000023 start + 4294960163
Stack dump:
0. Program arguments: /Volumes/Data/b/Release+Asserts/bin/clang -cc1 -triple
i386-apple-darwin10.0.0 -emit-obj -disable-free -main-file-name stmt.i
-mrelocation-model dynamic-no-pic -pic-level 1 -masm-verbose -target-cpu yonah
-target-linker-version 97.17 -resource-dir
/Volumes/Data/b/Release+Asserts/bin/../lib/clang/2.9 -O3 -ferror-limit 19
-fmessage-length 236 -stack-protector 1 -fblocks -fdiagnostics-show-option
-fcolor-diagnostics -disable-llvm-optzns -o
/var/folders/7i/7ikIVQ+1FxmS1CawLKGczU+++TI/-Tmp-/cc-aQMWZf.o -x cpp-output
stmt.i
1. /d/Externals/speccpu2006/benchspec/CPU2006/403.gcc/src/stmt.c:5654:56:
current parser token ';'
2. /d/Externals/speccpu2006/benchspec/CPU2006/403.gcc/src/stmt.c:5631:1:
parsing function body 'estimate_case_costs'
3. /d/Externals/speccpu2006/benchspec/CPU2006/403.gcc/src/stmt.c:5631:1: in
compound statement ('{}')
4. /d/Externals/speccpu2006/benchspec/CPU2006/403.gcc/src/stmt.c:5641:5: in
compound statement ('{}')
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)
--
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