[LLVMbugs] [Bug 6794] Assertion failed: ((Result || D->isInvalidDecl()) && "declaration was not instantiated in this scope!")

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 12 10:03:58 CDT 2010


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

Albert Zeyer <ich at az2000.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |

--- Comment #5 from Albert Zeyer <ich at az2000.de> 2010-04-12 10:03:57 CDT ---
Still crashes:


macbook-7:openlierox az$ ../CppIDE/llvm-src/Debug/bin/clang++ test.cpp 
Assertion failed: ((Result || D->isInvalidDecl()) && "declaration was not
instantiated in this scope!"), function getInstantiationOf, file Sema.h, line
3570.
0  clang             0x00f6e050 main + 16152202
1  clang             0x00f6e496 main + 16153296
2  libSystem.B.dylib 0x94cbd2bb _sigtramp + 43
3  libSystem.B.dylib 0xffffffff _sigtramp + 1798581615
4  libSystem.B.dylib 0x94d3123a raise + 26
5  libSystem.B.dylib 0x94d3d679 abort + 73
6  libSystem.B.dylib 0x94d323db __assert_rtn + 101
7  clang             0x003a9c53 main + 3814029
8  clang             0x003a2fd7 main + 3786257
9  clang             0x0037429a main + 3594452
10 clang             0x00388d38 main + 3679090
11 clang             0x00375a9a main + 3600596
12 clang             0x0038937a main + 3680692
13 clang             0x00391e73 main + 3716269
14 clang             0x00389829 main + 3681891
15 clang             0x003918cd main + 3714823
16 clang             0x00391e01 main + 3716155
17 clang             0x0038a040 main + 3683962
18 clang             0x003925e0 main + 3718170
19 clang             0x00389896 main + 3682000
20 clang             0x00397645 main + 3738751
21 clang             0x00395bf2 main + 3732012
22 clang             0x003966af main + 3734761
23 clang             0x00396bc4 main + 3736062
24 clang             0x00395a3e main + 3731576
25 clang             0x00377b34 main + 3608942
26 clang             0x003a7ad3 main + 3805453
27 clang             0x003a7416 main + 3803728
28 clang             0x003a7c39 main + 3805811
29 clang             0x003a7416 main + 3803728
30 clang             0x00225909 main + 2223939
31 clang             0x005f4827 main + 6217313
32 clang             0x00223b5b main + 2216341
33 clang             0x0003e552 main + 228236
34 clang             0x0003e442 main + 227964
35 clang             0x0001fd11 main + 103243
36 clang             0x000031a7 _mh_execute_header + 8615
37 clang             0x00006aaf main + 233
38 clang             0x00002036 _mh_execute_header + 4150
Stack dump:
0.    Program arguments:
/Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang -cc1 -triple
i386-apple-darwin9.0.0 -S -disable-free -main-file-name test.cpp -pic-level 1
-mdisable-fp-elim -target-cpu yonah -resource-dir
/Users/az/Programmierung/CppIDE/llvm-src/Debug/lib/clang/1.5 -ferror-limit 19
-fmessage-length 80 -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-o /var/folders/P9/P9wWY+Z8HDeOPixVmDZ0J++++TI/-Tmp-/cc-RamXbS.s -x c++
test.cpp 
1.    <eof> parser at end of file
2.    test.cpp:6:7: instantiating function definition
'__OlxVariable<int>::gusVar'
3.    test.cpp:8:24: instantiating function definition
'__OlxVariable<int>::gusVar()::GusVarWrapper::invoke'



Process:         clang [84594]
Path:            /Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang
Identifier:      clang
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  clang++ [84593]

Interval Since Last Report:          152142 sec
Crashes Since Last Report:           2
Per-App Interval Since Last Report:  0 sec
Per-App Crashes Since Last Report:   1

Date/Time:       2010-04-12 17:03:41.308 +0200
OS Version:      Mac OS X 10.5.8 (9L30)
Report Version:  6
Anonymous UUID:  C99325D9-953E-44CB-A0FE-88CB8BF0B517

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0

Application Specific Information:
Stack dump:
0.    Program arguments:
/Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang -cc1 -triple
i386-apple-darwin9.0.0 -S -disable-free -main-file-name test.cpp -pic-level 1
-mdisable-fp-elim -target-cpu yonah -resource-dir
/Users/az/Programmierung/CppIDE/llvm-src/Debug/lib/clang/1.5 -ferror-limit 19
-fmessage-length 80 -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-o /var/folders/P9/P9wWY+Z8HDeOPixVmDZ0J++++TI/-Tmp-/cc-RamXbS.s -x c++
test.cpp 
1.    <eof> parser at end of file
2.    test.cpp:6:7: instantiating function definition
'__OlxVariable<int>::gusVar'
3.    test.cpp:8:24: instantiating function definition
'__OlxVariable<int>::gusVar()::GusVarWrapper::invoke'


Thread 0 Crashed:
0   libSystem.B.dylib                 0x94cbee42 __kill + 10
1   libSystem.B.dylib                 0x94d3123a raise + 26
2   libSystem.B.dylib                 0x94d3d622 __abort + 97
3   libSystem.B.dylib                 0x94d3d68a _cproc_fork_child + 0
4   libSystem.B.dylib                 0x94d323db __assert_rtn + 101
5   clang                             0x003a9c53
clang::Sema::LocalInstantiationScope::getInstantiationOf(clang::Decl const*) +
123
6   clang                             0x003a2fd7
clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*,
clang::MultiLevelTemplateArgumentList const&) + 147
7   clang                             0x0037429a (anonymous
namespace)::TemplateInstantiator::TransformDecl(clang::SourceLocation,
clang::Decl*) + 390
8   clang                             0x00388d38
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformDeclRefExpr(clang::DeclRefExpr*) +
272
9   clang                             0x00375a9a (anonymous
namespace)::TemplateInstantiator::TransformDeclRefExpr(clang::DeclRefExpr*) +
188
10  clang                             0x0038937a
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 724
11  clang                             0x00391e73
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformMemberExpr(clang::MemberExpr*) + 57
12  clang                             0x00389829
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 1923
13  clang                             0x003918cd
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr(clang::CallExpr*) + 57
14  clang                             0x00391e01
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCXXMemberCallExpr(clang::CXXMemberCallExpr*)
+ 47
15  clang                             0x0038a040
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 3994
16  clang                             0x003925e0
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformBinaryOperator(clang::BinaryOperator*)
+ 54
17  clang                             0x00389896
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 2032
18  clang                             0x00397645
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformIfStmt(clang::IfStmt*) + 287
19  clang                             0x00395bf2
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 1162
20  clang                             0x003966af
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 121
21  clang                             0x00396bc4
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*)
+ 56
22  clang                             0x00395a3e
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 726
23  clang                             0x00377b34
clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList
const&) + 178
24  clang                             0x003a7ad3
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1259
25  clang                             0x003a7416
clang::Sema::PerformPendingImplicitInstantiations(bool) + 328
26  clang                             0x003a7c39
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1617
27  clang                             0x003a7416
clang::Sema::PerformPendingImplicitInstantiations(bool) + 328
28  clang                             0x00225909
clang::Sema::ActOnEndOfTranslationUnit() + 37
29  clang                             0x005f4827
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 77 (Parser.cpp:345)
30  clang                             0x00223b5b
clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&,
bool, bool, clang::CodeCompleteConsumer*) + 435
31  clang                             0x0003e552
clang::ASTFrontendAction::ExecuteAction() + 266
32  clang                             0x0003e442
clang::FrontendAction::Execute() + 278
33  clang                             0x0001fd11
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879
34  clang                             0x000031a7 cc1_main(char const**, char
const**, char const*, void*) + 1439
35  clang                             0x00006aaf main + 233 (driver.cpp:181)
36  clang                             0x00002036 start + 54

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x94d3d639  ecx: 0xbfffbacc  edx: 0x94cbee42
  edi: 0x000000c6  esi: 0x00faab08  ebp: 0xbfffbae8  esp: 0xbfffbacc
   ss: 0x0000001f  efl: 0x00000282  eip: 0x94cbee42   cs: 0x00000007
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x94d2d12c

Binary Images:
    0x1000 -  0x1154fd7 +clang ??? (???) <bd759702f41585582dc3731cbe2531cd>
/Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang
0x8fe00000 - 0x8fe2db43  dyld 97.1 (???) <458eed38a009e5658a79579e7bc26603>
/usr/lib/dyld
0x92737000 - 0x9273efe9  libgcc_s.1.dylib ??? (???)
<f53c808e87d1184c0f9df63aef53ce0b> /usr/lib/libgcc_s.1.dylib
0x946e4000 - 0x94741ffb  libstdc++.6.dylib ??? (???)
<04b812dcec670daa8b7d2852ab14be60> /usr/lib/libstdc++.6.dylib
0x94c50000 - 0x94db7ff3  libSystem.B.dylib ??? (???)
<c8f52e158bf540cc000146ca8a705958> /usr/lib/libSystem.B.dylib
0x95237000 - 0x9523bfff  libmathCommon.A.dylib ??? (???)
/usr/lib/system/libmathCommon.A.dylib
0xffff0000 - 0xffff1780  libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib

-- 
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 LLVMbugs mailing list