[LLVMbugs] [Bug 22744] New: clang++ 3.4 crash: "Node count imbalance!"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 1 10:11:49 PST 2015


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

            Bug ID: 22744
           Summary: clang++ 3.4 crash: "Node count imbalance!"
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kdevel at vogtner.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

--- a.cc ---
bool f[2];

void u(int a)
{
   if (f[a])
      f[a] = false;
}

int main ()
{
}
--- a.cc end ---

Using at least -O ("clang++ -O a.cc") crashes the compiler:

clang: /.../llvm-3.4/include/llvm/ADT/DenseMap.h:98: void
llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT>::clear() [with DerivedT =
llvm::DenseMap<llvm::MachineBasicBlock*, <unnamed>::BlockChain*,
llvm::DenseMapInfo<llvm::MachineBasicBlock*> >, KeyT =
llvm::MachineBasicBlock*, ValueT = <unnamed>::BlockChain*, KeyInfoT =
llvm::DenseMapInfo<llvm::MachineBasicBlock*>]: Assertion `getNumEntries() == 0
&& "Node count imbalance!"' failed.
0  clang           0x000000000259fc02 llvm::sys::PrintStackTrace(_IO_FILE*) +
34

llvm 3.3 works okay. Could not test with 3.5.1.

-- 
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/20150301/39ded32e/attachment.html>


More information about the llvm-bugs mailing list