* using log directory ‘/data/gannet/ripley/R/packages/tests-clang-ASAN/apLCMS.Rcheck’ * using R Under development (unstable) (2025-08-27 r88717) * using platform: x86_64-pc-linux-gnu * R was compiled by clang version 21.1.0 flang version 21.1.0 * running under: Fedora Linux 42 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘apLCMS/DESCRIPTION’ ... OK * this is package ‘apLCMS’ version ‘6.8.3’ * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package ‘apLCMS’ can be installed ... [162s/227s] OK * used C++ compiler: ‘clang version 21.1.0’ * checking package directory ... OK * checking whether the package can be loaded ... [19s/25s] OK * checking whether the package can be loaded with stated dependencies ... [18s/23s] OK * checking whether the package can be unloaded cleanly ... [17s/23s] OK * checking whether the namespace can be loaded with stated dependencies ... [17s/22s] OK * checking whether the namespace can be unloaded cleanly ... [17s/20s] OK * checking loading without being on the library search path ... [18s/20s] OK * checking compiled code ... OK * checking examples ... [29s/32s] ERROR Running examples in ‘apLCMS-Ex.R’ failed The error most likely occurred in: > ### Name: proc.cdf.2d > ### Title: Compute a 2D Binned Kernel Density Estimate from LC/MS data in > ### CDF format. > ### Aliases: proc.cdf.2d > ### Keywords: distribution density > > ### ** Examples > > library(msdata) > filepath <- system.file("microtofq", package = "msdata") > file <- list.files(filepath, pattern="MM14.mzML", + full.names=TRUE, recursive = TRUE) > peakInfo <- proc.cdf.2d(file) ================================================================= ==2925512==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7e03dc17bd50 at pc 0x7b13c4b9f5a7 bp 0x7ffdef26c150 sp 0x7ffdef26c148 READ of size 8 at 0x7e03dc17bd50 thread T0 #0 0x7b13c4b9f5a6 in FindPeak(Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, double, double, double, double, double) /data/gannet/ripley/R/packages/tests-clang-ASAN/apLCMS/src/CalDen.cpp:521:14 #1 0x7b13c4bac27f in calculateDensity(Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, double, double, double, double, double, double, double, double, int) /data/gannet/ripley/R/packages/tests-clang-ASAN/apLCMS/src/CalDen.cpp:669:34 #2 0x7b13c4bb8577 in _apLCMS_calculateDensity /data/gannet/ripley/R/packages/tests-clang-ASAN/apLCMS/src/RcppExports.cpp:53:34 #3 0x5653fa36d047 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c #4 0x5653fa378dac in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1437:11 #5 0x5653fa423ac9 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8118:14 #6 0x5653fa416784 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7501:16 #7 0x5653fa414caa in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167:8 #8 0x5653fa45cc3c in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2393:22 #9 0x5653fa45be01 in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2306:16 #10 0x5653fa4156f9 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2328:16 #11 0x5653fa4156f9 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1280:12 #12 0x5653fa46e647 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3567:8 #13 0x5653fa4151f3 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1232:12 #14 0x5653fa4e9851 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264:15 #15 0x5653fa4ec0a0 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:317:11 #16 0x5653fa4ec0a0 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1235:5 #17 0x5653fa4ec132 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1242:5 #18 0x5653fa1f499c in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #19 0x7f13df4115f4 in __libc_start_call_main (/lib64/libc.so.6+0x35f4) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #20 0x7f13df4116a7 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x36a7) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #21 0x5653fa10d7d4 in _start (/data/gannet/ripley/R/clang-ASAN/bin/exec/R+0x17d4) 0x7e03dc17bd50 is located 0 bytes after 55632-byte region [0x7e03dc16e400,0x7e03dc17bd50) allocated by thread T0 here: #0 0x5653fa1b1f14 in malloc /data/gannet/ripley/Sources2/LLVM/21/latest/compiler-rt/lib/asan/asan_malloc_linux.cpp:67:3 #1 0x7f13dd01f2fb in operator new(unsigned long) (/lib64/libstdc++.so.6+0x1f2fb) (BuildId: a34f3756a2aefc3d2b7ae49335dfdd1b4555be43) #2 0x7b13c4bac27f in calculateDensity(Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, double, double, double, double, double, double, double, double, int) /data/gannet/ripley/R/packages/tests-clang-ASAN/apLCMS/src/CalDen.cpp:669:34 #3 0x7b13c4bb8577 in _apLCMS_calculateDensity /data/gannet/ripley/R/packages/tests-clang-ASAN/apLCMS/src/RcppExports.cpp:53:34 #4 0x5653fa36d047 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c #5 0x5653fa378dac in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1437:11 #6 0x5653fa423ac9 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8118:14 #7 0x5653fa416784 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7501:16 #8 0x5653fa414caa in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167:8 #9 0x5653fa45cc3c in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2393:22 #10 0x5653fa45be01 in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2306:16 #11 0x5653fa4156f9 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2328:16 #12 0x5653fa4156f9 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1280:12 #13 0x5653fa46e647 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3567:8 #14 0x5653fa4151f3 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1232:12 #15 0x5653fa4e9851 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264:15 #16 0x5653fa4ec0a0 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:317:11 #17 0x5653fa4ec0a0 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1235:5 #18 0x5653fa4ec132 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1242:5 #19 0x5653fa1f499c in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #20 0x7f13df4115f4 in __libc_start_call_main (/lib64/libc.so.6+0x35f4) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #21 0x7f13df4116a7 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x36a7) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #22 0x5653fa10d7d4 in _start (/data/gannet/ripley/R/clang-ASAN/bin/exec/R+0x17d4) SUMMARY: AddressSanitizer: heap-buffer-overflow /data/gannet/ripley/R/packages/tests-clang-ASAN/apLCMS/src/CalDen.cpp:521:14 in FindPeak(Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, double, double, double, double, double) Shadow bytes around the buggy address: 0x7e03dc17ba80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e03dc17bb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e03dc17bb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e03dc17bc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e03dc17bc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x7e03dc17bd00: 00 00 00 00 00 00 00 00 00 00[fa]fa fa fa fa fa 0x7e03dc17bd80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e03dc17be00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e03dc17be80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e03dc17bf00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e03dc17bf80: fa fa fa fa fa fa fa fa fa fa fa fa fa 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 ==2925512==ABORTING * DONE Status: 1 ERROR