etaler / Etaler

A flexable HTM (Hierarchical Temporal Memory) framework with full GPU support.
BSD 3-Clause "New" or "Revised" License
89 stars 14 forks source link

SmallVector::back() emits error under testing in a Debug build #158

Closed marty1885 closed 3 years ago

marty1885 commented 3 years ago

Somehow SmallVector::back() is aborting while testing even though I believe back isn't calles there. Anyway, a bug

Running with backend: CPU
etaler_tests: /home/marty/Documents/Etaler/./Etaler/Core/SmallVector.hpp:184: T& llvm_vecsmall::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::back() [with T = long int; <template-parameter-1-2> = void; llvm_vecsmall::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::reference = long int&]: Assertion `!empty()' failed.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
etaler_tests is a Catch v2.13.0 host application.
Run with -? for options

-------------------------------------------------------------------------------
Testing Tensor
  constants
-------------------------------------------------------------------------------
/home/marty/Documents/Etaler/tests/common_tests.cpp:90
...............................................................................

/home/marty/Documents/Etaler/tests/common_tests.cpp:90: FAILED:
due to a fatal error condition:
  SIGABRT - Abort (abnormal termination) signal

===============================================================================
test cases:  3 |  2 passed | 1 failed
assertions: 27 | 26 passed | 1 failed

[1]    1555766 abort      tests/etaler_tests