* using log directory ‘/home/hornik/tmp/CRAN_special_clang-san/CalSim.Rcheck’ * using R Under development (unstable) (2025-01-07 r87537) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.6 (1) Debian flang-new version 19.1.6 (1) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘CalSim/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘CalSim’ version ‘0.5.3’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘CalSim’ can be installed ... [14s/14s] OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [4s/4s] OK * checking whether the package can be loaded with stated dependencies ... [4s/4s] OK * checking whether the package can be unloaded cleanly ... [4s/4s] OK * checking whether the namespace can be loaded with stated dependencies ... [4s/4s] OK * checking whether the namespace can be unloaded cleanly ... [4s/4s] OK * checking loading without being on the library search path ... [4s/4s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [20s/20s] OK * checking Rd files ... [1s/1s] OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... [1s/1s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [5s/5s] ERROR Running examples in ‘CalSim-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: calibration_simplex > ### Title: Calibration Simplex > ### Aliases: calibration_simplex CalSim calibration_simplex.default > > ### ** Examples > > attach(ternary_forecast_example) #see also documentation of sample data > #?ternary_forecast_example > > # Calibrated forecast sample > calsim0 = calibration_simplex(p1 = p1, p3 = p3, obs = obs0) > plot(calsim0,use_pvals = TRUE) # with multinomial p-values > > # Overconfident forecast sample > calsim1 = calibration_simplex(p1 = p1, p3 = p3, obs = obs1) ================================================================= ==2398826==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x50f000024ed8 at pc 0x7f9ba025ffbf bp 0x7ffefcc56170 sp 0x7ffefcc56168 READ of size 8 at 0x50f000024ed8 thread T0 #0 0x7f9ba025ffbe in recurse(int, int, int, double, double, double) /home/hornik/tmp/scratch/RtmpifQ900/R.INSTALL245c1158f9b605/ExactMultinom/src/multinom_test.cpp:115:80 #1 0x7f9ba0263edc in multinom_test_cpp(Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, double) /home/hornik/tmp/scratch/RtmpifQ900/R.INSTALL245c1158f9b605/ExactMultinom/src/multinom_test.cpp:457:10 #2 0x7f9ba02453f5 in _ExactMultinom_multinom_test_cpp /home/hornik/tmp/scratch/RtmpifQ900/R.INSTALL245c1158f9b605/ExactMultinom/src/RcppExports.cpp:17:34 #3 0x7f9bbeb4ef05 in R_doDotCall /home/hornik/src/R/src/main/dotcode.c:760:11 #4 0x7f9bbed13249 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8672:21 #5 0x7f9bbeca1ee4 in bcEval /home/hornik/src/R/src/main/eval.c:7505:16 #6 0x7f9bbeca061f in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #7 0x7f9bbecaad75 in R_execClosure /home/hornik/src/R/src/main/eval.c:2393:22 #8 0x7f9bbeca686c in applyClosure_core /home/hornik/src/R/src/main/eval.c:2306:16 #9 0x7f9bbeca49c0 in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2328:16 #10 0x7f9bbee3d6f2 in dispatchMethod /home/hornik/src/R/src/main/objects.c:473:16 #11 0x7f9bbee3b788 in Rf_usemethod /home/hornik/src/R/src/main/objects.c:523:9 #12 0x7f9bbee3e7ac in do_usemethod /home/hornik/src/R/src/main/objects.c:579:9 #13 0x7f9bbecdee72 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8142:15 #14 0x7f9bbeca1ee4 in bcEval /home/hornik/src/R/src/main/eval.c:7505:16 #15 0x7f9bbeca061f in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #16 0x7f9bbecaad75 in R_execClosure /home/hornik/src/R/src/main/eval.c:2393:22 #17 0x7f9bbeca686c in applyClosure_core /home/hornik/src/R/src/main/eval.c:2306:16 #18 0x7f9bbeca0f9f in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2328:16 #19 0x7f9bbeca0f9f in Rf_eval /home/hornik/src/R/src/main/eval.c:1280:12 #20 0x7f9bbecb9935 in do_set /home/hornik/src/R/src/main/eval.c:3571:8 #21 0x7f9bbeca09eb in Rf_eval /home/hornik/src/R/src/main/eval.c:1232:12 #22 0x7f9bbede4977 in Rf_ReplIteration /home/hornik/src/R/src/main/main.c:265:2 #23 0x7f9bbede7790 in R_ReplConsole /home/hornik/src/R/src/main/main.c:317:11 #24 0x7f9bbede75b4 in run_Rmainloop /home/hornik/src/R/src/main/main.c:1219:5 #25 0x7f9bbede785a in Rf_mainloop /home/hornik/src/R/src/main/main.c:1226:5 #26 0x55e928554dd4 in main /home/hornik/src/R/src/main/Rmain.c:29:5 #27 0x7f9bbe033d67 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 #28 0x7f9bbe033e24 in __libc_start_main csu/../csu/libc-start.c:360:3 #29 0x55e928471370 in _start (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0x2b370) (BuildId: ce9a0af4806c342e07ea21f487bd9584f1fffacb) 0x50f000024ed8 is located 8 bytes before 168-byte region [0x50f000024ee0,0x50f000024f88) allocated by thread T0 here: #0 0x55e928552a41 in operator new[](unsigned long) (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0x10ca41) (BuildId: ce9a0af4806c342e07ea21f487bd9584f1fffacb) #1 0x7f9ba026139a in multinom_test_cpp(Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, double) /home/hornik/tmp/scratch/RtmpifQ900/R.INSTALL245c1158f9b605/ExactMultinom/src/multinom_test.cpp:340:16 #2 0x7f9ba02453f5 in _ExactMultinom_multinom_test_cpp /home/hornik/tmp/scratch/RtmpifQ900/R.INSTALL245c1158f9b605/ExactMultinom/src/RcppExports.cpp:17:34 #3 0x7f9bbeb4ef05 in R_doDotCall /home/hornik/src/R/src/main/dotcode.c:760:11 #4 0x7f9bbed13249 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8672:21 #5 0x7f9bbeca1ee4 in bcEval /home/hornik/src/R/src/main/eval.c:7505:16 #6 0x7f9bbeca061f in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #7 0x7f9bbecaad75 in R_execClosure /home/hornik/src/R/src/main/eval.c:2393:22 #8 0x7f9bbeca686c in applyClosure_core /home/hornik/src/R/src/main/eval.c:2306:16 #9 0x7f9bbeca49c0 in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2328:16 #10 0x7f9bbee3d6f2 in dispatchMethod /home/hornik/src/R/src/main/objects.c:473:16 #11 0x7f9bbee3b788 in Rf_usemethod /home/hornik/src/R/src/main/objects.c:523:9 #12 0x7f9bbee3e7ac in do_usemethod /home/hornik/src/R/src/main/objects.c:579:9 #13 0x7f9bbecdee72 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8142:15 #14 0x7f9bbeca1ee4 in bcEval /home/hornik/src/R/src/main/eval.c:7505:16 #15 0x7f9bbeca061f in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #16 0x7f9bbecaad75 in R_execClosure /home/hornik/src/R/src/main/eval.c:2393:22 #17 0x7f9bbeca686c in applyClosure_core /home/hornik/src/R/src/main/eval.c:2306:16 #18 0x7f9bbeca0f9f in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2328:16 #19 0x7f9bbeca0f9f in Rf_eval /home/hornik/src/R/src/main/eval.c:1280:12 #20 0x7f9bbecb9935 in do_set /home/hornik/src/R/src/main/eval.c:3571:8 #21 0x7f9bbeca09eb in Rf_eval /home/hornik/src/R/src/main/eval.c:1232:12 #22 0x7f9bbede4977 in Rf_ReplIteration /home/hornik/src/R/src/main/main.c:265:2 #23 0x7f9bbede7790 in R_ReplConsole /home/hornik/src/R/src/main/main.c:317:11 #24 0x7f9bbede75b4 in run_Rmainloop /home/hornik/src/R/src/main/main.c:1219:5 #25 0x7f9bbede785a in Rf_mainloop /home/hornik/src/R/src/main/main.c:1226:5 #26 0x55e928554dd4 in main /home/hornik/src/R/src/main/Rmain.c:29:5 #27 0x7f9bbe033d67 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 SUMMARY: AddressSanitizer: heap-buffer-overflow /home/hornik/tmp/scratch/RtmpifQ900/R.INSTALL245c1158f9b605/ExactMultinom/src/multinom_test.cpp:115:80 in recurse(int, int, int, double, double, double) Shadow bytes around the buggy address: 0x50f000024c00: fa fa fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x50f000024c80: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa 0x50f000024d00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x50f000024d80: fd fd fd fd fd fd fa fa fa fa fa fa fa fa fd fd 0x50f000024e00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd =>0x50f000024e80: fd fd fd fa fa fa fa fa fa fa fa[fa]00 00 00 00 0x50f000024f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x50f000024f80: 00 fa fa fa fa fa fa fa fa fa 00 00 00 00 00 00 0x50f000025000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa 0x50f000025080: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00 0x50f000025100: 00 00 00 00 00 00 00 00 00 00 00 00 00 fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==2398826==ABORTING * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [0s/0s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR