[LLVMbugs] [Bug 15826] New: clang hits assert in clang::ASTContext::getASTRecordLayout

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 23 03:01:38 PDT 2013


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

            Bug ID: 15826
           Summary: clang hits assert in
                    clang::ASTContext::getASTRecordLayout
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: glebius at FreeBSD.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

(gdb) bt
#0  0x000000000183c17a in kill ()
#1  0x000000000183af56 in abort ()
#2  0x0000000001829a6a in __assert ()
#3  0x0000000000cc940b in clang::ASTContext::getASTRecordLayout (
    this=<value optimized out>, D=0x802ce3d40)
    at
/usr/src/aio/lib/clang/libclangast/../../../contrib/llvm/tools/clang/lib/AST/RecordLayoutBuilder.cpp:2470
#4  0x0000000000d7d486 in clang::ASTContext::getTypeInfoImpl (
    this=<value optimized out>, T=<value optimized out>)
    at
/usr/src/aio/lib/clang/libclangast/../../../contrib/llvm/tools/clang/lib/AST/ASTContext.cpp:1534
#5  0x0000000000d7cc5a in clang::ASTContext::getTypeInfo (this=0x80283a000, 
    T=0x802ce3dc0)
    at
/usr/src/aio/lib/clang/libclangast/../../../contrib/llvm/tools/clang/lib/AST/ASTContext.cpp:1301
#6  0x0000000000d7d5ac in clang::ASTContext::getTypeInfoImpl (
    this=0x80283a000, T=<value optimized out>)
    at
/usr/src/aio/lib/clang/libclangast/../../../contrib/llvm/tools/clang/lib/AST/ASTContext.cpp:1598
#7  0x0000000000d7cc5a in clang::ASTContext::getTypeInfo (this=0x80283a000, 
    T=0x802ce3df0)
    at
/usr/src/aio/lib/clang/libclangast/../../../contrib/llvm/tools/clang/lib/AST/ASTContext.cpp:1301
---Type <return> to continue, or q <return> to quit---
#8  0x0000000000d7cb62 in clang::ASTContext::getTypeInfoInChars (
    this=0x80283a000, T=0x6)
    at
/usr/src/aio/lib/clang/libclangast/../../../contrib/llvm/tools/clang/lib/AST/ASTContext.cpp:1286
#9  0x0000000000ccc6c8 in (anonymous
namespace)::RecordLayoutBuilder::LayoutField (this=0x7fffffff95e8,
D=0x802ce4170)
    at
/usr/src/aio/lib/clang/libclangast/../../../contrib/llvm/tools/clang/lib/AST/RecordLayoutBuilder.cpp:2068
#10 0x0000000000cceb64 in (anonymous
namespace)::RecordLayoutBuilder::LayoutFields (this=0x7fffffff95e8, D=<value
optimized out>)
    at
/usr/src/aio/lib/clang/libclangast/../../../contrib/llvm/tools/clang/lib/AST/RecordLayoutBuilder.cpp:1835
#11 0x0000000000cc8921 in clang::ASTContext::getASTRecordLayout (
    this=0x80283a000, D=0x802ce3a20)
    at
/usr/src/aio/lib/clang/libclangast/../../../contrib/llvm/tools/clang/lib/AST/RecordLayoutBuilder.cpp:1638
#12 0x00000000005d2bde in clang::CodeGen::CodeGenTypes::ComputeRecordLayout (
    this=0x8028e38a8, D=0x802ce3a20, Ty=0x8030d18f0)
    at
/usr/src/aio/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp:208
#13 0x000000000068640e in clang::CodeGen::CodeGenTypes::ConvertRecordDeclType (
    this=0x8028e38a8, RD=<value optimized out>)
    at
/usr/src/aio/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/---Type
<return> to continue, or q <return> to quit---
lib/CodeGen/CodeGenTypes.cpp:660
#14 0x00000000006852ad in clang::CodeGen::CodeGenTypes::ConvertType (
    this=0x8028e38a8)
    at
/usr/src/aio/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CodeGenTypes.cpp:295
#15 0x00000000006851d5 in clang::CodeGen::CodeGenTypes::ConvertTypeForMem (
    this=0x8028e38a8)
    at
/usr/src/aio/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CodeGenTypes.cpp:88
#16 0x00000000005d4786 in (anonymous
namespace)::CGRecordLayoutBuilder::LayoutFields (this=0x7fffffffa028, D=<value
optimized out>)
    at
/usr/src/aio/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp:398
#17 0x00000000005d2cb9 in clang::CodeGen::CodeGenTypes::ComputeRecordLayout (
    this=0x8028e38a8, D=0x802ce2df0, Ty=0x802914c90)
    at
/usr/src/aio/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp:218
#18 0x000000000068640e in clang::CodeGen::CodeGenTypes::ConvertRecordDeclType (
    this=0x8028e38a8, RD=<value optimized out>)
    at
/usr/src/aio/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CodeGenTypes.cpp:660
#19 0x00000000006860c7 in clang::CodeGen::CodeGenTypes::UpdateCompletedType (
    this=<value optimized out>, TD=<value optimized out>)
---Type <return> to continue, or q <return> to quit---
    at
