Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

investigate valgrind issues #941

Closed
jimhester opened this issue Dec 7, 2018 · 2 comments
Closed

investigate valgrind issues #941

jimhester opened this issue Dec 7, 2018 · 2 comments

Comments

@jimhester
Copy link
Member

@jimhester jimhester commented Dec 7, 2018

https://www.stats.ox.ac.uk/pub/bdr/memtests/valgrind/readr/readr-Ex.Rout

@jimhester
Copy link
Member Author

@jimhester jimhester commented Dec 12, 2018

This error does seem real.

==36589== Invalid read of size 1
==36589==    at 0x18964394: starts_with<boost::iterator_range<char const*>, std::__cxx11::basic_string<char>, boost::algorithm::is_equal> (R-devel/site-library/BH/include/boost/algorithm/string/predicate.hpp:79)
==36589==    by 0x18964394: starts_with<boost::iterator_range<char const*>, std::__cxx11::basic_string<char> > (R-devel/site-library/BH/include/boost/algorithm/string/predicate.hpp:95)
==36589==    by 0x18964394: inComment (packages/tests-vg/readr/src/Source.h:134)
==36589==    by 0x18964394: skipLines (packages/tests-vg/readr/src/Source.h:60)
==36589==    by 0x18964394: SourceString (packages/tests-vg/readr/src/SourceString.h:28)
==36589==    by 0x18964394: Source::create(Rcpp::Vector<19, Rcpp::PreserveStorage>) (packages/tests-vg/readr/src/Source.cpp:21)
==36589==    by 0x1898261A: read_tokens_(Rcpp::Vector<19, Rcpp::PreserveStorage>, Rcpp::Vector<19, Rcpp::PreserveStorage>, Rcpp::ListOf<Rcpp::Vector<19, Rcpp::PreserveStorage> >, Rcpp::Vector<16, Rcpp::PreserveStorage>, Rcpp::Vector<19, Rcpp::PreserveStorage>, int, bool) (packages/tests-vg/readr/src/read.cpp:146)
==36589==    by 0x18959615: _readr_read_tokens_ (packages/tests-vg/readr/src/RcppExports.cpp:224)
==36589==    by 0x4951B9: R_doDotCall (svn/R-devel/src/main/dotcode.c:596)
==36589==    by 0x4CE5C5: bcEval (svn/R-devel/src/main/eval.c:7326)
==36589==    by 0x4D889F: Rf_eval (svn/R-devel/src/main/eval.c:620)
==36589==    by 0x4DA22E: R_execClosure (svn/R-devel/src/main/eval.c:1780)
==36589==    by 0x4DAF84: Rf_applyClosure (svn/R-devel/src/main/eval.c:1706)
==36589==    by 0x4D0ABC: bcEval (svn/R-devel/src/main/eval.c:6786)
==36589==    by 0x4D889F: Rf_eval (svn/R-devel/src/main/eval.c:620)
==36589==    by 0x4DA22E: R_execClosure (svn/R-devel/src/main/eval.c:1780)
==36589==    by 0x4DAF84: Rf_applyClosure (svn/R-devel/src/main/eval.c:1706)
==36589==  Address 0x1bcd80d3 is 4,867 bytes inside a block of size 7,960 alloc'd
==36589==    at 0x4C2EE0B: malloc (/builddir/build/BUILD/valgrind-3.14.0/coregrind/m_replacemalloc/vg_replace_malloc.c:299)
==36589==    by 0x50F590: GetNewPage (svn/R-devel/src/main/memory.c:924)
==36589==    by 0x5110CC: Rf_allocVector3 (svn/R-devel/src/main/memory.c:2762)
==36589==    by 0x443303: Rf_allocVector (svn/R-devel/src/include/Rinlinedfuns.h:580)
==36589==    by 0x443303: getAttrib0 (svn/R-devel/src/main/attrib.c:126)
==36589==    by 0x58933E: do_subset2_dflt (svn/R-devel/src/main/subset.c:1014)
==36589==    by 0x4BF6CD: VECSUBSET_PTR (svn/R-devel/src/main/eval.c:5514)
==36589==    by 0x4CA5E6: bcEval (svn/R-devel/src/main/eval.c:7313)
==36589==    by 0x4D889F: Rf_eval (svn/R-devel/src/main/eval.c:620)
==36589==    by 0x4DA22E: R_execClosure (svn/R-devel/src/main/eval.c:1780)
==36589==    by 0x4DAF84: Rf_applyClosure (svn/R-devel/src/main/eval.c:1706)
==36589==    by 0x4D0ABC: bcEval (svn/R-devel/src/main/eval.c:6786)
==36589==    by 0x4D889F: Rf_eval (svn/R-devel/src/main/eval.c:620)

@jimhester jimhester closed this in c4d13f9 Dec 12, 2018
@lock
Copy link

@lock lock bot commented Jun 10, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Jun 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant