Re: [Rcpp-devel] Rcpp::exception + threads = disaster

2020-02-07 Thread Joshua N Pritikin
On Fri, Feb 07, 2020 at 07:56:40AM -0600, Dirk Eddelbuettel wrote: > On 7 February 2020 at 08:23, Joshua N Pritikin wrote: > | Yeah, so I replaced Rcpp::stop with, > | > | template > | inline void NORET mxThrow(const char* fmt, Args&&... args) { > | throw std::runtime_error( tfm::format(fmt,

Re: [Rcpp-devel] Rcpp::exception + threads = disaster

2020-02-07 Thread Dirk Eddelbuettel
On 7 February 2020 at 08:23, Joshua N Pritikin wrote: | On Thu, Feb 06, 2020 at 08:40:02PM -0600, Dirk Eddelbuettel wrote: | > On 6 February 2020 at 20:47, Joshua N Pritikin wrote: | > | The Rcpp::exception constructor does, | > | | > | rcpp_set_stack_trace(Shield(stack_trace())) | > | | > | T

Re: [Rcpp-devel] Rcpp::exception + threads = disaster

2020-02-07 Thread Joshua N Pritikin
On Thu, Feb 06, 2020 at 08:40:02PM -0600, Dirk Eddelbuettel wrote: > On 6 February 2020 at 20:47, Joshua N Pritikin wrote: > | The Rcpp::exception constructor does, > | > | rcpp_set_stack_trace(Shield(stack_trace())) > | > | This can corrupt R if called within an OpenMP block. > > ... here. In