Skip to content

Commit

Permalink
default unbounded (-1ms), don't mess with max time
Browse files Browse the repository at this point in the history
CRAN UBSAN error: https://www.stats.ox.ac.uk/pub/bdr/memtests/README.txt

  > test_check("clustermq")
  Loading required package: clustermq
  * Option 'clustermq.scheduler' not set, defaulting to 'LOCAL'
  --- see: https://mschubert.github.io/clustermq/articles/userguide.html#configuration
  /usr/local/gcc13/include/c++/13.2.0/bits/chrono.h:225:38: runtime error: signed integer overflow: 9223372036854775807 * 1000 cannot be represented in type 'long int'
      #0 0x7f0a455651e1 in std::chrono::duration<long, std::ratio<1l, 1000l> > std::chrono::__duration_cast_impl<std::chrono::duration<long, std::ratio<1l, 1000l> >, std::ratio<1000l, 1l>, long, false, true>::__cast<long, std::ratio<1l, 1l> >(std::chrono::duration<long, std::ratio<1l, 1l> > const&) /usr/local/gcc13/include/c++/13.2.0/bits/chrono.h:225
      #1 0x7f0a455651e1 in std::enable_if<std::chrono::__is_duration<std::chrono::duration<long, std::ratio<1l, 1000l> > >::value, std::chrono::duration<long, std::ratio<1l, 1000l> > >::type std::chrono::duration_cast<std::chrono::duration<long, std::ratio<1l, 1000l> >, long, std::ratio<1l, 1l> >(std::chrono::duration<long, std::ratio<1l, 1l> > const&) /usr/local/gcc13/include/c++/13.2.0/bits/chrono.h:287
      #2 0x7f0a455651e1 in std::chrono::duration<long, std::ratio<1l, 1000l> >::duration<long, std::ratio<1l, 1l>, void>(std::chrono::duration<long, std::ratio<1l, 1l> > const&) /usr/local/gcc13/include/c++/13.2.0/bits/chrono.h:593
      #3 0x7f0a455651e1 in CMQWorker::poll() /data/gannet/ripley/R/packages/tests-gcc-SAN/clustermq/src/CMQWorker.h:63
      #4 0x7f0a4555612e in Rcpp::CppMethod0<CMQWorker, void>::operator()(CMQWorker*, SEXPREC**) /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/module/Module_generated_CppMethod.h:51
      #5 0x7f0a45592804 in Rcpp::class_<CMQWorker>::invoke_void(SEXPREC*, SEXPREC*, SEXPREC**, int) /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/module/class.h:212
      #6 0x7f0a468a1b3f in CppMethod__invoke_void(SEXPREC*) /tmp/RtmpSgVC44/R.INSTALL17fc5676a8ceff/Rcpp/src/module.cpp:200
  • Loading branch information
mschubert committed Sep 29, 2023
1 parent 7069bed commit 65a3a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMQWorker.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class CMQWorker {
int total_sock_ev = 0;
do {
try {
zmq::poll(pitems, std::chrono::duration<long int>::max());
zmq::poll(pitems);
} catch (zmq::error_t const &e) {
if (errno != EINTR || pending_interrupt())
Rf_error(e.what());
Expand Down

0 comments on commit 65a3a57

Please sign in to comment.