helske / bssm

Bayesian Inference of State Space Models
42 stars 14 forks source link

UBSAN on CRAN: nan is outside the range of representable values of type 'unsigned int' #15

Closed helske closed 6 years ago

helske commented 7 years ago

R Under development (unstable) (2017-07-12 r72910) -- "Unsuffered Consequences"
Copyright (C) 2017 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")
> test_check("bssm")
Loading required package: bssm
/data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/internal/caster.h:30:25: runtime error: value nan is outside the range of representable values of type 'unsigned int'
SUMMARY: AddressSanitizer: undefined-behavior /data/gannet/ripley/R/test-clang/Rcpp/include/Rcpp/internal/caster.h:30:25 in 
OMP: Warning #96: Cannot form a team with 24 threads, using 2 instead.
OMP: Hint: Consider unsetting KMP_ALL_THREADS and OMP_THREAD_LIMIT (if either is set).
testthat results ================================================================
OK: 127 SKIPPED: 9 FAILED: 0
> 
> proc.time()
   user  system elapsed 
 16.443   0.740  18.432 
helske commented 6 years ago

This is fixed already, not sure how though...