==12961== Memcheck, a memory error detector ==12961== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==12961== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==12961== Command: ./a.out ==12961== Parent PID: 12480 ==12961== ==12961== Invalid read of size 4 ==12961== at 0x804A045: Eigen::SparseMatrix::insertUncompressed(int, int) (SparseMatrix.h:1103) ==12961== by 0x804A2E6: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:222) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== Address 0x4334034 is 0 bytes after a block of size 12 alloc'd ==12961== at 0x402822A: malloc (vg_replace_malloc.c:236) ==12961== by 0x8048F37: Eigen::SparseMatrix::resize(int, int) (SparseMatrix.h:595) ==12961== by 0x8049044: Eigen::SparseMatrix::SparseMatrix(int, int) (SparseMatrix.h:632) ==12961== by 0x8048B6F: main (test.cpp:8) ==12961== ==12961== Invalid read of size 4 ==12961== at 0x804A070: Eigen::SparseMatrix::insertUncompressed(int, int) (SparseMatrix.h:1104) ==12961== by 0x804A2E6: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:222) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== Address 0x4334070 is 0 bytes after a block of size 8 alloc'd ==12961== at 0x402822A: malloc (vg_replace_malloc.c:236) ==12961== by 0x8049562: void Eigen::SparseMatrix::reserveInnerVectors, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&) (SparseMatrix.h:289) ==12961== by 0x8049A83: void Eigen::SparseMatrix::reserve, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&, Eigen::CwiseNullaryOp, Eigen::Matrix >::Scalar const&) (SparseMatrix.h:277) ==12961== by 0x804A2CD: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:220) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== ==12961== Invalid read of size 4 ==12961== at 0x804A0F1: Eigen::SparseMatrix::insertUncompressed(int, int) (SparseMatrix.h:1112) ==12961== by 0x804A2E6: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:222) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== Address 0x4334070 is 0 bytes after a block of size 8 alloc'd ==12961== at 0x402822A: malloc (vg_replace_malloc.c:236) ==12961== by 0x8049562: void Eigen::SparseMatrix::reserveInnerVectors, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&) (SparseMatrix.h:289) ==12961== by 0x8049A83: void Eigen::SparseMatrix::reserve, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&, Eigen::CwiseNullaryOp, Eigen::Matrix >::Scalar const&) (SparseMatrix.h:277) ==12961== by 0x804A2CD: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:220) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== ==12961== Invalid read of size 4 ==12961== at 0x804A22A: Eigen::SparseMatrix::insertUncompressed(int, int) (SparseMatrix.h:1121) ==12961== by 0x804A2E6: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:222) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== Address 0x4334070 is 0 bytes after a block of size 8 alloc'd ==12961== at 0x402822A: malloc (vg_replace_malloc.c:236) ==12961== by 0x8049562: void Eigen::SparseMatrix::reserveInnerVectors, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&) (SparseMatrix.h:289) ==12961== by 0x8049A83: void Eigen::SparseMatrix::reserve, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&, Eigen::CwiseNullaryOp, Eigen::Matrix >::Scalar const&) (SparseMatrix.h:277) ==12961== by 0x804A2CD: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:220) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== ==12961== Invalid write of size 4 ==12961== at 0x804A22F: Eigen::SparseMatrix::insertUncompressed(int, int) (SparseMatrix.h:1121) ==12961== by 0x804A2E6: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:222) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== Address 0x4334070 is 0 bytes after a block of size 8 alloc'd ==12961== at 0x402822A: malloc (vg_replace_malloc.c:236) ==12961== by 0x8049562: void Eigen::SparseMatrix::reserveInnerVectors, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&) (SparseMatrix.h:289) ==12961== by 0x8049A83: void Eigen::SparseMatrix::reserve, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&, Eigen::CwiseNullaryOp, Eigen::Matrix >::Scalar const&) (SparseMatrix.h:277) ==12961== by 0x804A2CD: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:220) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== ==12961== Invalid write of size 4 ==12961== at 0x804A24B: Eigen::SparseMatrix::insertUncompressed(int, int) (SparseMatrix.h:1123) ==12961== by 0x804A2E6: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:222) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== Address 0x4334100 is 0 bytes after a block of size 16 alloc'd ==12961== at 0x4028691: operator new[](unsigned int) (vg_replace_malloc.c:299) ==12961== by 0x80493EC: Eigen::internal::CompressedStorage::reallocate(unsigned int) (CompressedStorage.h:208) ==12961== by 0x80494CE: Eigen::internal::CompressedStorage::reserve(unsigned int) (CompressedStorage.h:77) ==12961== by 0x8049622: void Eigen::SparseMatrix::reserveInnerVectors, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&) (SparseMatrix.h:302) ==12961== by 0x8049A83: void Eigen::SparseMatrix::reserve, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&, Eigen::CwiseNullaryOp, Eigen::Matrix >::Scalar const&) (SparseMatrix.h:277) ==12961== by 0x804A2CD: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:220) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== ==12961== Invalid write of size 8 ==12961== at 0x804A264: Eigen::SparseMatrix::insertUncompressed(int, int) (SparseMatrix.h:1124) ==12961== by 0x804A2E6: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:222) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== Address 0x43340c0 is 0 bytes after a block of size 32 alloc'd ==12961== at 0x4028691: operator new[](unsigned int) (vg_replace_malloc.c:299) ==12961== by 0x80493DB: Eigen::internal::CompressedStorage::reallocate(unsigned int) (CompressedStorage.h:207) ==12961== by 0x80494CE: Eigen::internal::CompressedStorage::reserve(unsigned int) (CompressedStorage.h:77) ==12961== by 0x8049622: void Eigen::SparseMatrix::reserveInnerVectors, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&) (SparseMatrix.h:302) ==12961== by 0x8049A83: void Eigen::SparseMatrix::reserve, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&, Eigen::CwiseNullaryOp, Eigen::Matrix >::Scalar const&) (SparseMatrix.h:277) ==12961== by 0x804A2CD: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:220) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== ==12961== Invalid write of size 8 ==12961== at 0x8048B8D: main (test.cpp:9) ==12961== Address 0x43340c0 is 0 bytes after a block of size 32 alloc'd ==12961== at 0x4028691: operator new[](unsigned int) (vg_replace_malloc.c:299) ==12961== by 0x80493DB: Eigen::internal::CompressedStorage::reallocate(unsigned int) (CompressedStorage.h:207) ==12961== by 0x80494CE: Eigen::internal::CompressedStorage::reserve(unsigned int) (CompressedStorage.h:77) ==12961== by 0x8049622: void Eigen::SparseMatrix::reserveInnerVectors, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&) (SparseMatrix.h:302) ==12961== by 0x8049A83: void Eigen::SparseMatrix::reserve, Eigen::Matrix > >(Eigen::CwiseNullaryOp, Eigen::Matrix > const&, Eigen::CwiseNullaryOp, Eigen::Matrix >::Scalar const&) (SparseMatrix.h:277) ==12961== by 0x804A2CD: Eigen::SparseMatrix::insert(int, int) (SparseMatrix.h:220) ==12961== by 0x8048B8A: main (test.cpp:9) ==12961== ==12961== ==12961== HEAP SUMMARY: ==12961== in use at exit: 0 bytes in 0 blocks ==12961== total heap usage: 5 allocs, 5 frees, 80 bytes allocated ==12961== ==12961== All heap blocks were freed -- no leaks are possible ==12961== ==12961== For counts of detected and suppressed errors, rerun with: -v ==12961== ERROR SUMMARY: 8 errors from 8 contexts (suppressed: 5 from 5)