User exiting application... [Thread -1358586960 (LWP 14419) exited] [Thread -1347609680 (zombie) exited] Assertion failed: n < count Location: /home/morgul/development/CS/include/csutil/array.h:674 Call stack: /home/morgul/development/precursors/precursors(csArray::Element, csArrayElementHandler::Element>, CS::Memory::AllocatorMalloc, csArrayCapacityDefault>, csArrayElementHandler::Element, csArrayElementHandler::Element>, CS::Memory::AllocatorMalloc, csArrayCapacityDefault> >, CS::Memory::AllocatorMalloc, csArrayCapacityDefault>::operator[](unsigned int)+0x24) [0x81347d8] /home/morgul/development/precursors/precursors(csHash::DeleteElement(csHash::GlobalIterator&)+0x27) [0x8133671] /home/morgul/development/precursors/precursors(Precursors::InputHelper::Empty()+0x91) [0x81306a5] /home/morgul/development/precursors/precursors(Precursors::InputHelper::~InputHelper()+0x1e) [0x813058e] /home/morgul/development/precursors/precursors(Precursors::BehaviourLayer::UserInterface::Fighter::~Fighter()+0x60) [0x8129c5a] /home/morgul/development/precursors/precursors(Precursors::BehaviourLayer::EntityController::DecRef()+0x74) [0x81442dc] /home/morgul/development/cel/stdphyslayer.so [0xb6fb3fae] /home/morgul/development/cel/stdphyslayer.so [0xb6fb2f36] /home/morgul/development/cel/stdphyslayer.so [0xb6fa1a63] /home/morgul/development/cel/stdphyslayer.so [0xb6fb2495] /home/morgul/development/cel/stdphyslayer.so [0xb6fb260a] /home/morgul/development/cel/stdphyslayer.so [0xb6fa4ef2] /home/morgul/development/cel/stdphyslayer.so [0xb6f9f91e] /home/morgul/development/cel/stdphyslayer.so [0xb6f96b46] /home/morgul/development/cel/stdphyslayer.so [0xb6f94ddf] /home/morgul/development/cel/stdphyslayer.so [0xb6f9519e] /home/morgul/development/precursors/precursors [0x80d56a2] /home/morgul/development/precursors/precursors [0x80b9c6d] /home/morgul/development/precursors/precursors [0x80be5d4] /home/morgul/development/precursors/precursors(Precursors::preClient::~preClient()+0x30f) [0x808e267] /home/morgul/development/precursors/precursors(csApplicationRunner::Run(int, char**)+0x86) [0x808cd4e] /home/morgul/development/precursors/precursors(main+0x5d) [0x808cab1] /lib/tls/libc.so.6(__libc_start_main+0xd4) [0xb7af8f24] /home/morgul/development/precursors/precursors(__gxx_personality_v0+0x75) [0x808c9c1] Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread -1213974848 (LWP 14031)] CS::Debug::AssertMessage (expr=0x817fdfb "n < count", filename=0x817fdc8 "/home/morgul/development/CS/include/csutil/array.h", line=674, msg=0x0) at csassert.cpp:75 75 } (gdb) up #1 0x08135b64 in csArray::Element, csArrayElementHandler::Element>, CS::Memory::AllocatorMalloc, csArrayCapacityDefault>, csArrayElementHandler::Element, csArrayElementHandler::Element>, CS::Memory::AllocatorMalloc, csArrayCapacityDefault> >, CS::Memory::AllocatorMalloc, csArrayCapacityDefault>::Get (this=0x8f03af0, n=23) at array.h:674 674 CS_ASSERT (n < count); (gdb) up #2 0x081347d8 in csArray::Element, csArrayElementHandler::Element>, CS::Memory::AllocatorMalloc, csArrayCapacityDefault>, csArrayElementHandler::Element, csArrayElementHandler::Element>, CS::Memory::AllocatorMalloc, csArrayCapacityDefault> >, CS::Memory::AllocatorMalloc, csArrayCapacityDefault>::operator[] (this=0x8f03af0, n=23) at array.h:700 700 return Get(n); (gdb) print n $4 = 23 (gdb) up #3 0x08133671 in csHash::DeleteElement ( this=0x8f03af0, iterator=@0xbf9a46f0) at hash.h:756 756 Elements[iterator.bucket].DeleteIndex(iterator.element); (gdb) print iterator.element $5 = 2 (gdb) print iterator.bucket $6 = 23 (gdb) print Elements $7 = {count = 23, capacity = { = {> = { = { threshold = 16}, }, }, c = 32}, root = { = {}, p = 0x8f0ebf8}} (gdb)