==4126789== Memcheck, a memory error detector ==4126789== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==4126789== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==4126789== Command: /data/blackswan/ripley/R/R-devel-vg/bin/exec/R -f testthat.R --restore --save --no-readline --vanilla ==4126789== R Under development (unstable) (2023-01-31 r83739) -- "Unsuffered Consequences" Copyright (C) 2023 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. 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(MDP2) > > test_check("MDP2") ==4126789== Invalid read of size 1 ==4126789== at 0x4846656: __strlen_sse2 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:496) ==4126789== by 0x18CED677: length (/usr/include/c++/11/bits/char_traits.h:399) ==4126789== by 0x18CED677: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:536) ==4126789== by 0x18CF155E: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:103) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0x15bc051e is 0 bytes after a block of size 30 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF14F7: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:94) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x4846656: __strlen_sse2 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:496) ==4126789== by 0x18CF1591: strrchr (/usr/include/string.h:246) ==4126789== by 0x18CF1591: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:104) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== by 0x4F65ED: R_execClosure (svn/R-devel/src/main/eval.c:2183) ==4126789== Address 0x15bc051e is 0 bytes after a block of size 30 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF14F7: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:94) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x4846656: __strlen_sse2 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:496) ==4126789== by 0x18CED677: length (/usr/include/c++/11/bits/char_traits.h:399) ==4126789== by 0x18CED677: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:536) ==4126789== by 0x18CF1B7E: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:149) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0x149825a4 is 0 bytes after a block of size 20 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1ABF: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:136) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x4846656: __strlen_sse2 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:496) ==4126789== by 0x18CF1BB3: strrchr (/usr/include/string.h:246) ==4126789== by 0x18CF1BB3: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:150) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== by 0x4F65ED: R_execClosure (svn/R-devel/src/main/eval.c:2183) ==4126789== Address 0x149825a4 is 0 bytes after a block of size 20 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1ABF: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:136) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x4846656: __strlen_sse2 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:496) ==4126789== by 0x18CED677: length (/usr/include/c++/11/bits/char_traits.h:399) ==4126789== by 0x18CED677: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:536) ==4126789== by 0x18CF2561: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:217) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0x13e9b5ac is 0 bytes after a block of size 124 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1A6A: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:134) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x4846656: __strlen_sse2 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:496) ==4126789== by 0x18CF257E: strrchr (/usr/include/string.h:246) ==4126789== by 0x18CF257E: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:218) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== by 0x4F65ED: R_execClosure (svn/R-devel/src/main/eval.c:2183) ==4126789== Address 0x13e9b5ac is 0 bytes after a block of size 124 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1A6A: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:134) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x4846664: __strlen_sse2 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:496) ==4126789== by 0x18CED677: length (/usr/include/c++/11/bits/char_traits.h:399) ==4126789== by 0x18CED677: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:536) ==4126789== by 0x18CF1B7E: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:149) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0x150858d5 is 1 bytes after a block of size 20 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1ABF: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:136) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 2 ==4126789== at 0x4847840: memcpy@GLIBC_2.2.5 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:1118) ==4126789== by 0x18CED6EB: copy (/usr/include/c++/11/bits/char_traits.h:437) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:359) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:354) ==4126789== by 0x18CED6EB: _S_copy_chars (/usr/include/c++/11/bits/basic_string.h:406) ==4126789== by 0x18CED6EB: _M_construct (/usr/include/c++/11/bits/basic_string.tcc:225) ==4126789== by 0x18CED6EB: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:539) ==4126789== by 0x18CF1B7E: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:149) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0x150858d4 is 0 bytes after a block of size 20 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1ABF: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:136) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 2 ==4126789== at 0x484784F: memcpy@GLIBC_2.2.5 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:1118) ==4126789== by 0x18CED6EB: copy (/usr/include/c++/11/bits/char_traits.h:437) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:359) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:354) ==4126789== by 0x18CED6EB: _S_copy_chars (/usr/include/c++/11/bits/basic_string.h:406) ==4126789== by 0x18CED6EB: _M_construct (/usr/include/c++/11/bits/basic_string.tcc:225) ==4126789== by 0x18CED6EB: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:539) ==4126789== by 0x18CF1B7E: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:149) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0x150858d8 is 4 bytes after a block of size 20 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1ABF: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:136) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x4846664: __strlen_sse2 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:496) ==4126789== by 0x18CF1BB3: strrchr (/usr/include/string.h:246) ==4126789== by 0x18CF1BB3: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:150) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== by 0x4F65ED: R_execClosure (svn/R-devel/src/main/eval.c:2183) ==4126789== Address 0x150858d5 is 1 bytes after a block of size 20 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1ABF: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:136) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x4846664: __strlen_sse2 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:496) ==4126789== by 0x18CED677: length (/usr/include/c++/11/bits/char_traits.h:399) ==4126789== by 0x18CED677: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:536) ==4126789== by 0x18CF2561: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:217) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0x163cfeb3 is 1 bytes after a block of size 82 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1A6A: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:134) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 2 ==4126789== at 0x4847840: memcpy@GLIBC_2.2.5 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:1118) ==4126789== by 0x18CED6EB: copy (/usr/include/c++/11/bits/char_traits.h:437) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:359) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:354) ==4126789== by 0x18CED6EB: _S_copy_chars (/usr/include/c++/11/bits/basic_string.h:406) ==4126789== by 0x18CED6EB: _M_construct (/usr/include/c++/11/bits/basic_string.tcc:225) ==4126789== by 0x18CED6EB: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:539) ==4126789== by 0x18CF2561: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:217) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0x163cfeb2 is 0 bytes after a block of size 82 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1A6A: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:134) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x4847870: memcpy@GLIBC_2.2.5 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:1118) ==4126789== by 0x18CED6EB: copy (/usr/include/c++/11/bits/char_traits.h:437) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:359) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:354) ==4126789== by 0x18CED6EB: _S_copy_chars (/usr/include/c++/11/bits/basic_string.h:406) ==4126789== by 0x18CED6EB: _M_construct (/usr/include/c++/11/bits/basic_string.tcc:225) ==4126789== by 0x18CED6EB: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:539) ==4126789== by 0x18CF2561: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:217) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0x163cfeb4 is 2 bytes after a block of size 82 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1A6A: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:134) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x4846664: __strlen_sse2 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:496) ==4126789== by 0x18CF257E: strrchr (/usr/include/string.h:246) ==4126789== by 0x18CF257E: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:218) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== by 0x4F65ED: R_execClosure (svn/R-devel/src/main/eval.c:2183) ==4126789== Address 0x163cfeb3 is 1 bytes after a block of size 82 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1A6A: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:134) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x4846664: __strlen_sse2 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:496) ==4126789== by 0x18CED677: length (/usr/include/c++/11/bits/char_traits.h:399) ==4126789== by 0x18CED677: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:536) ==4126789== by 0x18CF155E: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:103) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0xf422ee5 is 1 bytes after a block of size 260 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF14F7: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:94) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 2 ==4126789== at 0x4847840: memcpy@GLIBC_2.2.5 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:1118) ==4126789== by 0x18CED6EB: copy (/usr/include/c++/11/bits/char_traits.h:437) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:359) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:354) ==4126789== by 0x18CED6EB: _S_copy_chars (/usr/include/c++/11/bits/basic_string.h:406) ==4126789== by 0x18CED6EB: _M_construct (/usr/include/c++/11/bits/basic_string.tcc:225) ==4126789== by 0x18CED6EB: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:539) ==4126789== by 0x18CF155E: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:103) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0xf422ee4 is 0 bytes after a block of size 260 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF14F7: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:94) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 2 ==4126789== at 0x484784F: memcpy@GLIBC_2.2.5 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:1118) ==4126789== by 0x18CED6EB: copy (/usr/include/c++/11/bits/char_traits.h:437) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:359) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:354) ==4126789== by 0x18CED6EB: _S_copy_chars (/usr/include/c++/11/bits/basic_string.h:406) ==4126789== by 0x18CED6EB: _M_construct (/usr/include/c++/11/bits/basic_string.tcc:225) ==4126789== by 0x18CED6EB: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:539) ==4126789== by 0x18CF155E: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:103) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0xf422ee8 is 4 bytes after a block of size 260 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF14F7: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:94) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x4846664: __strlen_sse2 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:496) ==4126789== by 0x18CF1591: strrchr (/usr/include/string.h:246) ==4126789== by 0x18CF1591: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:104) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== by 0x4F65ED: R_execClosure (svn/R-devel/src/main/eval.c:2183) ==4126789== Address 0xf422ee5 is 1 bytes after a block of size 260 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF14F7: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:94) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x18CED68C: assign (/usr/include/c++/11/bits/char_traits.h:357) ==4126789== by 0x18CED68C: _S_copy (/usr/include/c++/11/bits/basic_string.h:357) ==4126789== by 0x18CED68C: _S_copy_chars (/usr/include/c++/11/bits/basic_string.h:406) ==4126789== by 0x18CED68C: _M_construct (/usr/include/c++/11/bits/basic_string.tcc:225) ==4126789== by 0x18CED68C: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:539) ==4126789== by 0x18CF155E: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:103) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== by 0x4F65ED: R_execClosure (svn/R-devel/src/main/eval.c:2183) ==4126789== Address 0x15c71284 is 0 bytes after a block of size 260 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF14F7: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:94) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x18CED68C: assign (/usr/include/c++/11/bits/char_traits.h:357) ==4126789== by 0x18CED68C: _S_copy (/usr/include/c++/11/bits/basic_string.h:357) ==4126789== by 0x18CED68C: _S_copy_chars (/usr/include/c++/11/bits/basic_string.h:406) ==4126789== by 0x18CED68C: _M_construct (/usr/include/c++/11/bits/basic_string.tcc:225) ==4126789== by 0x18CED68C: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:539) ==4126789== by 0x18CF1B7E: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:149) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== by 0x4F65ED: R_execClosure (svn/R-devel/src/main/eval.c:2183) ==4126789== Address 0xe94ed44 is 0 bytes after a block of size 20 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1ABF: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:136) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 2 ==4126789== at 0x484784F: memcpy@GLIBC_2.2.5 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:1118) ==4126789== by 0x18CED6EB: copy (/usr/include/c++/11/bits/char_traits.h:437) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:359) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:354) ==4126789== by 0x18CED6EB: _S_copy_chars (/usr/include/c++/11/bits/basic_string.h:406) ==4126789== by 0x18CED6EB: _M_construct (/usr/include/c++/11/bits/basic_string.tcc:225) ==4126789== by 0x18CED6EB: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:539) ==4126789== by 0x18CF2561: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:217) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0x19ab2d1e is 4 bytes after a block of size 90 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1A6A: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:134) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x4847870: memcpy@GLIBC_2.2.5 (/builddir/build/BUILD/valgrind-3.18.1/memcheck/../shared/vg_replace_strmem.c:1118) ==4126789== by 0x18CED6EB: copy (/usr/include/c++/11/bits/char_traits.h:437) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:359) ==4126789== by 0x18CED6EB: _S_copy (/usr/include/c++/11/bits/basic_string.h:354) ==4126789== by 0x18CED6EB: _S_copy_chars (/usr/include/c++/11/bits/basic_string.h:406) ==4126789== by 0x18CED6EB: _M_construct (/usr/include/c++/11/bits/basic_string.tcc:225) ==4126789== by 0x18CED6EB: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:539) ==4126789== by 0x18CF155E: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:103) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== Address 0x157e3e1a is 2 bytes after a block of size 24 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF14F7: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:94) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== Invalid read of size 1 ==4126789== at 0x18CED68C: assign (/usr/include/c++/11/bits/char_traits.h:357) ==4126789== by 0x18CED68C: _S_copy (/usr/include/c++/11/bits/basic_string.h:357) ==4126789== by 0x18CED68C: _S_copy_chars (/usr/include/c++/11/bits/basic_string.h:406) ==4126789== by 0x18CED68C: _M_construct (/usr/include/c++/11/bits/basic_string.tcc:225) ==4126789== by 0x18CED68C: std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&) [clone .constprop.0] (/usr/include/c++/11/bits/basic_string.h:539) ==4126789== by 0x18CF2561: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:217) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== by 0x4F65ED: R_execClosure (svn/R-devel/src/main/eval.c:2183) ==4126789== Address 0x190eac00 is 0 bytes after a block of size 32 alloc'd ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1A6A: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:134) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== [ FAIL 0 | WARN 0 | SKIP 0 | PASS 54 ] > > proc.time() user system elapsed 267.273 2.006 268.957 ==4126789== ==4126789== HEAP SUMMARY: ==4126789== in use at exit: 269,043,792 bytes in 54,776 blocks ==4126789== total heap usage: 500,003 allocs, 445,227 frees, 705,916,910 bytes allocated ==4126789== ==4126789== 0 bytes in 1 blocks are definitely lost in loss record 1 of 4,185 ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF14F7: HMDPReader::AddStates(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:94) ==4126789== by 0x18CF93DE: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:28) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== 0 bytes in 1 blocks are definitely lost in loss record 2 of 4,185 ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF1A6A: HMDPReader::AddActions(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:134) ==4126789== by 0x18CF945F: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:29) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== 0 bytes in 45 blocks are definitely lost in loss record 3 of 4,185 ==4126789== at 0x484222F: operator new[](unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:640) ==4126789== by 0x18CFCE74: unsigned int HMDPReader::ReadBinary(std::__cxx11::basic_string, std::allocator >, char*&) (packages/tests-vg/MDP2/src/hmdp.cpp:55) ==4126789== by 0x18CF900A: HMDPReader::AddExternal(std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:416) ==4126789== by 0x18CF94A3: HMDPReader::HMDPReader(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, HMDP*, std::__cxx11::basic_ostringstream, std::allocator >&) (packages/tests-vg/MDP2/src/hmdp.cpp:30) ==4126789== by 0x18CF979E: HMDP::LoadBin(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >) (packages/tests-vg/MDP2/src/hmdp.cpp:10) ==4126789== by 0x18D0C659: HMDP::HMDP(std::vector, std::allocator >, std::allocator, std::allocator > > >, bool) (packages/tests-vg/MDP2/src/hmdp.h:286) ==4126789== by 0x18D1451C: Rcpp::Constructor_2, std::allocator >, std::allocator, std::allocator > > >, bool>::get_new(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/Module_generated_Constructor.h:57) ==4126789== by 0x18D0BF2B: Rcpp::class_::newInstance(SEXPREC**, int) (R-devel/site-library/Rcpp/include/Rcpp/module/class.h:131) ==4126789== by 0x188AA599: class__newInstance(SEXPREC*) (/tmp/Rtmp6ewrVa/R.INSTALL156a142f759006/Rcpp/src/module.cpp:143) ==4126789== by 0x4A138C: do_External (svn/R-devel/src/main/dotcode.c:576) ==4126789== by 0x4E7F84: bcEval (svn/R-devel/src/main/eval.c:7348) ==4126789== by 0x4F4C8F: Rf_eval (svn/R-devel/src/main/eval.c:1013) ==4126789== ==4126789== LEAK SUMMARY: ==4126789== definitely lost: 0 bytes in 47 blocks ==4126789== indirectly lost: 0 bytes in 0 blocks ==4126789== possibly lost: 0 bytes in 0 blocks ==4126789== still reachable: 269,043,792 bytes in 54,729 blocks ==4126789== suppressed: 0 bytes in 0 blocks ==4126789== Reachable blocks (those to which a pointer was found) are not shown. ==4126789== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==4126789== ==4126789== For lists of detected and suppressed errors, rerun with: -s ==4126789== ERROR SUMMARY: 733 errors from 26 contexts (suppressed: 0 from 0)