| Traces starting: ==8036== Invalid write of size 8
==8036== at 0x63581B: xerus::get_step_sizes(xerus::AssignedIndices) (indexedTensor_tensor_evaluate.hpp:112)
==8036== by 0x63CC4A: xerus::evaluate(xerus::IndexedTensorWritable<xerus::Tensor, 0> const&, xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor_tensor_evaluate.hpp:275)
==8036== by 0x6520A9: xerus::IndexedTensorWritable<xerus::Tensor, 0>::operator=(xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor_tensor_operators.hpp:31)
==8036== by 0x5247B4: xerus::IndexedTensor<xerus::Tensor, 0>::operator=(xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor.h:52)
==8036== by 0x48EC1C: operator= (indexedTensor.h:47)
==8036== by 0x48EC1C: {lambda()#27}::operator()() const (sparseTensor_trace_cpy.hxx:23)
==8036== by 0x51331A: _ZNSt17_Function_handlerIFbvEUlvE25_E9_M_invokeERKSt9_Any_data (functional:2025)
==8036== by 0x614FF7: std::function<bool ()>::operator()() const (functional:2439)
==8036== by 0x612F81: ___test(std::pair<std::string, std::function<bool ()> > const&) (test.cpp:46)
==8036== by 0x613F82: main (test.cpp:139)
==8036== Address 0x9a8bac8 is 8 bytes before a block of size 0 alloc'd
==8036== at 0x4C2A77C: operator new[](unsigned long) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==8036== by 0x6357FF: xerus::get_step_sizes(xerus::AssignedIndices) (indexedTensor_tensor_evaluate.hpp:111)
==8036== by 0x63CC4A: xerus::evaluate(xerus::IndexedTensorWritable<xerus::Tensor, 0> const&, xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor_tensor_evaluate.hpp:275)
==8036== by 0x6520A9: xerus::IndexedTensorWritable<xerus::Tensor, 0>::operator=(xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor_tensor_operators.hpp:31)
==8036== by 0x5247B4: xerus::IndexedTensor<xerus::Tensor, 0>::operator=(xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor.h:52)
==8036== by 0x48EC1C: operator= (indexedTensor.h:47)
==8036== by 0x48EC1C: {lambda()#27}::operator()() const (sparseTensor_trace_cpy.hxx:23)
==8036== by 0x51331A: _ZNSt17_Function_handlerIFbvEUlvE25_E9_M_invokeERKSt9_Any_data (functional:2025)
==8036== by 0x614FF7: std::function<bool ()>::operator()() const (functional:2439)
==8036== by 0x612F81: ___test(std::pair<std::string, std::function<bool ()> > const&) (test.cpp:46)
==8036== by 0x613F82: main (test.cpp:139)
==8036==
==8036== Invalid read of size 8
==8036== at 0x635860: xerus::get_step_sizes(xerus::AssignedIndices) (indexedTensor_tensor_evaluate.hpp:114)
==8036== by 0x63CC4A: xerus::evaluate(xerus::IndexedTensorWritable<xerus::Tensor, 0> const&, xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor_tensor_evaluate.hpp:275)
==8036== by 0x6520A9: xerus::IndexedTensorWritable<xerus::Tensor, 0>::operator=(xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor_tensor_operators.hpp:31)
==8036== by 0x5247B4: xerus::IndexedTensor<xerus::Tensor, 0>::operator=(xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor.h:52)
==8036== by 0x48EC1C: operator= (indexedTensor.h:47)
==8036== by 0x48EC1C: {lambda()#27}::operator()() const (sparseTensor_trace_cpy.hxx:23)
==8036== by 0x51331A: _ZNSt17_Function_handlerIFbvEUlvE25_E9_M_invokeERKSt9_Any_data (functional:2025)
==8036== by 0x614FF7: std::function<bool ()>::operator()() const (functional:2439)
==8036== by 0x612F81: ___test(std::pair<std::string, std::function<bool ()> > const&) (test.cpp:46)
==8036== by 0x613F82: main (test.cpp:139)
==8036== Address 0x9a8bac8 is 8 bytes before a block of size 0 alloc'd
==8036== at 0x4C2A77C: operator new[](unsigned long) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==8036== by 0x6357FF: xerus::get_step_sizes(xerus::AssignedIndices) (indexedTensor_tensor_evaluate.hpp:111)
==8036== by 0x63CC4A: xerus::evaluate(xerus::IndexedTensorWritable<xerus::Tensor, 0> const&, xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor_tensor_evaluate.hpp:275)
==8036== by 0x6520A9: xerus::IndexedTensorWritable<xerus::Tensor, 0>::operator=(xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor_tensor_operators.hpp:31)
==8036== by 0x5247B4: xerus::IndexedTensor<xerus::Tensor, 0>::operator=(xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor.h:52)
==8036== by 0x48EC1C: operator= (indexedTensor.h:47)
==8036== by 0x48EC1C: {lambda()#27}::operator()() const (sparseTensor_trace_cpy.hxx:23)
==8036== by 0x51331A: _ZNSt17_Function_handlerIFbvEUlvE25_E9_M_invokeERKSt9_Any_data (functional:2025)
==8036== by 0x614FF7: std::function<bool ()>::operator()() const (functional:2439)
==8036== by 0x612F81: ___test(std::pair<std::string, std::function<bool ()> > const&) (test.cpp:46)
==8036== by 0x613F82: main (test.cpp:139)
==8036==
==8036== Invalid read of size 8
==8036== at 0x63587A: xerus::get_step_sizes(xerus::AssignedIndices) (indexedTensor_tensor_evaluate.hpp:114)
==8036== by 0x63CC4A: xerus::evaluate(xerus::IndexedTensorWritable<xerus::Tensor, 0> const&, xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor_tensor_evaluate.hpp:275)
==8036== by 0x6520A9: xerus::IndexedTensorWritable<xerus::Tensor, 0>::operator=(xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor_tensor_operators.hpp:31)
==8036== by 0x5247B4: xerus::IndexedTensor<xerus::Tensor, 0>::operator=(xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&) (indexedTensor.h:52)
==8036== by 0x48EC1C: operator= (indexedTensor.h:47)
==8036== by 0x48EC1C: {lambda()#27}::operator()() const (sparseTensor_trace_cpy.hxx:23)
==8036== by 0x51331A: _ZNSt17_Function_handlerIFbvEUlvE25_E9_M_invokeERKSt9_Any_data (functional:2025)
==8036== by 0x614FF7: std::function<bool ()>::operator()() const (functional:2439)
==8036== by 0x612F81: ___test(std::pair<std::string, std::function<bool ()> > const&) (test.cpp:46)
==8036== by 0x613F82: main (test.cpp:139)
==8036== Address 0xfffffffffffffff8 is not stack'd, malloc'd or (recently) free'd
==8036==
✗
| Test has thrown an uncaught xerus::generic_error():
signal 11 = Segmentation faultcallstack:
[0x00000000006138de .text] /home/ben/coding/xerus/misc/test.cpp:95 (inside ___catch_signals(int))
[0x0000000008c9b960 .text] sigaction.c:0 (inside __restore_rt)
[0x000000000063587a .text] /home/ben/coding/xerus/indexedTensor_tensor_evaluate.hpp:114 (inside xerus::get_step_sizes(xerus::AssignedIndices))
[0x000000000063cc4b .text] /home/ben/coding/xerus/indexedTensor_tensor_evaluate.hpp:275 (inside xerus::evaluate(xerus::IndexedTensorWritable<xerus::Tensor, 0> const&, xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&))
[0x00000000006520aa .text] /home/ben/coding/xerus/indexedTensor_tensor_operators.hpp:31 (inside xerus::IndexedTensorWritable<xerus::Tensor, 0>::operator=(xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&))
[0x00000000005247b5 .text] /home/ben/coding/xerus/indexedTensor.h:53 (inside xerus::IndexedTensor<xerus::Tensor, 0>::operator=(xerus::IndexedTensorReadOnly<xerus::Tensor, 0> const&))
[0x000000000048ec1d .text] /home/ben/coding/xerus/unitTests/sparseTensor_trace_cpy.hxx:23 (inside operator())
[0x000000000051331b .text] /usr/include/c++/4.9.2/functional:2026 (inside _M_invoke)
[0x0000000000614ff8 .text] /usr/include/c++/4.9.2/functional:2440 (inside std::function<bool ()>::operator()() const)
[0x0000000000612f82 .text] /home/ben/coding/xerus/misc/test.cpp:46 (inside ___test(std::pair<std::string, std::function<bool ()> > const&))
[0x0000000000613f83 .text] /home/ben/coding/xerus/misc/test.cpp:139 (inside main)
[0x0000000008c86fe0 .text] ??:? (inside __libc_start_main +0x240)
[0x0000000000405b13 .text] ??:? (inside _start)
exception thrown in function: ___catch_signals (misc/test.cpp : 95)