[LLVMbugs] [Bug 5843] New: [bash] crash in clang::InitializedEntity::InitializedEntity

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Dec 20 23:14:46 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=5843

           Summary: [bash] crash in
                    clang::InitializedEntity::InitializedEntity
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


clang crashes on the attached input (from bash):
--
ddunbar at giles:tmp$ clang -c t.i
0  clang             0x0000000101239fcd PrintStackTrace(void*) + 38
1  clang             0x000000010123a55b SignalHandler(int) + 336
2  libSystem.B.dylib 0x00007fff88921eaa _sigtramp + 26
3  libSystem.B.dylib 000000000000000000 _sigtramp + 2003689840
4  clang             0x00000001003da8a6
clang::InitializedEntity::InitializedEntity(clang::ASTContext&, unsigned int,
clang::InitializedEntity const&) + 266
5  clang             0x00000001003e66a2
clang::InitializedEntity::InitializeElement(clang::ASTContext&, unsigned int,
clang::InitializedEntity const&) + 42
6  clang             0x00000001003e3c9f (anonymous
namespace)::InitListChecker::FillInValueInitializations(clang::InitializedEntity
const&, clang::InitListExpr*, bool&) + 1977
7  clang             0x00000001003e3b41 (anonymous
namespace)::InitListChecker::FillInValueInitializations(clang::InitializedEntity
const&, clang::InitListExpr*, bool&) + 1627
8  clang             0x00000001003e3b41 (anonymous
namespace)::InitListChecker::FillInValueInitializations(clang::InitializedEntity
const&, clang::InitListExpr*, bool&) + 1627
9  clang             0x00000001003e126b (anonymous
namespace)::InitListChecker::InitListChecker(clang::Sema&,
clang::InitializedEntity const&, clang::InitListExpr*, clang::QualType&) + 243
10 clang             0x00000001003e12d6
clang::Sema::CheckInitList(clang::InitializedEntity const&,
clang::InitListExpr*&, clang::QualType&) + 56
11 clang             0x00000001003e4b1d
clang::Sema::CheckInitializerTypes(clang::Expr*&, clang::QualType&,
clang::InitializedEntity const&, clang::InitializationKind const&) + 2171
12 clang             0x000000010034113d
clang::Sema::AddInitializerToDecl(clang::OpaquePtr<0>,
clang::ASTOwningResult<&(clang::ActionBase::DeleteExpr(void*))>, bool) + 3661
13 clang             0x0000000100341391
clang::Sema::AddInitializerToDecl(clang::OpaquePtr<0>,
clang::ASTOwningResult<&(clang::ActionBase::DeleteExpr(void*))>) + 81
14 clang             0x000000010054c72a
clang::Parser::ParseDeclarationAfterDeclarator(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&) + 1670
15 clang             0x000000010054cca0
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*) + 718
16 clang             0x0000000100585d5b
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AttributeList*, clang::AccessSpecifier) + 1065
17 clang             0x0000000100585dc7
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*,
clang::AccessSpecifier) + 83
18 clang             0x00000001005879db
clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 2149
19 clang             0x0000000100587b19
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 247
20 clang             0x000000010030a685 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 523
21 clang             0x000000010005f582
clang::ASTFrontendAction::ExecuteAction() + 256
22 clang             0x000000010005f672 clang::FrontendAction::Execute() + 226
23 clang             0x0000000100026963 cc1_main(char const**, char const**,
char const*, void*) + 1929
24 clang             0x000000010002a2fe main + 252
25 clang             0x0000000100025664 start + 52
Stack dump:
0.      Program arguments:
/Volumes/Data/Users/ddunbar/llvm.obj.64/Debug/bin/clang -cc1 -triple
x86_64-apple-darwin10.0 -S -disable-free -main-file-name t.i -pic-level 1
-mdisable-fp-elim -munwind-tables -target-cpu core2 -fno-math-errno
-resource-dir /Volumes/Data/Users/ddunbar/llvm.obj.64/Debug/lib/clang/1.1
-fmessage-length 88 -stack-protector 1 -fblocks -fdiagnostics-show-option -o
/var/folders/DQ/DQ8GT3++HESEzT1obWBynE+++TI/-Tmp-/cc-ytX4Ap.s -x cpp-output t.i 
1.      /tmp/RootsDir/bash-80.roots/bash-80/bash/lib/intl/plural-exp.c:61:2:
current parser token ';'
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)
ddunbar at giles:tmp$ 
--


-- 
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