* using log directory ‘/data/gannet/ripley/R/packages/tests-gcc-SAN/spdl.Rcheck’ * using R Under development (unstable) (2026-02-09 r89390) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2) GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2) * running under: Fedora Linux 42 (Workstation Edition) * using session charset: UTF-8 * current time: 2026-02-10 11:50:14 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘spdl/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘spdl’ version ‘0.0.5’ * 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 ‘spdl’ can be installed ... [14s/14s] OK * checking package directory ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking examples ... ERROR Running examples in ‘spdl-Ex.R’ failed The error most likely occurred in: > ### Name: setup > ### Title: Convenience Wrappers for 'RcppSpdlog' Logging From 'spdlog' > ### Aliases: setup init log filesetup drop set_pattern set_level trace > ### debug info warn error critical fmt cat stopwatch elapsed > > ### ** Examples > > spdl::setup("exampleDemo", "warn") > # and spdl::init("warn") and spdl::log("warn") are shortcuts > spdl::info("Not seen as level 'info' below 'warn'") > spdl::warn("This warning message is seen") [2026-02-10 11:50:57.397] [exampleDemo] [Process: 3056317] [warning] This warning message is seen > spdl::set_level("info") > spdl::info("Now this informational message is seen too") [2026-02-10 11:50:57.399] [exampleDemo] [Process: 3056317] [info] Now this informational message is seen too > spdl::info("Calls use fmtlib::fmt {} as we can see {}", "under the hood", 42L) ================================================================= ==3056317==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7be3948a5180 at pc 0x7be38645de0e bp 0x7ffc6b903230 sp 0x7ffc6b903228 READ of size 16 at 0x7be3948a5180 thread T0 #0 0x7be38645de0d in std::basic_format_args, char> >::get(unsigned long) const /usr/include/c++/15/format:4208 #1 0x7be38645de0d in std::basic_format_context, char>::arg(unsigned long) const /usr/include/c++/15/format:4412 #2 0x7be38645de0d in std::__format::_Formatting_scanner, char>::_M_format_arg(unsigned long) /usr/include/c++/15/format:4582 #3 0x7be38645de0d in std::__format::_Scanner::_M_on_replacement_field() /usr/include/c++/15/format:4545 #4 0x7be38645de0d in std::__format::_Scanner::_M_scan() [clone .constprop.0] /usr/include/c++/15/format:4493 #5 0x7be38646a64d in std::__format::_Sink_iter std::__format::__do_vformat_to, char, std::basic_format_context, char> >(std::__format::_Sink_iter, std::basic_string_view >, std::basic_format_args, char> > const&, std::locale const*) /usr/include/c++/15/format:4750 #6 0x7be38646a64d in std::__format::_Sink_iter std::vformat_to >(std::__format::_Sink_iter, std::basic_string_view >, std::basic_format_args, char> >) requires output_iterator, char const&> /usr/include/c++/15/format:4808 #7 0x7be38646a64d in std::vformat[abi:cxx11](std::basic_string_view >, std::basic_format_args, char> >) /usr/include/c++/15/format:4843 #8 0x7be38657dc41 in formatter(std::__cxx11::basic_string, std::allocator >, std::vector, std::allocator >, std::allocator, std::allocator > > >) /tmp/Rtmpwj1ZMe/R.INSTALL2177d87de9812c/RcppSpdlog/src/formatter.cpp:61 #9 0x7be386437d6e in _RcppSpdlog_formatter_try /tmp/Rtmpwj1ZMe/R.INSTALL2177d87de9812c/RcppSpdlog/src/RcppExports.cpp:43 #10 0x7be3864395ee in _RcppSpdlog_formatter /tmp/Rtmpwj1ZMe/R.INSTALL2177d87de9812c/RcppSpdlog/src/RcppExports.cpp:51 #11 0x0000007506f6 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:757 #12 0x0000008e661a in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8682 #13 0x0000008bce5b in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7515 #14 0x00000085d782 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167 #15 0x0000008734ca in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2389 #16 0x0000008774ba in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2302 #17 0x00000085de23 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2324 #18 0x00000085de23 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1280 #19 0x000000a028c8 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264 #20 0x000000a028c8 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:317 #21 0x000000a10c2a in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1235 #22 0x000000a10cc2 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1242 #23 0x00000041317f in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29 #24 0x7fe3990115f4 in __libc_start_call_main (/lib64/libc.so.6+0x35f4) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #25 0x7fe3990116a7 in __libc_start_main@@GLIBC_2.34 (/lib64/libc.so.6+0x36a7) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #26 0x000000413b64 in _start (/data/gannet/ripley/R/gcc-SAN3/bin/exec/R+0x413b64) (BuildId: d52b7a5ce0938f39f89bfcbb47d80c191861a308) Address 0x7be3948a5180 is located in stack of thread T0 at offset 384 in frame #0 0x7be38657da9f in formatter(std::__cxx11::basic_string, std::allocator >, std::vector, std::allocator >, std::allocator, std::allocator > > >) /tmp/Rtmpwj1ZMe/R.INSTALL2177d87de9812c/RcppSpdlog/src/formatter.cpp:39 This frame has 10 object(s): [32, 48) '' [64, 80) '' [96, 112) '' [128, 144) '' [160, 176) '' [192, 224) '__arg' [256, 288) '__arg' [320, 352) '__arg' [384, 416) '' <== Memory access at offset 384 is inside this variable [448, 480) '' 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 /tmp/Rtmpwj1ZMe/R.INSTALL2177d87de9812c/RcppSpdlog/src/formatter.cpp:61 in formatter(std::__cxx11::basic_string, std::allocator >, std::vector, std::allocator >, std::allocator, std::allocator > > >) Shadow bytes around the buggy address: 0x7be3948a4f00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7be3948a4f80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 00 00 00 00 0x7be3948a5000: f1 f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f2 f2 0x7be3948a5080: 00 00 f2 f2 f8 f8 f2 f2 00 00 00 00 f2 f2 f2 f2 0x7be3948a5100: f8 f8 f8 f8 f2 f2 f2 f2 f8 f8 f8 f8 f2 f2 f2 f2 =>0x7be3948a5180:[f8]f8 f8 f8 f2 f2 f2 f2 00 00 00 00 f3 f3 f3 f3 0x7be3948a5200: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7be3948a5280: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7be3948a5300: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7be3948a5380: f5 f5 f5 f5 f5 f5 f5 f5 00 00 00 00 00 00 00 00 0x7be3948a5400: 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 ==3056317==ABORTING * checking tests ... ERROR Running ‘simpleTest.R’ Running the tests in ‘tests/simpleTest.R’ failed. Complete output: > > spdl::setup("demoForTest", "warn") # new logger > spdl::set_pattern("[%n] [%l] %v"); # special pattern _without time or pid_ for Rout.save use > > spdl::trace("This will not be seen.") > spdl::debug("Neither will this.") > spdl::info("Nor this.") > spdl::warn("But we will see this message") [demoForTest] [warning] But we will see this message > spdl::warn("Format {} and {} and {}", 42L, 1.23, TRUE) ================================================================= ==3057013==ERROR: AddressSanitizer: stack-use-after-return on address 0x7b9d166db570 at pc 0x7b9d0825de0e bp 0x7ffdc9bad410 sp 0x7ffdc9bad408 READ of size 16 at 0x7b9d166db570 thread T0 #0 0x7b9d0825de0d in std::basic_format_args, char> >::get(unsigned long) const /usr/include/c++/15/format:4208 #1 0x7b9d0825de0d in std::basic_format_context, char>::arg(unsigned long) const /usr/include/c++/15/format:4412 #2 0x7b9d0825de0d in std::__format::_Formatting_scanner, char>::_M_format_arg(unsigned long) /usr/include/c++/15/format:4582 #3 0x7b9d0825de0d in std::__format::_Scanner::_M_on_replacement_field() /usr/include/c++/15/format:4545 #4 0x7b9d0825de0d in std::__format::_Scanner::_M_scan() [clone .constprop.0] /usr/include/c++/15/format:4493 #5 0x7b9d0826a64d in std::__format::_Sink_iter std::__format::__do_vformat_to, char, std::basic_format_context, char> >(std::__format::_Sink_iter, std::basic_string_view >, std::basic_format_args, char> > const&, std::locale const*) /usr/include/c++/15/format:4750 #6 0x7b9d0826a64d in std::__format::_Sink_iter std::vformat_to >(std::__format::_Sink_iter, std::basic_string_view >, std::basic_format_args, char> >) requires output_iterator, char const&> /usr/include/c++/15/format:4808 #7 0x7b9d0826a64d in std::vformat[abi:cxx11](std::basic_string_view >, std::basic_format_args, char> >) /usr/include/c++/15/format:4843 #8 0x7b9d0837dc41 in formatter(std::__cxx11::basic_string, std::allocator >, std::vector, std::allocator >, std::allocator, std::allocator > > >) /tmp/Rtmpwj1ZMe/R.INSTALL2177d87de9812c/RcppSpdlog/src/formatter.cpp:61 #9 0x7b9d08237d6e in _RcppSpdlog_formatter_try /tmp/Rtmpwj1ZMe/R.INSTALL2177d87de9812c/RcppSpdlog/src/RcppExports.cpp:43 #10 0x7b9d082395ee in _RcppSpdlog_formatter /tmp/Rtmpwj1ZMe/R.INSTALL2177d87de9812c/RcppSpdlog/src/RcppExports.cpp:51 #11 0x0000007506f6 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:757 #12 0x0000008e661a in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8682 #13 0x0000008bce5b in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7515 #14 0x00000085d782 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167 #15 0x0000008734ca in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2389 #16 0x0000008774ba in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2302 #17 0x00000085de23 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2324 #18 0x00000085de23 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1280 #19 0x000000a028c8 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264 #20 0x000000a028c8 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:317 #21 0x000000a10c2a in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1235 #22 0x000000a10cc2 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1242 #23 0x00000041317f in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29 #24 0x7f9d1ae115f4 in __libc_start_call_main (/lib64/libc.so.6+0x35f4) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #25 0x7f9d1ae116a7 in __libc_start_main@@GLIBC_2.34 (/lib64/libc.so.6+0x36a7) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #26 0x000000413b64 in _start (/data/gannet/ripley/R/gcc-SAN3/bin/exec/R+0x413b64) (BuildId: d52b7a5ce0938f39f89bfcbb47d80c191861a308) Address 0x7b9d166db570 is located in stack of thread T0 at offset 368 in frame #0 0x7b9d083712bf in std::basic_format_args, char> > unpack_vector<0ul, 1ul, 2ul>(std::vector, std::allocator >, std::allocator, std::allocator > > > const&, std::integer_sequence) /tmp/Rtmpwj1ZMe/R.INSTALL2177d87de9812c/RcppSpdlog/src/formatter.cpp:11 This frame has 8 object(s): [48, 56) '__diffmax' [80, 88) '__allocmax' [112, 128) '' [144, 160) '' [176, 208) '__arg' [240, 272) '__arg' [304, 336) '__arg' [368, 416) '' <== Memory access at offset 368 is inside this variable 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-return /tmp/Rtmpwj1ZMe/R.INSTALL2177d87de9812c/RcppSpdlog/src/formatter.cpp:61 in formatter(std::__cxx11::basic_string, std::allocator >, std::vector, std::allocator >, std::allocator, std::allocator > > >) Shadow bytes around the buggy address: 0x7b9d166db280: 00 00 f2 f2 00 00 f2 f2 00 00 00 00 f2 f2 f2 f2 0x7b9d166db300: 00 00 00 00 f2 f2 f2 f2 00 00 00 00 f2 f2 f2 f2 0x7b9d166db380: 00 00 00 00 f2 f2 f2 f2 00 00 00 00 f3 f3 f3 f3 0x7b9d166db400: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7b9d166db480: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 =>0x7b9d166db500: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5[f5]f5 0x7b9d166db580: f5 f5 f5 f5 f5 f5 f5 f5 00 00 00 00 00 00 00 00 0x7b9d166db600: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7b9d166db680: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7b9d166db700: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7b9d166db780: f5 f5 f5 f5 f5 f5 f5 f5 00 00 00 00 00 00 00 00 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 ==3057013==ABORTING * DONE Status: 2 ERRORs