* installing *source* package ‘minired’ ... ** this is package ‘minired’ version ‘1.0.1’ ** package ‘minired’ successfully unpacked and MD5 sums checked ** using staged installation checking runtime found: 'darwin25.5.0' arch: 'aarch64' using download from 'https://redatam-core.s3.us-west-2.amazonaws.com/core-dev/macos-arm64/redatamx-core-macos-arm64-20241010.zip' checking REDATAM libraries cannot find current redatam runtime files attempting to download them trying URL 'https://redatam-core.s3.us-west-2.amazonaws.com/core-dev/macos-arm64/redatamx-core-macos-arm64-20241010.zip' Error in download.file("https://redatam-core.s3.us-west-2.amazonaws.com/core-dev/macos-arm64/redatamx-core-macos-arm64-20241010.zip", : cannot open URL 'https://redatam-core.s3.us-west-2.amazonaws.com/core-dev/macos-arm64/redatamx-core-macos-arm64-20241010.zip' In addition: Warning message: In download.file("https://redatam-core.s3.us-west-2.amazonaws.com/core-dev/macos-arm64/redatamx-core-macos-arm64-20241010.zip", : cannot open URL 'https://redatam-core.s3.us-west-2.amazonaws.com/core-dev/macos-arm64/redatamx-core-macos-arm64-20241010.zip': HTTP status was '403 Forbidden' Execution halted unpacking current redatam runtime unzip: cannot find or open redatam-engine.zip, redatam-engine.zip.zip or redatam-engine.zip.ZIP. cp: tmpredatam/lib/libredengine-1.0.0-rc2.*: No such file or directory ** libs specified C++17 using C++ compiler: ‘Apple clang version 21.0.0 (clang-2100.1.1.101)’ using C++17 using SDK: ‘MacOSX26.5.sdk’ clang++ -mmacos-version-min=26 -fsanitize=address,undefined -std=gnu++17 -I"/Users/ripley/R/SAN/include" -DNDEBUG -I'/Users/ripley/R/Library/cpp11/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c cpp11.cpp -o cpp11.o In file included from cpp11.cpp:5: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/declarations.hpp:13: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:7: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:11: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/list.hpp:8: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/r_string.hpp:10: /Users/ripley/R/Library/cpp11/include/cpp11/sexp.hpp:72:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 72 | operator size_t() const { return REAL_ELT(data_, 0); } | ~~~~~~ ^~~~~~~~~~~~~~~~~~ In file included from cpp11.cpp:5: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/declarations.hpp:13: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:5: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/as.hpp:11: /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:165:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 165 | return std::forward(f)(std::get(std::move(a))...); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:171:10: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 171 | return apply(std::forward(f), std::move(a), | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:185:12: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 185 | return apply(ptr_, std::move(arefs_)); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:54:16: note: in instantiation of member function 'cpp11::detail::closure::operator()' requested here 54 | return static_cast(*callback)(); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:199:14: note: in instantiation of function template specialization 'cpp11::unwind_protect, void>' requested here 199 | return unwind_protect(detail::closure{ | ^ /Users/ripley/R/Library/cpp11/include/cpp11/r_string.hpp:20:35: note: in instantiation of function template specialization 'cpp11::protect::function::operator()' requested here 20 | : data_(safe[Rf_mkCharLenCE](data.c_str(), data.size(), CE_UTF8)) {} | ^ 2 warnings generated. clang++ -mmacos-version-min=26 -fsanitize=address,undefined -std=gnu++17 -I"/Users/ripley/R/SAN/include" -DNDEBUG -I'/Users/ripley/R/Library/cpp11/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c red_dictionary.cpp -o red_dictionary.o In file included from red_dictionary.cpp:21: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:7: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:11: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/list.hpp:8: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/r_string.hpp:10: /Users/ripley/R/Library/cpp11/include/cpp11/sexp.hpp:72:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 72 | operator size_t() const { return REAL_ELT(data_, 0); } | ~~~~~~ ^~~~~~~~~~~~~~~~~~ red_dictionary.cpp:157:20: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | int rows = names.size(); | ~~~~ ~~~~~~^~~~~~ red_dictionary.cpp:191:20: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 191 | int rows = names.size(); | ~~~~ ~~~~~~^~~~~~ In file included from red_dictionary.cpp:21: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:5: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/as.hpp:11: /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:165:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 165 | return std::forward(f)(std::get(std::move(a))...); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:171:10: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 171 | return apply(std::forward(f), std::move(a), | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:185:12: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 185 | return apply(ptr_, std::move(arefs_)); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:54:16: note: in instantiation of member function 'cpp11::detail::closure::operator()' requested here 54 | return static_cast(*callback)(); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:199:14: note: in instantiation of function template specialization 'cpp11::unwind_protect, void>' requested here 199 | return unwind_protect(detail::closure{ | ^ /Users/ripley/R/Library/cpp11/include/cpp11/r_string.hpp:20:35: note: in instantiation of function template specialization 'cpp11::protect::function::operator()' requested here 20 | : data_(safe[Rf_mkCharLenCE](data.c_str(), data.size(), CE_UTF8)) {} | ^ 4 warnings generated. clang++ -mmacos-version-min=26 -fsanitize=address,undefined -std=gnu++17 -I"/Users/ripley/R/SAN/include" -DNDEBUG -I'/Users/ripley/R/Library/cpp11/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c red_execute.cpp -o red_execute.o In file included from red_execute.cpp:21: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:7: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:11: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/list.hpp:8: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/r_string.hpp:10: /Users/ripley/R/Library/cpp11/include/cpp11/sexp.hpp:72:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 72 | operator size_t() const { return REAL_ELT(data_, 0); } | ~~~~~~ ^~~~~~~~~~~~~~~~~~ red_execute.cpp:81:27: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 81 | int cols = sexpColumns->size(); | ~~~~ ~~~~~~~~~~~~~^~~~~~ red_execute.cpp:100:47: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] 100 | INTEGER(col)[static_cast(row)] = *value; | ~ ^~~~~~ In file included from red_execute.cpp:21: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:5: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/as.hpp:11: /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:165:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 165 | return std::forward(f)(std::get(std::move(a))...); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:171:10: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 171 | return apply(std::forward(f), std::move(a), | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:185:12: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 185 | return apply(ptr_, std::move(arefs_)); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:54:16: note: in instantiation of member function 'cpp11::detail::closure::operator()' requested here 54 | return static_cast(*callback)(); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:199:14: note: in instantiation of function template specialization 'cpp11::unwind_protect, void>' requested here 199 | return unwind_protect(detail::closure{ | ^ /Users/ripley/R/Library/cpp11/include/cpp11/r_string.hpp:20:35: note: in instantiation of function template specialization 'cpp11::protect::function::operator()' requested here 20 | : data_(safe[Rf_mkCharLenCE](data.c_str(), data.size(), CE_UTF8)) {} | ^ 4 warnings generated. clang++ -mmacos-version-min=26 -fsanitize=address,undefined -std=gnu++17 -I"/Users/ripley/R/SAN/include" -DNDEBUG -I'/Users/ripley/R/Library/cpp11/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c red_initialize.cpp -o red_initialize.o In file included from red_initialize.cpp:28: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:7: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:11: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/list.hpp:8: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/r_string.hpp:10: /Users/ripley/R/Library/cpp11/include/cpp11/sexp.hpp:72:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 72 | operator size_t() const { return REAL_ELT(data_, 0); } | ~~~~~~ ^~~~~~~~~~~~~~~~~~ In file included from red_initialize.cpp:28: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:5: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/as.hpp:11: /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:165:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 165 | return std::forward(f)(std::get(std::move(a))...); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:171:10: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 171 | return apply(std::forward(f), std::move(a), | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:185:12: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 185 | return apply(ptr_, std::move(arefs_)); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:54:16: note: in instantiation of member function 'cpp11::detail::closure::operator()' requested here 54 | return static_cast(*callback)(); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:199:14: note: in instantiation of function template specialization 'cpp11::unwind_protect, void>' requested here 199 | return unwind_protect(detail::closure{ | ^ /Users/ripley/R/Library/cpp11/include/cpp11/r_string.hpp:20:35: note: in instantiation of function template specialization 'cpp11::protect::function::operator()' requested here 20 | : data_(safe[Rf_mkCharLenCE](data.c_str(), data.size(), CE_UTF8)) {} | ^ 2 warnings generated. clang++ -mmacos-version-min=26 -fsanitize=address,undefined -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Users/ripley/R/SAN/lib -L/opt/R/arm64/lib -o minired.so cpp11.o red_dictionary.o red_execute.o red_initialize.o -L/Users/ripley/R/SAN/lib -lR installing to /Users/ripley/R/packages/tests-SAN/minired.Rcheck/00LOCK-minired/00new/minired/libs ** generating debug symbols (dSYM) ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded from temporary location sh: line 1: 55455 Segmentation fault: 11 R_LIBS='/Users/ripley/R/packages/tests-SAN/minired.Rcheck:/var/folders/pk/n4bndnt1287ctrd_ftthnnnr0000gp/T//RtmpywT13m/working_dir/RtmpEvHFIi/RLIBS_d57e5a2a4fe7' R_TESTS= R_ENVIRON_USER='' R_TESTS= R_LIBS_USER='NULL' R_TESTS= R_LIBS_SITE='NULL' R_TESTS= '/Users/ripley/R/SAN/bin/R' --no-save --no-restore --no-echo --no-init-file --no-site-file --no-environ 2>&1 < '/var/folders/pk/n4bndnt1287ctrd_ftthnnnr0000gp/T//RtmpywT13m/working_dir/RtmpEvHFIi/filed57efe3f4f0' red_initialize.cpp:70:10: runtime error: member access within null pointer of type 'element_type' (aka 'RedatamAPI') #0 0x00010e1c0b70 in redatamEngine(std::__1::basic_string, std::__1::allocator>) red_initialize.cpp:70 #1 0x00010e1c24b8 in redatam_init_(std::__1::basic_string, std::__1::allocator>) red_initialize.cpp:90 #2 0x00010e1ac044 in _minired_redatam_init_ cpp11.cpp:70 #3 0x000105b5c684 in R_doDotCall dotcode.c:754 #4 0x000105d9ed90 in bcEval_loop eval.c:8700 #5 0x000105d4b778 in bcEval eval.c:7533 #6 0x000105d49984 in Rf_eval eval.c:1167 #7 0x000105d53f4c in R_execClosure eval.c:2398 #8 0x000105d4f1e0 in applyClosure_core eval.c:2314 #9 0x000105d4d498 in Rf_applyClosure eval.c:2333 #10 0x000105d4a2b0 in Rf_eval eval.c:1278 #11 0x000105ea02c8 in Rf_ReplIteration main.c:264 #12 0x000105ea432c in R_ReplConsole main.c:317 #13 0x000105ea4128 in run_Rmainloop main.c:1235 #14 0x000105ea4448 in Rf_mainloop main.c:1242 #15 0x0001044995ec in main Rmain.c:29 #16 0x00018da57dfc in start+0x1b4c (dyld:arm64e+0x1fdfc) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior red_initialize.cpp:70:10 red_initialize.cpp:70:10: runtime error: store to null pointer of type 'bool' #0 0x00010e1c0b80 in redatamEngine(std::__1::basic_string, std::__1::allocator>) red_initialize.cpp:70 #1 0x00010e1c24b8 in redatam_init_(std::__1::basic_string, std::__1::allocator>) red_initialize.cpp:90 #2 0x00010e1ac044 in _minired_redatam_init_ cpp11.cpp:70 #3 0x000105b5c684 in R_doDotCall dotcode.c:754 #4 0x000105d9ed90 in bcEval_loop eval.c:8700 #5 0x000105d4b778 in bcEval eval.c:7533 #6 0x000105d49984 in Rf_eval eval.c:1167 #7 0x000105d53f4c in R_execClosure eval.c:2398 #8 0x000105d4f1e0 in applyClosure_core eval.c:2314 #9 0x000105d4d498 in Rf_applyClosure eval.c:2333 #10 0x000105d4a2b0 in Rf_eval eval.c:1278 #11 0x000105ea02c8 in Rf_ReplIteration main.c:264 #12 0x000105ea432c in R_ReplConsole main.c:317 #13 0x000105ea4128 in run_Rmainloop main.c:1235 #14 0x000105ea4448 in Rf_mainloop main.c:1242 #15 0x0001044995ec in main Rmain.c:29 #16 0x00018da57dfc in start+0x1b4c (dyld:arm64e+0x1fdfc) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior red_initialize.cpp:70:10 *** caught segfault *** address 0x0, cause 'invalid permissions' Traceback: 1: fun(libname, pkgname) 2: doTryCatch(return(expr), name, parentenv, handler) 3: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 4: tryCatchList(expr, classes, parentenv, handlers) 5: tryCatch(fun(libname, pkgname), error = identity) 6: runHook(".onLoad", env, package.lib, package) 7: loadNamespace(package, lib.loc) 8: doTryCatch(return(expr), name, parentenv, handler) 9: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 10: tryCatchList(expr, classes, parentenv, handlers) 11: tryCatch({ ns <- loadNamespace(package, lib.loc) env <- attachNamespace(ns, pos = pos, deps, exclude, include.only)}, error = function(e) { P <- if (!is.null(cc <- conditionCall(e))) paste(" in", deparse(cc)[1L]) else "" msg <- gettextf("package or namespace load failed for %s%s:\n %s", sQuote(package), P, conditionMessage(e)) if (logical.return && !quietly) message(paste("Error:", msg), domain = NA) else stop(msg, call. = FALSE, domain = NA)}) 12: library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) 13: withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart("muffleMessage")) 14: suppressPackageStartupMessages(library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE)) 15: doTryCatch(return(expr), name, parentenv, handler) 16: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 17: tryCatchList(expr, classes, parentenv, handlers) 18: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))}) 19: try(suppressPackageStartupMessages(library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE))) 20: tools:::.test_load_package("minired", "/Users/ripley/R/packages/tests-SAN/minired.Rcheck/00LOCK-minired/00new") An irrecoverable exception occurred. R is aborting now ... ERROR: loading failed * removing ‘/Users/ripley/R/packages/tests-SAN/minired.Rcheck/minired’