Skip to content

Instantly share code, notes, and snippets.

@van51
Last active December 24, 2015 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save van51/6733523 to your computer and use it in GitHub Desktop.
Save van51/6733523 to your computer and use it in GitHub Desktop.
user@okeanos:~$ valgrind ./webspam_example
==30295== Memcheck, a memory error detector
==30295== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seauser@okeanos:~$ valgrind ./webspam_example
==10090== Memcheck, a memory error detector
==10090== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==10090== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==10090== Command: ./webspam_example
==10090==
Loading data..
Loading data
Data loaded
Preprocessing
Preprocessing took 99.860000s
kerneling
kerneling took 6.130000
Starting training
==10090== Invalid read of size 8
==10090== at 0x4C2E890: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10090== by 0x5FA199C: shogun::DynArray<double>::set_array(double const*, int, int) (DynArray.h:427)
==10090== by 0x5FA0B6F: shogun::CDynamicArray<double>::set_array(double*, int, int) (DynamicArray.h:420)
==10090== by 0x674BC94: shogun::CCommUlongStringKernel::add_to_normal(int, double) (CommUlongStringKernel.cpp:203)
==10090== by 0x658D32D: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==10090== by 0x6589710: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==10090== by 0x6587F2E: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==10090== by 0x65868E8: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==10090== by 0x663E453: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==10090== by 0x403B37: main (webspam_example.cpp:165)
==10090== Address 0xe1601b8 is 0 bytes after a block of size 61,160 alloc'd
==10090== at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10090== by 0x6313F9E: shogun::sg_malloc(unsigned long) (memory.cpp:204)
==10090== by 0x5EBD902: double* shogun::sg_generic_malloc<double>(unsigned long) (memory.h:80)
==10090== by 0x674B91B: shogun::CCommUlongStringKernel::add_to_normal(int, double) (CommUlongStringKernel.cpp:158)
==10090== by 0x658D32D: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==10090== by 0x6589710: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==10090== by 0x6587F2E: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==10090== by 0x65868E8: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==10090== by 0x663E453: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==10090== by 0x403B37: main (webspam_example.cpp:165)
==10090==
==10090== Invalid read of size 8
==10090== at 0x4C2E89E: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10090== by 0x5FA199C: shogun::DynArray<double>::set_array(double const*, int, int) (DynArray.h:427)
==10090== by 0x5FA0B6F: shogun::CDynamicArray<double>::set_array(double*, int, int) (DynamicArray.h:420)
==10090== by 0x674BC94: shogun::CCommUlongStringKernel::add_to_normal(int, double) (CommUlongStringKernel.cpp:203)
==10090== by 0x658D32D: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==10090== by 0x6589710: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==10090== by 0x6587F2E: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==10090== by 0x65868E8: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==10090== by 0x663E453: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==10090== by 0x403B37: main (webspam_example.cpp:165)
==10090== Address 0xe1601c0 is 8 bytes after a block of size 61,160 alloc'd
==10090== at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10090== by 0x6313F9E: shogun::sg_malloc(unsigned long) (memory.cpp:204)
==10090== by 0x5EBD902: double* shogun::sg_generic_malloc<double>(unsigned long) (memory.h:80)
==10090== by 0x674B91B: shogun::CCommUlongStringKernel::add_to_normal(int, double) (CommUlongStringKernel.cpp:158)
==10090== by 0x658D32D: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==10090== by 0x6589710: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==10090== by 0x6587F2E: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==10090== by 0x65868E8: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==10090== by 0x663E453: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==10090== by 0x403B37: main (webspam_example.cpp:165)
==10090==
==10090== Invalid read of size 8
==10090== at 0x4C2E98A: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10090== by 0x5FA199C: shogun::DynArray<double>::set_array(double const*, int, int) (DynArray.h:427)
==10090== by 0x5FA0B6F: shogun::CDynamicArray<double>::set_array(double*, int, int) (DynamicArray.h:420)
==10090== by 0x674BC94: shogun::CCommUlongStringKernel::add_to_normal(int, double) (CommUlongStringKernel.cpp:203)
==10090== by 0x658D32D: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==10090== by 0x6589710: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==10090== by 0x6587F2E: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==10090== by 0x65868E8: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==10090== by 0x663E453: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==10090== by 0x403B37: main (webspam_example.cpp:165)
==10090== Address 0x1562b418 is 8 bytes before a block of size 389,280 alloc'd
==10090== at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10090== by 0x6313F9E: shogun::sg_malloc(unsigned long) (memory.cpp:204)
==10090== by 0x5F1250E: unsigned long* shogun::sg_generic_malloc<unsigned long>(unsigned long) (memory.h:80)
==10090== by 0x674CE4B: shogun::DynArray<unsigned long>::set_array(unsigned long const*, int, int) (DynArray.h:424)
==10090== by 0x674CC47: shogun::CDynamicArray<unsigned long>::set_array(unsigned long*, int, int) (DynamicArray.h:420)
==10090== by 0x674BC60: shogun::CCommUlongStringKernel::add_to_normal(int, double) (CommUlongStringKernel.cpp:202)
==10090== by 0x658D32D: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==10090== by 0x6589710: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==10090== by 0x6587F2E: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==10090== by 0x65868E8: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==10090== by 0x663E453: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==10090== by 0x403B37: main (webspam_example.cpp:165)
==10090==
==10090== Invalid read of size 8
==10090== at 0x4C2E978: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10090== by 0x5FA199C: shogun::DynArray<double>::set_array(double const*, int, int) (DynArray.h:427)
==10090== by 0x5FA0B6F: shogun::CDynamicArray<double>::set_array(double*, int, int) (DynamicArray.h:420)
==10090== by 0x674BC94: shogun::CCommUlongStringKernel::add_to_normal(int, double) (CommUlongStringKernel.cpp:203)
==10090== by 0x658D32D: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==10090== by 0x6589710: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==10090== by 0x6587F2E: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==10090== by 0x65868E8: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==10090== by 0x663E453: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==10090== by 0x403B37: main (webspam_example.cpp:165)
==10090== Address 0x1562b408 is 24 bytes before a block of size 389,280 alloc'd
==10090== at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10090== by 0x6313F9E: shogun::sg_malloc(unsigned long) (memory.cpp:204)
==10090== by 0x5F1250E: unsigned long* shogun::sg_generic_malloc<unsigned long>(unsigned long) (memory.h:80)
==10090== by 0x674CE4B: shogun::DynArray<unsigned long>::set_array(unsigned long const*, int, int) (DynArray.h:424)
==10090== by 0x674CC47: shogun::CDynamicArray<unsigned long>::set_array(unsigned long*, int, int) (DynamicArray.h:420)
==10090== by 0x674BC60: shogun::CCommUlongStringKernel::add_to_normal(int, double) (CommUlongStringKernel.cpp:202)
==10090== by 0x658D32D: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==10090== by 0x6589710: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==10090== by 0x6587F2E: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==10090== by 0x65868E8: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==10090== by 0x663E453: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==10090== by 0x403B37: main (webspam_example.cpp:165)
==10090==
==10090== Source and destination overlap in memcpy(0x1ed83a90, 0x1ec3f7a0, 1349576)
==10090== at 0x4C2E820: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10090== by 0x5FA199C: shogun::DynArray<double>::set_array(double const*, int, int) (DynArray.h:427)
==10090== by 0x5FA0B6F: shogun::CDynamicArray<double>::set_array(double*, int, int) (DynamicArray.h:420)
==10090== by 0x674BC94: shogun::CCommUlongStringKernel::add_to_normal(int, double) (CommUlongStringKernel.cpp:203)
==10090== by 0x658D32D: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==10090== by 0x6589710: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==10090== by 0x6587F2E: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==10090== by 0x65868E8: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==10090== by 0x663E453: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==10090== by 0x403B37: main (webspam_example.cpp:165)
==10090==
==10090==
==10090== Process terminating with default action of signal 11 (SIGSEGV)
==10090== Access not within mapped region at address 0x326E9000
==10090== at 0x4C2E89E: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10090== by 0x5FA199C: shogun::DynArray<double>::set_array(double const*, int, int) (DynArray.h:427)
==10090== by 0x5FA0B6F: shogun::CDynamicArray<double>::set_array(double*, int, int) (DynamicArray.h:420)
==10090== by 0x674BC94: shogun::CCommUlongStringKernel::add_to_normal(int, double) (CommUlongStringKernel.cpp:203)
==10090== by 0x658D32D: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==10090== by 0x6589710: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==10090== by 0x6587F2E: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==10090== by 0x65868E8: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==10090== by 0x663E453: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==10090== by 0x403B37: main (webspam_example.cpp:165)
==10090== If you believe this happened as a result of a stack
==10090== overflow in your program's main thread (unlikely but
==10090== possible), you can try to increase the size of the
==10090== main thread stack using the --main-stacksize= flag.
==10090== The main thread stack size used in this run was 8388608.
==10090==
==10090== HEAP SUMMARY:
==10090== in use at exit: 527,443,598 bytes in 1,749 blocks
==10090== total heap usage: 10,627 allocs, 8,878 frees, 1,068,454,521 bytes allocated
==10090==
==10090== LEAK SUMMARY:
==10090== definitely lost: 387,450,168 bytes in 480 blocks
==10090== indirectly lost: 5,636 bytes in 19 blocks
==10090== possibly lost: 18,591,423 bytes in 34 blocks
==10090== still reachable: 121,396,371 bytes in 1,216 blocks
==10090== suppressed: 0 bytes in 0 blocks
==10090== Rerun with --leak-check=full to see details of leaked memory
==10090==
==10090== For counts of detected and suppressed errors, rerun with: -v
==10090== ERROR SUMMARY: 946597 errors from 5 contexts (suppressed: 2 from 2)
Segmentation fault (core dumped)ward et al.
==30295== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==30295== Command: ./webspam_example
==30295==
Loading data..
Loading data
Data loaded
Preprocessing
Preprocessing took 17.910000s
kerneling
kerneling took 2.500000
Starting training
==30295== Invalid read of size 8
==30295== at 0x4C2E890: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30295== by 0x609139F: shogun::CCommUlongStringKernel::add_to_normal(int, double) (string3.h:51)
==30295== by 0x5D657E2: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==30295== by 0x5D66AB7: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==30295== by 0x5D69A5C: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==30295== by 0x5D6D3CF: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==30295== by 0x5EAE7A0: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==30295== by 0x403897: main (in /home/user/webspam_example)
==30295== Address 0xd7a91b8 is 0 bytes after a block of size 61,160 alloc'd
==30295== at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30295== by 0x593F163: shogun::sg_malloc(unsigned long) (memory.cpp:204)
==30295== by 0x6090827: shogun::CCommUlongStringKernel::add_to_normal(int, double) (memory.h:80)
==30295== by 0x5D657E2: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==30295== by 0x5D66AB7: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==30295== by 0x5D69A5C: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==30295== by 0x5D6D3CF: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==30295== by 0x5EAE7A0: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==30295== by 0x403897: main (in /home/user/webspam_example)
==30295==
==30295== Invalid read of size 8
==30295== at 0x4C2E89E: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30295== by 0x609139F: shogun::CCommUlongStringKernel::add_to_normal(int, double) (string3.h:51)
==30295== by 0x5D657E2: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==30295== by 0x5D66AB7: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==30295== by 0x5D69A5C: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==30295== by 0x5D6D3CF: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==30295== by 0x5EAE7A0: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==30295== by 0x403897: main (in /home/user/webspam_example)
==30295== Address 0xd7a91c0 is 8 bytes after a block of size 61,160 alloc'd
==30295== at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30295== by 0x593F163: shogun::sg_malloc(unsigned long) (memory.cpp:204)
==30295== by 0x6090827: shogun::CCommUlongStringKernel::add_to_normal(int, double) (memory.h:80)
==30295== by 0x5D657E2: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==30295== by 0x5D66AB7: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==30295== by 0x5D69A5C: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==30295== by 0x5D6D3CF: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==30295== by 0x5EAE7A0: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==30295== by 0x403897: main (in /home/user/webspam_example)
==30295==
==30295== Invalid read of size 8
==30295== at 0x4C2E98A: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30295== by 0x609139F: shogun::CCommUlongStringKernel::add_to_normal(int, double) (string3.h:51)
==30295== by 0x5D657E2: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==30295== by 0x5D66AB7: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==30295== by 0x5D69A5C: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==30295== by 0x5D6D3CF: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==30295== by 0x5EAE7A0: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==30295== by 0x403897: main (in /home/user/webspam_example)
==30295== Address 0x14c74418 is 8 bytes before a block of size 389,280 alloc'd
==30295== at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30295== by 0x593F163: shogun::sg_malloc(unsigned long) (memory.cpp:204)
==30295== by 0x60924BC: shogun::CCommUlongStringKernel::add_to_normal(int, double) (memory.h:80)
==30295== by 0x5D657E2: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==30295== by 0x5D66AB7: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==30295== by 0x5D69A5C: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==30295== by 0x5D6D3CF: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==30295== by 0x5EAE7A0: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==30295== by 0x403897: main (in /home/user/webspam_example)
==30295==
==30295== Invalid read of size 8
==30295== at 0x4C2E978: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30295== by 0x609139F: shogun::CCommUlongStringKernel::add_to_normal(int, double) (string3.h:51)
==30295== by 0x5D657E2: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==30295== by 0x5D66AB7: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==30295== by 0x5D69A5C: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==30295== by 0x5D6D3CF: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==30295== by 0x5EAE7A0: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==30295== by 0x403897: main (in /home/user/webspam_example)
==30295== Address 0x14c74408 is 24 bytes before a block of size 389,280 alloc'd
==30295== at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30295== by 0x593F163: shogun::sg_malloc(unsigned long) (memory.cpp:204)
==30295== by 0x60924BC: shogun::CCommUlongStringKernel::add_to_normal(int, double) (memory.h:80)
==30295== by 0x5D657E2: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==30295== by 0x5D66AB7: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==30295== by 0x5D69A5C: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==30295== by 0x5D6D3CF: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==30295== by 0x5EAE7A0: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==30295== by 0x403897: main (in /home/user/webspam_example)
==30295==
==30295== Source and destination overlap in memcpy(0x1e3cca90, 0x1e2887a0, 1349576)
==30295== at 0x4C2E820: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30295== by 0x609139F: shogun::CCommUlongStringKernel::add_to_normal(int, double) (string3.h:51)
==30295== by 0x5D657E2: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==30295== by 0x5D66AB7: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==30295== by 0x5D69A5C: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==30295== by 0x5D6D3CF: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==30295== by 0x5EAE7A0: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==30295== by 0x403897: main (in /home/user/webspam_example)
==30295==
==30295==
==30295== Process terminating with default action of signal 11 (SIGSEGV)
==30295== Access not within mapped region at address 0x31D32000
==30295== at 0x4C2E89E: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30295== by 0x609139F: shogun::CCommUlongStringKernel::add_to_normal(int, double) (string3.h:51)
==30295== by 0x5D657E2: shogun::CSVMLight::update_linear_component(int*, int*, int*, double*, double*, int*, int, double*, double*, double*) (SVMLight.cpp:1446)
==30295== by 0x5D66AB7: shogun::CSVMLight::optimize_to_convergence(int*, int*, int, shogun::SHRINK_STATE*, int*, double*, double*, double*, shogun::TIMING*, double*, int, int) (SVMLight.cpp:781)
==30295== by 0x5D69A5C: shogun::CSVMLight::svm_learn() (SVMLight.cpp:492)
==30295== by 0x5D6D3CF: shogun::CSVMLight::train_machine(shogun::CFeatures*) (SVMLight.cpp:263)
==30295== by 0x5EAE7A0: shogun::CMachine::train(shogun::CFeatures*) (Machine.cpp:67)
==30295== by 0x403897: main (in /home/user/webspam_example)
==30295== If you believe this happened as a result of a stack
==30295== overflow in your program's main thread (unlikely but
==30295== possible), you can try to increase the size of the
==30295== main thread stack using the --main-stacksize= flag.
==30295== The main thread stack size used in this run was 8388608.
==30295==
==30295== HEAP SUMMARY:
==30295== in use at exit: 527,443,598 bytes in 1,749 blocks
==30295== total heap usage: 10,627 allocs, 8,878 frees, 1,068,454,521 bytes allocated
==30295==
==30295== LEAK SUMMARY:
==30295== definitely lost: 392,415,240 bytes in 479 blocks
==30295== indirectly lost: 5,636 bytes in 19 blocks
==30295== possibly lost: 13,626,351 bytes in 35 blocks
==30295== still reachable: 121,396,371 bytes in 1,216 blocks
==30295== suppressed: 0 bytes in 0 blocks
==30295== Rerun with --leak-check=full to see details of leaked memory
==30295==
==30295== For counts of detected and suppressed errors, rerun with: -v
==30295== ERROR SUMMARY: 946597 errors from 5 contexts (suppressed: 2 from 2)
Segmentation fault (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment