[cfe-commits] r95330 - in /cfe/trunk: include/clang/AST/DeclCXX.h include/clang/Basic/DiagnosticSemaKinds.td lib/AST/Decl.cpp lib/AST/DeclCXX.cpp lib/CodeGen/CGRTTI.cpp lib/CodeGen/CodeGenTypes.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaDeclCXX.cpp l
Devang Patel
devang.patel at gmail.com
Thu Feb 4 16:23:39 PST 2010
John,
On Thu, Feb 4, 2010 at 10:26 PM, John McCall <rjmccall at apple.com> wrote:
> Author: rjmccall
> Date: Thu Feb 4 16:26:26 2010
> New Revision: 95330
>
> URL: http://llvm.org/viewvc/llvm-project?rev=95330&view=rev
> Log:
> Extract a common structure for holding information about the definition
> of a C++ record. Exposed a lot of problems where various routines were
> silently doing The Wrong Thing (or The Acceptable Thing in The Wrong Order)
> when presented with a non-definition. Also cuts down on memory usage.
This causes following crash. Can you take a look ?
Thanks,
-
Devang
Running ../../../gdb.src/src/gdb/testsuite/gdb.cp/cp-blocks-linetables.exp ...
get_compiler_info: gcc-4-2-1
Executing on host:
/Users/buildslave/zorg/buildbot/smooshlab/slave/build.clang-i386-darwin10-gdb/llvm/Debug/bin/clang
-g -c -mmacosx-version-min=10.6 -c -arch x86_64
-Wno-deprecated-declarations -mmacosx-version-min=10.5 -o
/Users/buildslave/zorg/buildbot/smooshlab/slave/build.clang-i386-darwin10-gdb/gdb.obj/gdb/testsuite/gdb.cp/cp-blocks-linetables.o
../../../gdb.src/src/gdb/testsuite/gdb.cp/cp-blocks-linetables.cc
(timeout = 300)
spawn /Users/buildslave/zorg/buildbot/smooshlab/slave/build.clang-i386-darwin10-gdb/llvm/Debug/bin/clang
-g -c -mmacosx-version-min=10.6 -c -arch x86_64
-Wno-deprecated-declarations -mmacosx-version-min=10.5 -o
/Users/buildslave/zorg/buildbot/smooshlab/slave/build.clang-i386-darwin10-gdb/gdb.obj/gdb/testsuite/gdb.cp/cp-blocks-linetables.o
../../../gdb.src/src/gdb/testsuite/gdb.cp/cp-blocks-linetables.cc
Assertion failed: (DefinitionData && "queried property of class with
no definition"), function data, file
/Users/buildslave/zorg/buildbot/smooshlab/slave/build.clang-i386-darwin10-gdb/llvm/tools/clang/lib/Sema/../../include/clang/AST/DeclCXX.h,
line 305.
0 clang 0x01233266 PrintStackTrace(void*) + 45
1 clang 0x0123386e SignalHandler(int) + 410
2 libSystem.B.dylib 0x945659bb _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1806280303
4 libSystem.B.dylib 0x945f398d raise + 26
5 libSystem.B.dylib 0x94609a44 abort + 93
6 libSystem.B.dylib 0x945f65ec __pthread_markcancel + 0
7 clang 0x002f5ce9 clang::CXXRecordDecl::data() const + 73
8 clang 0x00032741 clang::CXXRecordDecl::bases_begin() const + 17
9 clang 0x00216588
clang::CodeGen::CodeGenTypes::ConvertTagDeclType(clang::TagDecl
const*) + 560
10 clang 0x00215ec6
clang::CodeGen::CodeGenTypes::ConvertNewType(clang::QualType) + 2208
11 clang 0x002162d9
clang::CodeGen::CodeGenTypes::ConvertTypeRecursive(clang::QualType) +
205
12 clang 0x002155cb
clang::CodeGen::CodeGenTypes::ConvertTypeForMemRecursive(clang::QualType)
+ 25
13 clang 0x002169e8
clang::CodeGen::CodeGenTypes::ConvertType(clang::QualType) + 80
14 clang 0x0015bd97
clang::CodeGen::CodeGenTypes::GetFunctionType(clang::CodeGen::CGFunctionInfo
const&, bool) + 659
15 clang 0x0014a6b6
clang::CodeGen::CodeGenFunction::GenerateBlockFunction(clang::BlockExpr
const*, clang::CodeGen::BlockFunction::BlockInfo const&, clang::Decl
const*, llvm::DenseMap<clang::Decl const*, llvm::Value*,
llvm::DenseMapInfo<clang::Decl const*>,
llvm::DenseMapInfo<llvm::Value*> >, clang::CharUnits&,
clang::CharUnits&, llvm::SmallVector<clang::Expr const*, 8u>&, bool&)
+ 1402
16 clang 0x0014bd0a
clang::CodeGen::CodeGenFunction::BuildBlockLiteralTmp(clang::BlockExpr
const*) + 836
17 clang 0x001a262a (anonymous
namespace)::ScalarExprEmitter::VisitBlockExpr(clang::BlockExpr const*)
+ 26
18 clang 0x001a849b clang::StmtVisitor<(anonymous
namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) +
3983
19 clang 0x001a854c
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*,
bool) + 142
20 clang 0x00179382
clang::CodeGen::CodeGenFunction::EmitLocalBlockVarDecl(clang::VarDecl
const&) + 4262
21 clang 0x0017a4ce
clang::CodeGen::CodeGenFunction::EmitBlockVarDecl(clang::VarDecl
const&) + 148
22 clang 0x0017a6d4
clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) + 448
23 clang 0x001e85c1
clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&)
+ 105
24 clang 0x001ea37f
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) +
225
25 clang 0x001e867a
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 88
26 clang 0x001ea13c
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt
const&, bool, llvm::Value*, bool) + 258
27 clang 0x001ea35d
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) +
191
28 clang 0x001e867a
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 88
29 clang 0x002034d7
clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl,
llvm::Function*) + 1889
30 clang 0x0020b792
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::CodeGen::GlobalDecl)
+ 1394
31 clang 0x0020c378
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl)
+ 542
32 clang 0x0020c62b
clang::CodeGen::CodeGenModule::EmitGlobal(clang::CodeGen::GlobalDecl)
+ 589
33 clang 0x0020c827
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 501
34 clang 0x00223af8 (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef)
+ 68
35 clang 0x0003c366 (anonymous
namespace)::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) +
156
36 clang 0x00231580 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 546
37 clang 0x0005f40d clang::ASTFrontendAction::ExecuteAction() + 269
38 clang 0x0005f518 clang::FrontendAction::Execute() + 260
39 clang 0x00044459
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 851
40 clang 0x0002907a cc1_main(char const**, char const**,
char const*, void*) + 1491
41 clang 0x0002c731 main + 272
42 clang 0x00027f51 start + 53
Stack dump:
0. Program arguments:
/Users/buildslave/zorg/buildbot/smooshlab/slave/build.clang-i386-darwin10-gdb/llvm/Debug/bin/clang
-cc1 -triple x86_64-apple-darwin9.0.0 -S -disable-free -main-file-name
cp-blocks-linetables.cc -pic-level 1 -mdisable-fp-elim -munwind-tables
-target-cpu core2 -g -resource-dir
/Users/buildslave/zorg/buildbot/smooshlab/slave/build.clang-i386-darwin10-gdb/llvm/Debug/lib/clang/1.1
-Wno-return-type -Wno-deprecated-declarations -fmessage-length 0
-fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/-r/-rP3O3xEGVyOvn-4gSBB0++++TM/-Tmp-/cc-w1zSr5.s -x c++
../../../gdb.src/src/gdb/testsuite/gdb.cp/cp-blocks-linetables.cc
1. <eof> parser at end of file
2. ../../../gdb.src/src/gdb/testsuite/gdb.cp/cp-blocks-linetables.cc:20:5:
LLVM IR generation of declaration 'main'
3. ../../../gdb.src/src/gdb/testsuite/gdb.cp/cp-blocks-linetables.cc:20:5:
Generating code for declaration 'main'
4. ../../../gdb.src/src/gdb/testsuite/gdb.cp/cp-blocks-linetables.cc:20:12:
LLVM IR generation of compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see invocation)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cp-blocks-linetables.cc
Type: application/octet-stream
Size: 925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100205/4a7ab3df/attachment.obj>
More information about the cfe-commits
mailing list