Skip to content

Instantly share code, notes, and snippets.

@Saurabh7
Created December 27, 2013 04:40
Show Gist options
  • Save Saurabh7/8142658 to your computer and use it in GitHub Desktop.
Save Saurabh7/8142658 to your computer and use it in GitHub Desktop.
new valgrind memcheck
==8490== Memcheck, a memory error detector
==8490== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==8490== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==8490== Command: ./a.out
==8490== Parent PID: 7809
==8490==
==8490==
==8490== HEAP SUMMARY:
==8490== in use at exit: 51,594 bytes in 998 blocks
==8490== total heap usage: 6,020 allocs, 5,022 frees, 21,223,490 bytes allocated
==8490==
==8490== 5,675 (760 direct, 4,915 indirect) bytes in 5 blocks are definitely lost in loss record 319 of 322
==8490== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8490== by 0x534B778: operator new(unsigned long) (memory.cpp:103)
==8490== by 0x55BC056: shogun::CFeatures::init() (Features.cpp:77)
==8490== by 0x55BBC93: shogun::CFeatures::CFeatures(shogun::CFeatures const&) (Features.cpp:33)
==8490== by 0x56907EF: shogun::CDotFeatures::CDotFeatures(shogun::CDotFeatures const&) (DotFeatures.cpp:50)
==8490== by 0x5535B35: shogun::CDenseFeatures<double>::CDenseFeatures(shogun::CDenseFeatures<double> const&) (DenseFeatures.cpp:30)
==8490== by 0x5535F0A: shogun::CDenseFeatures<double>::duplicate() const (DenseFeatures.cpp:66)
==8490== by 0x54613CF: shogun::CKNN::store_model_features() (KNN.cpp:456)
==8490== by 0x537751B: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:70)
==8490== by 0x54ADE92: shogun::CCrossValidation::evaluate_one_run() (CrossValidation.cpp:333)
==8490== by 0x54ACE14: shogun::CCrossValidation::evaluate() (CrossValidation.cpp:143)
==8490== by 0x40234E: test_cross_validation() (evaluation_cross_validation_knn.cpp:88)
==8490==
==8490== 8,783 (184 direct, 8,599 indirect) bytes in 1 blocks are definitely lost in loss record 320 of 322
==8490== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8490== by 0x534B778: operator new(unsigned long) (memory.cpp:103)
==8490== by 0x401F93: test_cross_validation() (evaluation_cross_validation_knn.cpp:40)
==8490== by 0x402598: main (evaluation_cross_validation_knn.cpp:108)
==8490==
==8490== 10,155 (760 direct, 9,395 indirect) bytes in 5 blocks are definitely lost in loss record 321 of 322
==8490== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8490== by 0x534B778: operator new(unsigned long) (memory.cpp:103)
==8490== by 0x55BC039: shogun::CFeatures::init() (Features.cpp:76)
==8490== by 0x55BBC93: shogun::CFeatures::CFeatures(shogun::CFeatures const&) (Features.cpp:33)
==8490== by 0x56907EF: shogun::CDotFeatures::CDotFeatures(shogun::CDotFeatures const&) (DotFeatures.cpp:50)
==8490== by 0x5535B35: shogun::CDenseFeatures<double>::CDenseFeatures(shogun::CDenseFeatures<double> const&) (DenseFeatures.cpp:30)
==8490== by 0x5535F0A: shogun::CDenseFeatures<double>::duplicate() const (DenseFeatures.cpp:66)
==8490== by 0x54613CF: shogun::CKNN::store_model_features() (KNN.cpp:456)
==8490== by 0x537751B: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:70)
==8490== by 0x54ADE92: shogun::CCrossValidation::evaluate_one_run() (CrossValidation.cpp:333)
==8490== by 0x54ACE14: shogun::CCrossValidation::evaluate() (CrossValidation.cpp:143)
==8490== by 0x40234E: test_cross_validation() (evaluation_cross_validation_knn.cpp:88)
==8490==
==8490== 26,817 (920 direct, 25,897 indirect) bytes in 5 blocks are definitely lost in loss record 322 of 322
==8490== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8490== by 0x534B778: operator new(unsigned long) (memory.cpp:103)
==8490== by 0x5535EF8: shogun::CDenseFeatures<double>::duplicate() const (DenseFeatures.cpp:66)
==8490== by 0x54613CF: shogun::CKNN::store_model_features() (KNN.cpp:456)
==8490== by 0x537751B: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:70)
==8490== by 0x54ADE92: shogun::CCrossValidation::evaluate_one_run() (CrossValidation.cpp:333)
==8490== by 0x54ACE14: shogun::CCrossValidation::evaluate() (CrossValidation.cpp:143)
==8490== by 0x40234E: test_cross_validation() (evaluation_cross_validation_knn.cpp:88)
==8490== by 0x402598: main (evaluation_cross_validation_knn.cpp:108)
==8490==
==8490== LEAK SUMMARY:
==8490== definitely lost: 2,624 bytes in 16 blocks
==8490== indirectly lost: 48,806 bytes in 973 blocks
==8490== possibly lost: 0 bytes in 0 blocks
==8490== still reachable: 164 bytes in 9 blocks
==8490== suppressed: 0 bytes in 0 blocks
==8490== Reachable blocks (those to which a pointer was found) are not shown.
==8490== To see them, rerun with: --leak-check=full --show-reachable=yes
==8490==
==8490== For counts of detected and suppressed errors, rerun with: -v
==8490== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 2 from 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment