* using log directory ‘/data/gannet/ripley/R/packages/tests-clang-ASAN/graphpcor.Rcheck’ * using R Under development (unstable) (2026-01-14 r89303) * using platform: x86_64-pc-linux-gnu * R was compiled by clang version 21.1.8 flang version 21.1.8 * running under: Fedora Linux 42 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘graphpcor/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘graphpcor’ version ‘0.1.15’ * package encoding: UTF-8 * 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 ‘graphpcor’ can be installed ... [65s/76s] OK * used C compiler: ‘clang version 21.1.8’ * checking package directory ... OK * checking whether the package can be loaded ... [12s/12s] OK * checking whether the package can be loaded with stated dependencies ... [13s/14s] OK * checking whether the package can be unloaded cleanly ... [13s/13s] OK * checking whether the namespace can be loaded with stated dependencies ... [11s/11s] OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... [11s/11s] OK * checking compiled code ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [11s/11s] ERROR Running examples in ‘graphpcor-Ex.R’ failed The error most likely occurred in: > ### Name: cgeneric_LKJ > ### Title: Build an 'cgeneric' model for the LKG prior on correlation > ### matrix. > ### Aliases: cgeneric_LKJ > > ### ** Examples > > ## a cgeneric model for the LKJ prior > ## for theta from the CPC parametrization > cglkj <- cgeneric( + model = "LKJ", n = 3, eta = 2, + useINLAprecomp = FALSE)##!is.na(packageCheck("INLA", "25.12.16"))) > > ## correlation matrix, p = 3 > cc <- matrix(c(1,.8,-.625, 0.8,1,-.5, -0.625,-.5,1), 3) > > ## CPC parametrization: C(theta) > (bb <- basecor(cc)) Parameters (CPC parametrization): [1] 1.0986131 -0.7331689 0.0000000 Base correlation matrix: [,1] [,2] [,3] [1,] 1.000 0.8 -0.625 [2,] 0.800 1.0 -0.500 [3,] -0.625 -0.5 1.000 > th <- bb$theta > > ## p(theta | eta) > prior(cglkj, theta = th) ================================================================= ==1541250==ERROR: AddressSanitizer: dynamic-stack-buffer-overflow on address 0x7ffd61fecd90 at pc 0x7b614fcca256 bp 0x7ffd61fecd50 sp 0x7ffd61fecd48 WRITE of size 8 at 0x7ffd61fecd90 thread T0 #0 0x7b614fcca255 in cpcCholesky /data/gannet/ripley/R/packages/tests-clang-ASAN/graphpcor/src/graphpcor_utils.c:116:10 #1 0x7b614fcc0814 in inla_cgeneric_LKJ /data/gannet/ripley/R/packages/tests-clang-ASAN/graphpcor/src/cgeneric_LKJ.c:193:3 #2 0x7f6168d019ae in inla_cgeneric_element_get (/data/gannet/ripley/R/test-clang/INLAtools/libs/INLAtools.so+0x19ae) #3 0x55bda1de0c1e in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c #4 0x55bda1de959c in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1437:11 #5 0x55bda1e943c9 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8132:14 #6 0x55bda1e87084 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7515:16 #7 0x55bda1e855aa in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167:8 #8 0x55bda1ecd53c in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2389:22 #9 0x55bda1ecc701 in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2302:16 #10 0x55bda1e88f38 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2324:16 #11 0x55bda1f97744 in dispatchMethod /data/gannet/ripley/R/svn/R-devel/src/main/objects.c:473:16 #12 0x55bda1f96254 in Rf_usemethod /data/gannet/ripley/R/svn/R-devel/src/main/objects.c:513:10 #13 0x55bda1f989a3 in do_usemethod /data/gannet/ripley/R/svn/R-devel/src/main/objects.c:579:9 #14 0x55bda1e99bc3 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8152:15 #15 0x55bda1e87084 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7515:16 #16 0x55bda1e855aa in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167:8 #17 0x55bda1ecd53c in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2389:22 #18 0x55bda1ecc701 in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2302:16 #19 0x55bda1e85ff9 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2324:16 #20 0x55bda1e85ff9 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1280:12 #21 0x55bda1f5a101 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264:15 #22 0x55bda1f5c950 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:317:11 #23 0x55bda1f5c950 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1235:5 #24 0x55bda1f5c9e2 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1242:5 #25 0x55bda1c6213c in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #26 0x7f616c0115f4 in __libc_start_call_main (/lib64/libc.so.6+0x35f4) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #27 0x7f616c0116a7 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x36a7) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #28 0x55bda1b7a7e4 in _start (/data/gannet/ripley/R/clang-ASAN/bin/exec/R+0x17e4) Address 0x7ffd61fecd90 is located in stack of thread T0 SUMMARY: AddressSanitizer: dynamic-stack-buffer-overflow /data/gannet/ripley/R/packages/tests-clang-ASAN/graphpcor/src/graphpcor_utils.c:116:10 in cpcCholesky Shadow bytes around the buggy address: 0x7ffd61fecb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7ffd61fecb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7ffd61fecc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7ffd61fecc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7ffd61fecd00: 00 00 00 00 00 00 00 00 00 00 00 00 ca ca ca ca =>0x7ffd61fecd80: 00 00[cb]cb cb cb cb cb ca ca ca ca 00 00 00 00 0x7ffd61fece00: 00 00 cb cb cb cb cb cb 00 00 00 00 00 00 00 00 0x7ffd61fece80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7ffd61fecf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7ffd61fecf80: ca ca ca ca 00 00 00 00 00 00 cb cb cb cb cb cb 0x7ffd61fed000: ca ca ca ca 00 00 00 cb cb cb cb cb ca ca ca ca 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 ==1541250==ABORTING * checking package vignettes ... OK * checking re-building of vignette outputs ... [41s/41s] OK * DONE Status: 1 ERROR