Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==6391== Memcheck, a memory error detector
- ==6391== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
- ==6391== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
- ==6391== Command: ./classifier_lda
- ==6391==
- ==6391== Invalid read of size 8
- ==6391== at 0x5A7E79C: shogun::CMCLDA::train_machine(shogun::CFeatures*) (MCLDA.cpp:341)
- ==6391== by 0x5B2952E: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
- ==6391== by 0x401183: test() (classifier_lda.cpp:47)
- ==6391== by 0x401376: main (classifier_lda.cpp:63)
- ==6391== Address 0x9a3b150 is 0 bytes after a block of size 16 alloc'd
- ==6391== at 0x4C2B3F8: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==6391== by 0x58E1E9C: shogun::sg_malloc(unsigned long) (memory.cpp:153)
- ==6391== by 0x5752A3D: double* shogun::sg_generic_malloc<double>(unsigned long) (memory.h:79)
- ==6391== by 0x5889011: shogun::SGVector<double>::SGVector(int, bool) (SGVector.cpp:43)
- ==6391== by 0x5A7E613: shogun::CMCLDA::train_machine(shogun::CFeatures*) (MCLDA.cpp:325)
- ==6391== by 0x5B2952E: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
- ==6391== by 0x401183: test() (classifier_lda.cpp:47)
- ==6391== by 0x401376: main (classifier_lda.cpp:63)
- ==6391==
- ==6391== Invalid read of size 8
- ==6391== at 0x5A7ECDA: shogun::CMCLDA::train_machine(shogun::CFeatures*) (MCLDA.cpp:392)
- ==6391== by 0x5B2952E: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
- ==6391== by 0x401183: test() (classifier_lda.cpp:47)
- ==6391== by 0x401376: main (classifier_lda.cpp:63)
- ==6391== Address 0x9a3b8e0 is 0 bytes after a block of size 16 alloc'd
- ==6391== at 0x4C2B3F8: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==6391== by 0x58E1E9C: shogun::sg_malloc(unsigned long) (memory.cpp:153)
- ==6391== by 0x5752A3D: double* shogun::sg_generic_malloc<double>(unsigned long) (memory.h:79)
- ==6391== by 0x5889011: shogun::SGVector<double>::SGVector(int, bool) (SGVector.cpp:43)
- ==6391== by 0x5A7EAEB: shogun::CMCLDA::train_machine(shogun::CFeatures*) (MCLDA.cpp:376)
- ==6391== by 0x5B2952E: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
- ==6391== by 0x401183: test() (classifier_lda.cpp:47)
- ==6391== by 0x401376: main (classifier_lda.cpp:63)
- ==6391==
- vector=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
- ==6391==
- ==6391== HEAP SUMMARY:
- ==6391== in use at exit: 0 bytes in 0 blocks
- ==6391== total heap usage: 772 allocs, 772 frees, 117,776 bytes allocated
- ==6391==
- ==6391== All heap blocks were freed -- no leaks are possible
- ==6391==
- ==6391== For counts of detected and suppressed errors, rerun with: -v
- ==6391== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 2 from 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement