Package check result: ERROR Check: examples, Result: ERROR Running examples in ‘fastQR-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: qr_fitted > ### Title: Compute fitted values from a QR decomposition > ### Aliases: qr_fitted > > ### ** Examples > > set.seed(1) > n <- 10; p <- 4 > X <- matrix(rnorm(n * p), n, p) > y <- rnorm(n) > > qr_res <- fastQR::qr_fast(X) > yhat1 <- fastQR::qr_fitted(qr = qr_res$qr, tau = qr_res$qraux, y = y) ================================================================= ==1609418==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7be369932648 at pc 0x7be3535724e6 bp 0x7ffd0a3923b0 sp 0x7ffd0a3923a8 READ of size 8 at 0x7be369932648 thread T0 #0 0x7be3535724e5 in Eigen::DenseStorage::rows() const /home/hornik/tmp/CRAN_special_clang-san/Library/RcppEigen/include/Eigen/src/Core/DenseStorage.h:472:69 #1 0x7be3535724e5 in Eigen::PlainObjectBase>::rows() const /home/hornik/tmp/CRAN_special_clang-san/Library/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:143:58 #2 0x7be3535724e5 in Eigen::HouseholderSequence, Eigen::Matrix, 1>::rows() const /home/hornik/tmp/CRAN_special_clang-san/Library/RcppEigen/include/Eigen/src/Householder/HouseholderSequence.h:205:76 #3 0x7be3535724e5 in void Eigen::HouseholderSequence, Eigen::Matrix, 1>::applyThisOnTheLeft, Eigen::Matrix>(Eigen::Matrix&, Eigen::Matrix&, bool) const /home/hornik/tmp/CRAN_special_clang-san/Library/RcppEigen/include/Eigen/src/Householder/HouseholderSequence.h:408:28 #4 0x7be3536d40be in void Eigen::HouseholderSequence, Eigen::Matrix, 1>::applyThisOnTheLeft>(Eigen::Matrix&, bool) const /home/hornik/tmp/CRAN_special_clang-san/Library/RcppEigen/include/Eigen/src/Householder/HouseholderSequence.h:364:7 #5 0x7be3536d40be in Eigen::internal::matrix_type_times_scalar_type>::Type Eigen::HouseholderSequence, Eigen::Matrix, 1>::operator*>(Eigen::MatrixBase> const&) const /home/hornik/tmp/CRAN_special_clang-san/Library/RcppEigen/include/Eigen/src/Householder/HouseholderSequence.h:427:7 #6 0x7be3536d40be in qr_fitted_rank(Eigen::Matrix const&, Eigen::Matrix const&, Eigen::Matrix const&, int) /home/hornik/tmp/CRAN_special_clang-san/fastQR.Rcheck/00_pkg_src/fastQR/src/fastQRutils.cpp:361:34 #7 0x7be3534f2a0f in qr_fitted(Eigen::Matrix const&, Eigen::Matrix const&, Eigen::Matrix const&, Rcpp::Nullable) /home/hornik/tmp/CRAN_special_clang-san/fastQR.Rcheck/00_pkg_src/fastQR/src/QR_utils_wrap.cpp:1435:21 #8 0x7be3536aa0a7 in _fastQR_qr_fitted /home/hornik/tmp/CRAN_special_clang-san/fastQR.Rcheck/00_pkg_src/fastQR/src/RcppExports.cpp:195:34 #9 0x7fe36eb445cc in R_doDotCall /home/hornik/src/R/src/main/dotcode.c:763:11 #10 0x7fe36eced782 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8682:21 #11 0x7fe36ec9ba34 in bcEval /home/hornik/src/R/src/main/eval.c:7515:16 #12 0x7fe36ec9a16f in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #13 0x7fe36eca499b in R_execClosure /home/hornik/src/R/src/main/eval.c:2389:22 #14 0x7fe36eca0293 in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302:16 #15 0x7fe36ec9aaef in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324:16 #16 0x7fe36ec9aaef in Rf_eval /home/hornik/src/R/src/main/eval.c:1280:12 #17 0x7fe36ecb33f5 in do_set /home/hornik/src/R/src/main/eval.c:3581:8 #18 0x7fe36ec9a53b in Rf_eval /home/hornik/src/R/src/main/eval.c:1232:12 #19 0x7fe36eddf3f5 in Rf_ReplIteration /home/hornik/src/R/src/main/main.c:264:15 #20 0x7fe36ede2550 in R_ReplConsole /home/hornik/src/R/src/main/main.c:317:11 #21 0x7fe36ede2364 in run_Rmainloop /home/hornik/src/R/src/main/main.c:1235:5 #22 0x7fe36ede264a in Rf_mainloop /home/hornik/src/R/src/main/main.c:1242:5 #23 0x55e3a0d97004 in main /home/hornik/src/R/src/main/Rmain.c:29:5 #24 0x7fe36de29f74 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 #25 0x7fe36de2a026 in __libc_start_main csu/../csu/libc-start.c:360:3 #26 0x55e3a0cac380 in _start (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0x2c380) (BuildId: bc88c46ef9240773c07d57c927010d00876dfe01) Address 0x7be369932648 is located in stack of thread T0 at offset 584 in frame #0 0x7be3536d3b17 in qr_fitted_rank(Eigen::Matrix const&, Eigen::Matrix const&, Eigen::Matrix const&, int) /home/hornik/tmp/CRAN_special_clang-san/fastQR.Rcheck/00_pkg_src/fastQR/src/fastQRutils.cpp:341 This frame has 19 object(s): [32, 40) 'workspace' [64, 88) 'srcEvaluator' [128, 152) 'dstEvaluator' [192, 224) 'kernel' [256, 257) 'ref.tmp' [272, 280) 'workspace' [304, 328) 'srcEvaluator' [368, 376) 'dstEvaluator' [400, 432) 'kernel' [464, 465) 'ref.tmp' [480, 481) 'ref.tmp' [496, 536) 'Q' (line 359) [576, 600) 'ref.tmp' (line 359) <== Memory access at offset 584 is inside this variable [640, 696) 'ref.tmp' (line 359) [736, 752) 'ref.tmp' (line 359) [768, 784) 'Qty' (line 361) [800, 840) 'ref.tmp' (line 361) [880, 896) 'tmp' (line 362) [912, 968) 'ref.tmp' (line 363) HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-use-after-scope /home/hornik/tmp/CRAN_special_clang-san/Library/RcppEigen/include/Eigen/src/Core/DenseStorage.h:472:69 in Eigen::DenseStorage::rows() const Shadow bytes around the buggy address: 0x7be369932380: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7be369932400: f1 f1 f1 f1 f8 f2 f2 f2 f8 f8 f8 f2 f2 f2 f2 f2 0x7be369932480: f8 f8 f8 f2 f2 f2 f2 f2 f8 f8 f8 f8 f2 f2 f2 f2 0x7be369932500: f8 f2 00 f2 f2 f2 f8 f8 f8 f2 f2 f2 f2 f2 f8 f2 0x7be369932580: f2 f2 f8 f8 f8 f8 f2 f2 f2 f2 f8 f2 f8 f2 00 00 =>0x7be369932600: 00 00 00 f2 f2 f2 f2 f2 f8[f8]f8 f2 f2 f2 f2 f2 0x7be369932680: f8 f8 f8 f8 f8 f8 f8 f2 f2 f2 f2 f2 f8 f8 f2 f2 0x7be369932700: 00 00 f2 f2 00 00 00 00 00 f2 f2 f2 f2 f2 f8 f8 0x7be369932780: f2 f2 f8 f8 f8 f8 f8 f8 f8 f3 f3 f3 f3 f3 f3 f3 0x7be369932800: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7be369932880: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 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 ==1609418==ABORTING Post-processing issues found: File: fastQR-Ex.Rout ==1609418==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7be369932648 at pc 0x7be3535724e6 bp 0x7ffd0a3923b0 sp 0x7ffd0a3923a8 SUMMARY: AddressSanitizer: stack-use-after-scope /home/hornik/tmp/CRAN_special_clang-san/Library/RcppEigen/include/Eigen/src/Core/DenseStorage.h:472:69 in Eigen::DenseStorage::rows() const ASan internal: fe File: 00check.log ==1609418==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7be369932648 at pc 0x7be3535724e6 bp 0x7ffd0a3923b0 sp 0x7ffd0a3923a8 SUMMARY: AddressSanitizer: stack-use-after-scope /home/hornik/tmp/CRAN_special_clang-san/Library/RcppEigen/include/Eigen/src/Core/DenseStorage.h:472:69 in Eigen::DenseStorage::rows() const ASan internal: fe