[LLVMbugs] [Bug 8895] New: [REGRESSION] Assertion failed: (HT.TopLevelMap[ThisEntry->getKey()] == ThisEntry && "Scope imbalance!")

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 3 04:30:44 PST 2011


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

           Summary: [REGRESSION] Assertion failed:
                    (HT.TopLevelMap[ThisEntry->getKey()] == ThisEntry &&
                    "Scope imbalance!")
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ismail at namtrac.org
                CC: llvmbugs at cs.uiuc.edu


Trying to compile snow.c with clang trunk;


clang -I. -I"/Users/cartman/Sources/ffmpeg" -D_ISOC99_SOURCE
-D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC
-DHAVE_AV_CONFIG_H -std=c99 -mdynamic-no-pic -fomit-frame-pointer -fPIC -g
-Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign
-Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -O3
-fno-math-errno -fno-signed-zeros -mllvm -stack-alignment=16 -Qunused-arguments
         -MMD -c -o libavcodec/snow.o libavcodec/snow.c
Assertion failed: (HT.TopLevelMap[ThisEntry->getKey()] == ThisEntry && "Scope
imbalance!"), function ~ScopedHashTableScope, file
/Users/cartman/Sources/llvm/include/llvm/ADT/ScopedHashTable.h, line 224.
0  clang             0x00000001014b4df2
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
754
1  clang             0x00000001014b5c43
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
4419
2  libSystem.B.dylib 0x00007fff81fe867a _sigtramp + 26
3  libSystem.B.dylib 0x0000000102afc080 _sigtramp + 2159098400
4  clang             0x000000010001a472
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**,
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*> > >,
llvm::PassRegistrationListener* const&) + 3474
5  clang             0x00000001010fc920 llvm::cast_retty<llvm::MemTransferInst,
llvm::ilist_iterator<llvm::Instruction> >::ret_type
llvm::cast<llvm::MemTransferInst, llvm::ilist_iterator<llvm::Instruction>
>(llvm::ilist_iterator<llvm::Instruction> const&) + 5984
6  clang             0x00000001010fcf12 llvm::cast_retty<llvm::MemTransferInst,
llvm::ilist_iterator<llvm::Instruction> >::ret_type
llvm::cast<llvm::MemTransferInst, llvm::ilist_iterator<llvm::Instruction>
>(llvm::ilist_iterator<llvm::Instruction> const&) + 7506
7  clang             0x00000001010fcedf llvm::cast_retty<llvm::MemTransferInst,
llvm::ilist_iterator<llvm::Instruction> >::ret_type
llvm::cast<llvm::MemTransferInst, llvm::ilist_iterator<llvm::Instruction>
>(llvm::ilist_iterator<llvm::Instruction> const&) + 7455
8  clang             0x00000001010fcedf llvm::cast_retty<llvm::MemTransferInst,
llvm::ilist_iterator<llvm::Instruction> >::ret_type
llvm::cast<llvm::MemTransferInst, llvm::ilist_iterator<llvm::Instruction>
>(llvm::ilist_iterator<llvm::Instruction> const&) + 7455
9  clang             0x00000001010fcedf llvm::cast_retty<llvm::MemTransferInst,
llvm::ilist_iterator<llvm::Instruction> >::ret_type
llvm::cast<llvm::MemTransferInst, llvm::ilist_iterator<llvm::Instruction>
>(llvm::ilist_iterator<llvm::Instruction> const&) + 7455
10 clang             0x00000001010fcedf llvm::cast_retty<llvm::MemTransferInst,
llvm::ilist_iterator<llvm::Instruction> >::ret_type
llvm::cast<llvm::MemTransferInst, llvm::ilist_iterator<llvm::Instruction>
>(llvm::ilist_iterator<llvm::Instruction> const&) + 7455
11 clang             0x00000001010fe19c llvm::cast_retty<llvm::MemTransferInst,
llvm::ilist_iterator<llvm::Instruction> >::ret_type
llvm::cast<llvm::MemTransferInst, llvm::ilist_iterator<llvm::Instruction>
>(llvm::ilist_iterator<llvm::Instruction> const&) + 12252
12 clang             0x00000001013e8af0 llvm::BasicBlockPass::~BasicBlockPass()
+ 31584
13 clang             0x0000000101256eb1 std::_Rb_tree<llvm::Function const*,
std::pair<llvm::Function const* const, llvm::CallGraphNode*>,
std::_Select1st<std::pair<llvm::Function const* const, llvm::CallGraphNode*> >,
std::less<llvm::Function const*>, std::allocator<std::pair<llvm::Function
const* const, llvm::CallGraphNode*> >
>::_M_insert_unique(std::_Rb_tree_iterator<std::pair<llvm::Function const*
const, llvm::CallGraphNode*> >, std::pair<llvm::Function const* const,
llvm::CallGraphNode*> const&) + 7473
14 clang             0x0000000101257c81 std::_Rb_tree<llvm::Function const*,
std::pair<llvm::Function const* const, llvm::CallGraphNode*>,
std::_Select1st<std::pair<llvm::Function const* const, llvm::CallGraphNode*> >,
std::less<llvm::Function const*>, std::allocator<std::pair<llvm::Function
const* const, llvm::CallGraphNode*> >
>::_M_insert_unique(std::_Rb_tree_iterator<std::pair<llvm::Function const*
const, llvm::CallGraphNode*> >, std::pair<llvm::Function const* const,
llvm::CallGraphNode*> const&) + 11009
15 clang             0x00000001013ea7ff llvm::BasicBlockPass::~BasicBlockPass()
+ 39023
16 clang             0x00000001013eaaf3 llvm::BasicBlockPass::~BasicBlockPass()
+ 39779
17 clang             0x00000001013eabcd llvm::BasicBlockPass::~BasicBlockPass()
+ 39997
18 clang             0x0000000100177d6f clang::PCHGenerator::~PCHGenerator() +
5823
19 clang             0x000000010029f2fe llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateIsNull(llvm::Value*, llvm::Twine const&) + 1822
20 clang             0x00000001002e4dc9 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateGEP(llvm::Value*, llvm::Value*, llvm::Twine const&) + 1065
21 clang             0x000000010029fefc llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateIsNull(llvm::Value*, llvm::Twine const&) + 4892
22 clang             0x0000000100052829 llvm::DenseMap<clang::IdentifierInfo
const*, unsigned int, llvm::DenseMapInfo<clang::IdentifierInfo const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 7561
23 clang             0x0000000100024612 std::_Rb_tree<std::string, std::string,
std::_Identity<std::string>, std::less<std::string>,
std::allocator<std::string> >::_M_insert_unique(std::string const&) + 2002
24 clang             0x000000010001c29a
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**,
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*> > >,
llvm::PassRegistrationListener* const&) + 11194
25 clang             0x0000000100023644 std::vector<std::string,
std::allocator<std::string> >::operator=(std::vector<std::string,
std::allocator<std::string> > const&) + 12196
26 clang             0x000000010001abf4
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**,
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*> > >,
llvm::PassRegistrationListener* const&) + 5396
27 clang             0x0000000000000046
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**,
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*> > >,
llvm::PassRegistrationListener* const&) + 4294863206
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-apple-darwin10.0.0 -emit-obj -disable-free -main-file-name snow.c
-pic-level 2 -masm-verbose -munwind-tables -target-cpu core2
-target-linker-version 97.14 -g -resource-dir /usr/local/bin/../lib/clang/2.9
-dependency-file libavcodec/snow.d -MT libavcodec/snow.o -D _ISOC99_SOURCE -D
_POSIX_C_SOURCE=200112 -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D PIC -D
HAVE_AV_CONFIG_H -I . -I /Users/cartman/Sources/ffmpeg -O3
-Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign
-Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -std=c99
-ferror-limit 19 -fmessage-length 120 -stack-protector 1 -fblocks
-fdiagnostics-show-option -fcolor-diagnostics -mllvm -stack-alignment=16 -o
libavcodec/snow.o -x c libavcodec/snow.c 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'CallGraph Pass Manager' on module 'libavcodec/snow.c'.
4.    Running pass 'Early CSE' on function '@mc_block'
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

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