Advertisement
Guest User

Untitled

a guest
May 7th, 2013
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. ==6391== Memcheck, a memory error detector
  2. ==6391== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
  3. ==6391== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
  4. ==6391== Command: ./classifier_lda
  5. ==6391==
  6. ==6391== Invalid read of size 8
  7. ==6391== at 0x5A7E79C: shogun::CMCLDA::train_machine(shogun::CFeatures*) (MCLDA.cpp:341)
  8. ==6391== by 0x5B2952E: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
  9. ==6391== by 0x401183: test() (classifier_lda.cpp:47)
  10. ==6391== by 0x401376: main (classifier_lda.cpp:63)
  11. ==6391== Address 0x9a3b150 is 0 bytes after a block of size 16 alloc'd
  12. ==6391== at 0x4C2B3F8: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  13. ==6391== by 0x58E1E9C: shogun::sg_malloc(unsigned long) (memory.cpp:153)
  14. ==6391== by 0x5752A3D: double* shogun::sg_generic_malloc<double>(unsigned long) (memory.h:79)
  15. ==6391== by 0x5889011: shogun::SGVector<double>::SGVector(int, bool) (SGVector.cpp:43)
  16. ==6391== by 0x5A7E613: shogun::CMCLDA::train_machine(shogun::CFeatures*) (MCLDA.cpp:325)
  17. ==6391== by 0x5B2952E: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
  18. ==6391== by 0x401183: test() (classifier_lda.cpp:47)
  19. ==6391== by 0x401376: main (classifier_lda.cpp:63)
  20. ==6391==
  21. ==6391== Invalid read of size 8
  22. ==6391== at 0x5A7ECDA: shogun::CMCLDA::train_machine(shogun::CFeatures*) (MCLDA.cpp:392)
  23. ==6391== by 0x5B2952E: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
  24. ==6391== by 0x401183: test() (classifier_lda.cpp:47)
  25. ==6391== by 0x401376: main (classifier_lda.cpp:63)
  26. ==6391== Address 0x9a3b8e0 is 0 bytes after a block of size 16 alloc'd
  27. ==6391== at 0x4C2B3F8: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  28. ==6391== by 0x58E1E9C: shogun::sg_malloc(unsigned long) (memory.cpp:153)
  29. ==6391== by 0x5752A3D: double* shogun::sg_generic_malloc<double>(unsigned long) (memory.h:79)
  30. ==6391== by 0x5889011: shogun::SGVector<double>::SGVector(int, bool) (SGVector.cpp:43)
  31. ==6391== by 0x5A7EAEB: shogun::CMCLDA::train_machine(shogun::CFeatures*) (MCLDA.cpp:376)
  32. ==6391== by 0x5B2952E: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
  33. ==6391== by 0x401183: test() (classifier_lda.cpp:47)
  34. ==6391== by 0x401376: main (classifier_lda.cpp:63)
  35. ==6391==
  36. 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]
  37. ==6391==
  38. ==6391== HEAP SUMMARY:
  39. ==6391== in use at exit: 0 bytes in 0 blocks
  40. ==6391== total heap usage: 772 allocs, 772 frees, 117,776 bytes allocated
  41. ==6391==
  42. ==6391== All heap blocks were freed -- no leaks are possible
  43. ==6391==
  44. ==6391== For counts of detected and suppressed errors, rerun with: -v
  45. ==6391== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 2 from 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement