Skip to content
Pavel Senin edited this page Feb 4, 2018 · 1 revision

psenin@psenin-Q304UAK:~/git/jmotif-R/tests$ R -d valgrind -f testthat.R
5709 Memcheck, a memory error detector
5709 Copyright © 2002-2015, and GNU GPL’d, by Julian Seward et al.
5709 Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
5709 Command: /usr/lib/R/bin/exec/R -f testthat.R
5709

R version 3.4.3 (2017-11-30) — “Kite-Eating Tree”
Copyright © 2017 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type ‘license()’ or ‘licence()’ for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type ‘contributors()’ for more information and
‘citation()’ on how to cite R or R packages in publications.

Type ‘demo()’ for some demos, ‘help()’ for on-line help, or
‘help.start()’ for an HTML browser interface to help.
Type ‘q()’ to quit R.

> library(testthat)
> library(jmotif)
Loading required package: Rcpp
>
> test_check(“jmotif”)
5709 Invalid read of size 8
5709 at 0×4C326D6: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
5709 by 0xE086AE2: __copy_m (stl_algobase.h:368)
5709 by 0xE086AE2: __copy_move_a<false, double const*, double*> (stl_algobase.h:386)
5709 by 0xE086AE2: __copy_move_a2<false, gnu_cxx::normal_iterator<double const*, std::vector >, double*> (stl_algobase.h:424)
5709 by 0xE086AE2: copy<gnu_cxx::normal_iterator<double const*, std::vector >, double*> (stl_algobase.h:456)
5709 by 0xE086AE2: uninit_copy<gnu_cxx::normal_iterator<double const*, std::vector >, double*> (stl_uninitialized.h:101)
5709 by 0xE086AE2: uninitialized_copy<
gnu_cxx::__normal_iterator<double const*, std::vector >, double*> (stl_uninitialized.h:134)
5709 by 0xE086AE2: uninitialized_copy_a<gnu_cxx::__normal_iterator<double const*, std::vector >, double*, double> (stl_uninitialized.h:289)
5709 by 0xE086AE2: M_range_initialize<gnu_cxx::normal_iterator<double const*, std::vector > > (stlvector.h:1326)
5709 by 0xE086AE2: M_initialize_dispatch<gnu_cxx::normal_iterator<double const*, std::vector > > (stl_vector.h:1299)
5709 by 0xE086AE2: vector<
gnu_cxx::normal_iterator<double const*, std::vector > > (stlvector.h:414)
5709 by 0xE086AE2: _paa2(std::vector<double, std::allocator >, int) (paa.cpp:120)
5709 by 0xE08FEC0: normalized_distance(int, int, int, int, std::vector<double, std::allocator >*) (rra.cpp:45)
5709 by 0xE090C9C: find_best_rra_discord(std::vector<double, std::allocator >*, int, std::unordered_map<int, rule_record*, std::hash, std::equal_to, std::allocator<std::pair<int const, rule_record*> > >*, std::vector<int, std::allocator >*, std::vector<rule_interval, std::allocator >*, std::unordered_set<int, std::hash, std::equal_to, std::allocator >*) (rra.cpp:246)
5709 by 0xE091CFC: find_discords
rra(Rcpp::Vector<14, Rcpp::PreserveStorage>, int, int, int, Rcpp::Vector<16, Rcpp::PreserveStorage>, double, int) (rra.cpp:478)
5709 by 0xE0741B1: jmotif_find_discords_rra (RcppExports.cpp:100)
5709 by 0×4F0C7A9: ? (in /usr/lib/R/lib/libR.so)
5709 by 0×4F0CC9B: ?
(in /usr/lib/R/lib/libR.so)
5709 by 0×4F4A0AC: Rf_eval (in /usr/lib/R/lib/libR.so)
5709 by 0×4F4CB4D: ? (in /usr/lib/R/lib/libR.so)
5709 by 0×4F49E8B: Rf_eval (in /usr/lib/R/lib/libR.so)
5709 by 0×4F4BEAE: ?
(in /usr/lib/R/lib/libR.so)
5709 Address 0xdef59c8 is 0 bytes after a block of size 888 alloc’d
5709 at 0×4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
5709 by 0xE08FE7B: allocate (new_allocator.h:111)
5709 by 0xE08FE7B: allocate (alloc
traits.h:436)
5709 by 0xE08FE7B: M_allocate (stlvector.h:172)
5709 by 0xE08FE7B: M_create_storage (stlvector.h:187)
5709 by 0xE08FE7B: Vector_base (stl_vector.h:138)
5709 by 0xE08FE7B: vector (stl
vector.h:328)
5709 by 0xE08FE7B: normalized_distance(int, int, int, int, std::vector<double, std::allocator >*) (rra.cpp:45)
5709 by 0xE090C9C: find_best_rra_discord(std::vector<double, std::allocator >*, int, std::unordered_map<int, rule_record*, std::hash, std::equal_to, std::allocator<std::pair<int const, rule_record*> > >*, std::vector<int, std::allocator >*, std::vector<rule_interval, std::allocator >*, std::unordered_set<int, std::hash, std::equal_to, std::allocator >*) (rra.cpp:246)
5709 by 0xE091CFC: find_discords
rra(Rcpp::Vector<14, Rcpp::PreserveStorage>, int, int, int, Rcpp::Vector<16, Rcpp::PreserveStorage>, double, int) (rra.cpp:478)
5709 by 0xE0741B1: jmotif_find_discords_rra (RcppExports.cpp:100)
5709 by 0×4F0C7A9: ? (in /usr/lib/R/lib/libR.so)
5709 by 0×4F0CC9B: ?
(in /usr/lib/R/lib/libR.so)
5709 by 0×4F4A0AC: Rf_eval (in /usr/lib/R/lib/libR.so)
5709 by 0×4F4CB4D: ? (in /usr/lib/R/lib/libR.so)
5709 by 0×4F49E8B: Rf_eval (in /usr/lib/R/lib/libR.so)
5709 by 0×4F4BEAE: ?
(in /usr/lib/R/lib/libR.so)
5709 by 0×4F49C55: Rf_eval (in /usr/lib/R/lib/libR.so)
5709
5709 Invalid read of size 8
5709 at 0×4C326D6: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload
memcheck-amd64-linux.so)
5709 by 0xE086AE2: __copy_m (stl_algobase.h:368)
5709 by 0xE086AE2: __copy_move_a<false, double const*, double*> (stl_algobase.h:386)
5709 by 0xE086AE2: __copy_move_a2<false, gnu_cxx::normal_iterator<double const*, std::vector >, double*> (stl_algobase.h:424)
5709 by 0xE086AE2: copy<gnu_cxx::normal_iterator<double const*, std::vector >, double*> (stl_algobase.h:456)
5709 by 0xE086AE2: uninit_copy<gnu_cxx::normal_iterator<double const*, std::vector >, double*> (stl_uninitialized.h:101)
5709 by 0xE086AE2: uninitialized_copy<
gnu_cxx::__normal_iterator<double const*, std::vector >, double*> (stl_uninitialized.h:134)
5709 by 0xE086AE2: uninitialized_copy_a<gnu_cxx::__normal_iterator<double const*, std::vector >, double*, double> (stl_uninitialized.h:289)
5709 by 0xE086AE2: M_range_initialize<gnu_cxx::normal_iterator<double const*, std::vector > > (stlvector.h:1326)
5709 by 0xE086AE2: M_initialize_dispatch<gnu_cxx::normal_iterator<double const*, std::vector > > (stl_vector.h:1299)
5709 by 0xE086AE2: vector<
gnu_cxx::normal_iterator<double const*, std::vector > > (stlvector.h:414)
5709 by 0xE086AE2: _paa2(std::vector<double, std::allocator >, int) (paa.cpp:120)
5709 by 0xE08FC89: normalized_distance(int, int, int, int, std::vector<double, std::allocator >*) (rra.cpp:58)
5709 by 0xE090C9C: find_best_rra_discord(std::vector<double, std::allocator >*, int, std::unordered_map<int, rule_record*, std::hash, std::equal_to, std::allocator<std::pair<int const, rule_record*> > >*, std::vector<int, std::allocator >*, std::vector<rule_interval, std::allocator >*, std::unordered_set<int, std::hash, std::equal_to, std::allocator >*) (rra.cpp:246)
5709 by 0xE091CFC: find_discords
rra(Rcpp::Vector<14, Rcpp::PreserveStorage>, int, int, int, Rcpp::Vector<16, Rcpp::PreserveStorage>, double, int) (rra.cpp:478)
5709 by 0xE0741B1: jmotif_find_discords_rra (RcppExports.cpp:100)
5709 by 0×4F0C7A9: ? (in /usr/lib/R/lib/libR.so)
5709 by 0×4F0CC9B: ?
(in /usr/lib/R/lib/libR.so)
5709 by 0×4F4A0AC: Rf_eval (in /usr/lib/R/lib/libR.so)
5709 by 0×4F4CB4D: ? (in /usr/lib/R/lib/libR.so)
5709 by 0×4F49E8B: Rf_eval (in /usr/lib/R/lib/libR.so)
5709 by 0×4F4BEAE: ?
(in /usr/lib/R/lib/libR.so)
5709 Address 0×100b0cb0 is 0 bytes after a block of size 896 alloc’d
5709 at 0×4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
5709 by 0xE08FC42: allocate (new_allocator.h:111)
5709 by 0xE08FC42: allocate (alloc
traits.h:436)
5709 by 0xE08FC42: M_allocate (stlvector.h:172)
5709 by 0xE08FC42: M_create_storage (stlvector.h:187)
5709 by 0xE08FC42: Vector_base (stl_vector.h:138)
5709 by 0xE08FC42: vector (stl
vector.h:328)
5709 by 0xE08FC42: normalized_distance(int, int, int, int, std::vector<double, std::allocator >*) (rra.cpp:58)
5709 by 0xE090C9C: find_best_rra_discord(std::vector<double, std::allocator >*, int, std::unordered_map<int, rule_record*, std::hash, std::equal_to, std::allocator<std::pair<int const, rule_record*> > >*, std::vector<int, std::allocator >*, std::vector<rule_interval, std::allocator >*, std::unordered_set<int, std::hash, std::equal_to, std::allocator >*) (rra.cpp:246)
5709 by 0xE091CFC: find_discords
rra(Rcpp::Vector<14, Rcpp::PreserveStorage>, int, int, int, Rcpp::Vector<16, Rcpp::PreserveStorage>, double, int) (rra.cpp:478)
5709 by 0xE0741B1: jmotif_find_discords_rra (RcppExports.cpp:100)
5709 by 0×4F0C7A9: ? (in /usr/lib/R/lib/libR.so)
5709 by 0×4F0CC9B: ?
(in /usr/lib/R/lib/libR.so)
5709 by 0×4F4A0AC: Rf_eval (in /usr/lib/R/lib/libR.so)
5709 by 0×4F4CB4D: ? (in /usr/lib/R/lib/libR.so)
5709 by 0×4F49E8B: Rf_eval (in /usr/lib/R/lib/libR.so)
5709 by 0×4F4BEAE: ?
(in /usr/lib/R/lib/libR.so)
5709 by 0×4F49C55: Rf
eval (in /usr/lib/R/lib/libR.so)
5709
testthat results ================
OK: 177 SKIPPED: 0 FAILED: 0
>
5709
5709 HEAP SUMMARY:
5709 in use at exit: 63,463,833 bytes in 45,133 blocks
5709 total heap usage: 12,228,199 allocs, 12,183,066 frees, 1,596,572,013 bytes allocated
5709
5709 LEAK SUMMARY:
5709 definitely lost: 266,211 bytes in 5,967 blocks
5709 indirectly lost: 511,616 bytes in 10,627 blocks
5709 possibly lost: 1,001 bytes in 8 blocks
5709 still reachable: 62,685,005 bytes in 28,531 blocks
5709 of which reachable via heuristic:
5709 stdstring : 65 bytes in 1 blocks
5709 suppressed: 0 bytes in 0 blocks
5709 Rerun with —leak-check=full to see details of leaked memory
5709
5709 For counts of detected and suppressed errors, rerun with: -v
5709 ERROR SUMMARY: 8726 errors from 2 contexts (suppressed: 0 from 0)

Clone this wiki locally