/usr/src/aio/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CodeGenTypes.cpp:262
#20 0x0000000000576189 in (anonymous
namespace)::CodeGeneratorImpl::HandleTagDeclDefinition (this=0x8028343c0,
D=0x802ce2df0)
    at
/usr/src/aio/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/ModuleBuilder.cpp:81
#21 0x000000000057430b in clang::BackendConsumer::HandleTagDeclDefinition (
    this=0x802820240, D=0x802ce2df0)
    at
/usr/src/aio/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CodeGenAction.cpp:171
#22 0x000000000091b1c2 in clang::Sema::ActOnTagFinishDefinition (
    this=0x8028df000, S=<value optimized out>, TagD=0x802ce2df0)
    at
/usr/src/aio/lib/clang/libclangsema/../../../contrib/llvm/tools/clang/lib/Sema/SemaDecl.cpp:10189
#23 0x00000000006e39c2 in clang::Parser::ParseStructUnionBody (
    this=0x80280f600, TagType=17, TagDecl=0x802ce2df0)
    at
/usr/src/aio/lib/clang/libclangparse/../../../contrib/llvm/tools/clang/lib/Parse/ParseDecl.cpp:3174
#24 0x00000000006c9c38 in clang::Parser::ParseClassSpecifier (
    this=0x80280f600, TagTokKind=<value optimized out>, DS=@0x7fffffffb668, 
    TemplateInfo=@0x7fffffffb5e0, AS=clang::AS_none, 
    EnteringContext=<value optimized out>, Attributes=<value optimized out>)
    at
/usr/src/aio/lib/clang/libclangparse/../../../contrib/llvm/tools/clang/li---Type
<return> to continue, or q <return> to quit---
b/Parse/ParseDeclCXX.cpp:1559
#25 0x00000000006dba18 in clang::Parser::ParseDeclarationSpecifiers (
    this=0x80280f600, DS=@0x7fffffffb668, TemplateInfo=@0x7fffffffb5e0, 
    AS=clang::AS_none, DSContext=clang::Parser::DSC_top_level, LateAttrs=0x0)
    at
/usr/src/aio/lib/clang/libclangparse/../../../contrib/llvm/tools/clang/lib/Parse/ParseDecl.cpp:2852
#26 0x000000000068c480 in clang::Parser::ParseDeclOrFunctionDefInternal (
    this=0x80280f600, attrs=@0x7fffffffbd88, DS=@0x7fffffffb668, 
    AS=clang::AS_none)
    at
/usr/src/aio/lib/clang/libclangparse/../../../contrib/llvm/tools/clang/lib/Parse/Parser.cpp:831
#27 0x000000000068c080 in clang::Parser::ParseDeclarationOrFunctionDefinition (
    this=0x80280f600, attrs=@0x7fffffffbd88, DS=<value optimized out>, 
    AS=clang::AS_none)
    at
/usr/src/aio/lib/clang/libclangparse/../../../contrib/llvm/tools/clang/lib/Parse/Parser.cpp:897
#28 0x000000000068b8c3 in clang::Parser::ParseExternalDeclaration (
    this=<value optimized out>, attrs=<value optimized out>, 
    DS=<value optimized out>)
    at
/usr/src/aio/lib/clang/libclangparse/../../../contrib/llvm/tools/clang/lib/Parse/Parser.cpp:762
#29 0x000000000068ae80 in clang::Parser::ParseTopLevelDecl (this=0x80280f600, 
    Result=@0x7fffffffbe08)
---Type <return> to continue, or q <return> to quit---
    at
/usr/src/aio/lib/clang/libclangparse/../../../contrib/llvm/tools/clang/lib/Parse/Parser.cpp:567
#30 0x0000000000688256 in clang::ParseAST (S=@0x8028df000, PrintStats=false, 
    SkipFunctionBodies=<value optimized out>)
    at
/usr/src/aio/lib/clang/libclangparse/../../../contrib/llvm/tools/clang/lib/Parse/ParseAST.cpp:144
#31 0x00000000005736e1 in clang::CodeGenAction::ExecuteAction (
    this=0x80282b140)
    at
/usr/src/aio/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CodeGenAction.cpp:423
#32 0x000000000042f177 in clang::FrontendAction::Execute (
    this=<value optimized out>)
    at
/usr/src/aio/lib/clang/libclangfrontend/../../../contrib/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:376
#33 0x0000000000448fff in clang::CompilerInstance::ExecuteAction (
    this=0x8028200c0, Act=@0x80282b140)
    at
/usr/src/aio/lib/clang/libclangfrontend/../../../contrib/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:691
#34 0x0000000000407f94 in clang::ExecuteCompilerInvocation (Clang=0x8028200c0)
    at
/usr/src/aio/lib/clang/libclangfrontendtool/../../../contrib/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:236
#35 0x0000000000400693 in cc1_main (ArgBegin=<value optimized out>, 
    ArgEnd=0x7fffffffce01, Argv0=0x80280d148 "/usr/bin/cc", MainAddr=0x404250)
---Type <return> to continue, or q <return> to quit---
    at
/usr/src/aio/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver/cc1_main.cpp:99
#36 0x00000000004059f6 in main (argc_=<value optimized out>, 
    argv_=<value optimized out>)
    at
/usr/src/aio/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver/driver.cpp:357

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130423/caeeb990/attachment.html>


More information about the llvm-bugs mailing list