Package check result: ERROR Check: examples, Result: 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 Post-processing issues found: File: CalSim-Ex.Rout ==2398826==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x50f000024ed8 at pc 0x7f9ba025ffbf bp 0x7ffefcc56170 sp 0x7ffefcc56168 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) ASan internal: fe File: 00check.log ==2398826==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x50f000024ed8 at pc 0x7f9ba025ffbf bp 0x7ffefcc56170 sp 0x7ffefcc56168 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) ASan internal: fe