[LLVMbugs] [Bug 10750] New: clang crashes from gcc torture test limits-fndefn.c
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Aug 25 16:49:49 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10750
Summary: clang crashes from gcc torture test limits-fndefn.c
Product: clang
Version: 2.9
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rkotler at mips.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7132)
--> (http://llvm.org/bugs/attachment.cgi?id=7132)
gcc torture test limits-fdefn.c
rkotler at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang
~/gcc-4.4.6/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c
clang:
/home/rkotler/workspace/llvm/tools/clang/lib/Serialization/../../include/clang/AST/Decl.h:1217:
void clang::ParmVarDecl::setScopeInfo(unsigned int, unsigned int): Assertion
`ParmVarDeclBits.ParameterIndex == parameterIndex && "truncation!"' failed.
0 clang 0x00000000028f3411
1 clang 0x00000000028f3204
2 libpthread.so.0 0x00007ffc0766d8f0
3 libc.so.6 0x00007ffc0695ca75 gsignal + 53
4 libc.so.6 0x00007ffc069605c0 abort + 384
5 libc.so.6 0x00007ffc06955941 __assert_fail + 241
6 clang 0x0000000001141f72 clang::ParmVarDecl::setScopeInfo(unsigned
int, unsigned int) + 182
7 clang 0x0000000001426c1d
clang::Sema::ActOnParamDeclarator(clang::Scope*, clang::Declarator&) + 1703
8 clang 0x0000000001373114
clang::Parser::ParseParameterDeclarationClause(clang::Declarator&,
clang::ParsedAttributes&, llvm::SmallVector<clang::DeclaratorChunk::ParamInfo,
16u>&, clang::SourceLocation&) + 632
9 clang 0x000000000137250e
clang::Parser::ParseFunctionDeclarator(clang::SourceLocation,
clang::Declarator&, clang::ParsedAttributes&, bool) + 594
10 clang 0x0000000001371e69
clang::Parser::ParseDirectDeclarator(clang::Declarator&) + 2451
11 clang 0x0000000001370f24
clang::Parser::ParseDeclaratorInternal(clang::Declarator&, void
(clang::Parser::*)(clang::Declarator&)) + 1090
12 clang 0x0000000001370adb
clang::Parser::ParseDeclarator(clang::Declarator&) + 63
13 clang 0x00000000013699a9
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 123
14 clang 0x000000000135da43
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 1043
15 clang 0x000000000135dac1
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 113
16 clang 0x000000000135d2fd
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2521
17 clang 0x000000000135c875
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 309
18 clang 0x000000000133b17a clang::ParseAST(clang::Sema&, bool) + 455
19 clang 0x000000000105f1a5 clang::ASTFrontendAction::ExecuteAction()
+ 263
20 clang 0x00000000011bcab8 clang::CodeGenAction::ExecuteAction() +
968
21 clang 0x000000000105edf6 clang::FrontendAction::Execute() + 326
22 clang 0x0000000001043f83
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 751
23 clang 0x0000000001015f33
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 912
24 clang 0x0000000001006b5c cc1_main(char const**, char const**, char
const*, void*) + 987
25 clang 0x0000000001011552 main + 499
26 libc.so.6 0x00007ffc06947c4d __libc_start_main + 253
27 clang 0x00000000010061f9
Stack dump:
0. Program arguments: /home/rkotler/build_llvm/install/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name limits-fndefn.c -mrelocation-model static -mdisable-fp-elim
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-linker-version 2.20.1 -momit-leaf-frame-pointer -resource-dir
/home/rkotler/build_llvm/install/bin/../lib/clang/3.0 -ferror-limit 19
-fmessage-length 80 -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-yXluyb.o -x c
/home/rkotler/gcc-4.4.6/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c
1.
/home/rkotler/gcc-4.4.6/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c:17:13
<Spelling=/home/rkotler/gcc-4.4.6/gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c:3:57>:
current parser token ','
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and
include command line arguments and all diagnostic information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/cc-elqwy3.i
--
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