[Rcpp-devel] Does uncaught c++ exception cause memory leak?

Romain Francois romain at r-enthusiasts.com
Mon Dec 29 18:42:29 CET 2014


Uncaught exception gives you UB. It is however difficult not to catch exceptions if you use Rcpp::export attributes which includes a "catch all and deal with it" part. 

Romain

Envoyé de mon iPhone

> Le 29 déc. 2014 à 18:28, Wush Wu <wush978 at gmail.com> a écrit :
> 
> Dear all,
> 
> I have a question which is described in the subject. 
> 
> It is discovered when I use the valgrind to check my package. 
> 
> Because I am not familiar with valgrind, please help me verify that if this is a bug of Rcpp or not.
> 
> Here is a minimal reproducible example with docker and the log of valgrind: 
> 
> https://gist.github.com/wush978/629743109e4aaa762968
> 
> Best,
> Wush
> 
> 
> 
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20141229/f27437f0/attachment.html>


More information about the Rcpp-devel mailing list