[LLVMbugs] [Bug 9071] New: Crash using -Wuninitialized
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jan 27 08:57:28 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9071
Summary: Crash using -Wuninitialized
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: abramobagnara at tin.it
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6058)
--> (http://llvm.org/bugs/attachment.cgi?id=6058)
Source file to be used to reproduce the crash.
This is reproducible with clang r124358
$ clang -cc1 -Wuninitialized bug.c
clang: UninitializedValuesV2.cpp:162:
llvm::BitVector&<unnamed>::CFGBlockValues::getBitVector(const clang::CFGBlock*,
const clang::CFGBlock*): Assertion `block->getTerminator()' failed.
0 clang 0x09affbef
1 clang 0x09aff97c
2 0x00f12400 __kernel_sigreturn + 0
3 libc.so.6 0x00255a82 abort + 386
4 libc.so.6 0x0024b718 __assert_fail + 248
5 clang 0x0913653d
6 clang 0x09137934
7 clang 0x09137b71
clang::runUninitializedVariablesAnalysis(clang::DeclContext const&, clang::CFG
const&, clang::AnalysisContext&, clang::UninitVariablesHandler&) + 272
8 clang 0x08fd1f7b
clang::sema::AnalysisBasedWarnings::IssueWarnings(clang::sema::AnalysisBasedWarnings::Policy,
clang::Decl const*, clang::QualType) + 701
9 clang 0x08fd2077
clang::sema::AnalysisBasedWarnings::IssueWarnings(clang::sema::AnalysisBasedWarnings::Policy,
clang::FunctionDecl const*) + 61
10 clang 0x08df3728 clang::Sema::ActOnFinishFunctionBody(clang::Decl*,
clang::Stmt*, bool) + 1966
11 clang 0x08df2f73 clang::Sema::ActOnFinishFunctionBody(clang::Decl*,
clang::Stmt*) + 59
12 clang 0x08d46b9e clang::Parser::ParseFunctionStatementBody(clang::Decl*)
+ 394
13 clang 0x08d4dd77
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 911
14 clang 0x08d53c3d
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*) + 467
15 clang 0x08d4d954
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 954
16 clang 0x08d4d9c9
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 99
17 clang 0x08d4d378
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2062
18 clang 0x08d4cac7
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 223
19 clang 0x08d357d2 clang::ParseAST(clang::Sema&, bool) + 306
20 clang 0x08ab0201 clang::ASTFrontendAction::ExecuteAction() + 253
21 clang 0x08aafe5c clang::FrontendAction::Execute() + 316
22 clang 0x08a9a23f
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 779
23 clang 0x08a482bf
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 785
24 clang 0x08a3b077 cc1_main(char const**, char const**, char const*,
void*) + 1064
25 clang 0x08a43d99 main + 521
26 libc.so.6 0x0023ebd6 __libc_start_main + 230
27 clang 0x08a3a721
Stack dump:
0. Program arguments: clang -cc1 -Wuninitialized bug.c
1. <eof> parser at end of file
2. bug.c:2:1: parsing function body 'f'
Aborted
--
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