[eigen] Uninitialised value was created by a heap allocation

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


I have something like this:

Matrix<Real, Dynamic, 1> u;
u.resize(100);

and Valgrind gives me this error:

==11871==  Uninitialised value was created by a heap allocation
==11871==    at 0x402A49B: memalign (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==11871==    by 0x402A4F8: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==11871==    by 0x8754E79: Eigen::internal::aligned_malloc(unsigned int) (Memory.h:204)
==11871==    by 0x8755F3C: void* Eigen::internal::conditional_aligned_malloc<true>(unsigned int) (Memory.h:283)
==11871==    by 0x8755D56: double* Eigen::internal::conditional_aligned_new_auto<double, true>(unsigned int) (Memory.h:403)
==11871==    by 0x8755922: Eigen::DenseStorage<double, -1, -1, 1, 0>::resize(int, int, int) (DenseStorage.h:290)
==11871==    by 0x8755474: Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> >::resize(int) (PlainObjectBase.h:254)


Actually u is a public member of a class and then I resize it. Someting like:

A.u.resize(100);

I don't know too much about Eigen's internal structure. Does anyone know what this may be?






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/