* using log directory ‘/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck’ * using R Under development (unstable) (2025-06-14 r88315) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc-14 (Debian 14.2.0-19) 14.2.0 GNU Fortran (Debian 14.2.0-19) 14.2.0 * running under: Debian GNU/Linux 13 (trixie) * using session charset: UTF-8 * using option ‘--use-valgrind’ * checking for file ‘FLSSS/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘FLSSS’ version ‘9.2.7’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking serialization versions ... OK * checking whether package ‘FLSSS’ can be installed ... [171s/174s] OK * used C++ compiler: ‘g++-14 (Debian 14.2.0-19) 14.2.0’ * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s/0s] OK * checking whether the package can be loaded with stated dependencies ... [0s/0s] OK * checking whether the package can be unloaded cleanly ... [0s/0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK * checking whether the namespace can be unloaded cleanly ... [0s/0s] OK * checking loading without being on the library search path ... [0s/0s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [6s/6s] OK * checking Rd files ... [0s/0s] OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking line endings in shell scripts ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking examples ... [0m/30m] ERROR Running examples in ‘FLSSS-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: arbFLSSS > ### Title: Multidimensional exact subset sum in arbitrary precision and > ### magnitude > ### Aliases: arbFLSSS > > ### ** Examples > > set.seed(1) > N = 200L # Superset size. > len = 20L # Subset size. > V = sapply(1:N, function(i) # Generate a set where every "number" has at most + # 100 digits. + { + a = 0:9 + left = sample(a, size = sample(50, 1), replace = TRUE) + right = sample(a, size = sample(50, 1), replace = TRUE) + x = paste0(paste0(left, collapse = ""), ".", paste0(right, collapse = "")) + if (runif(1) < 0.5) x = paste0("-", x) # Randomly add a negative sign. + x + }) > str(V) chr [1:200] "-6016.1204495968448844198032599533986587867596295" ... > > > sol = sample(N, len) # Make a solution. > target = FLSSS::addNumStrings(V[sol]) # An unexposed helper function. > > > # Uncomment the following block for testing the code since CRAN check uses > # Valgrind, which takes over 5s to run. > # system.time({ > # rst = FLSSS::arbFLSSS( > # len = len, V = Vstr, target, givenKsumTable = NULL, tlimit = 60, > # solutionNeed = 1e9, maxCore = 2, ksumK = 4, verbose = TRUE) > # }) > # > # > # # Validation. > # all(unlist(lapply(rst, function(x) > # { > # apply(Vstr, 2, function(u) FLSSS:::addNumStrings(u[x])) > # })) == targetStr) > > > > # ============================================================================== > # Mine in a multidimensional set. > # ============================================================================== > set.seed(2) > d = 4L # Set dimension. > N = 50L # Set size. > len = 10L # Subset size. > roundN = 4L # For rounding the numeric values before conversion to strings. > > > V = matrix(round(runif(N * d, -1, 1), roundN), nrow = N) # Make superset. > optionSave = options() > options(scipen = 999) # Ensure numeric-to-string conversion does not > # produce strings like "2e-3". > Vstr = matrix(as.character(V), nrow = N) > > > sol = sample(N, len) # Make a solution. > target = round(colSums(V[sol, ]), roundN) # Target subset sum. > targetStr = as.character(target) > > > system.time({ + rst = FLSSS::arbFLSSS( + len = len, V = Vstr, target, givenKsumTable = NULL, tlimit = 60, + solutionNeed = 1e9, maxCore = 2, ksumK = 4, verbose = TRUE) + }) Transform string input to bit streams and create flsss objects to mine.. ==3827508== ==3827508== Process terminating with default action of signal 15 (SIGTERM) ==3827508== at 0x1FF7B068: CharlieThreadPool::parFor(unsigned long, unsigned long, std::function, unsigned long, std::function, std::function) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/arbitraryDimFLSSS/charlieThreadPool.hpp:136) ==3827508== by 0x1FFA36A2: stringMatTo64bitIntMat(Rcpp::Matrix<16, Rcpp::PreserveStorage>&, Rcpp::Vector<16, Rcpp::PreserveStorage>&, int, CharlieThreadPool&, std::vector >&, std::vector >&, std::vector >&, std::vector >&, std::vector >&, int&, bool) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/arbitraryDimFLSSS/intString2intArray.hpp:394) ==3827508== by 0x1FFA7D15: bool makeMflsssObjs(int, Rcpp::Matrix<16, Rcpp::PreserveStorage>, Rcpp::Vector<16, Rcpp::PreserveStorage>, int, int, CharlieThreadPool&, std::vector, std::allocator > >&, std::vector >, std::allocator > > >&, Shared&, double, std::vector >&, TriM&, KsumLookUpTable&, bool) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/arbitraryDimFLSSS/mflsssDecomp.hpp:43) ==3827508== by 0x1FFA8B2B: Rcpp::Vector<19, Rcpp::PreserveStorage> mflsssArb(int, Rcpp::Matrix<16, Rcpp::PreserveStorage>, Rcpp::Vector<16, Rcpp::PreserveStorage>, int, CharlieThreadPool&, int, double, Rcpp::Vector<19, Rcpp::PreserveStorage>, int, int, bool) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/arbitraryDimFLSSS/mflsssDecomp.hpp:253) ==3827508== by 0x1FF7961A: arbFLSSS(int, Rcpp::Matrix<16, Rcpp::PreserveStorage>, Rcpp::Vector<16, Rcpp::PreserveStorage>, SEXPREC*, int, int, double, int, int, int, bool) (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/mflsssArb.cpp:32) ==3827508== by 0x1FF1494D: _FLSSS_arbFLSSS (/home/hornik/tmp/CRAN_special_valgrind/FLSSS.Rcheck/00_pkg_src/FLSSS/src/RcppExports.cpp:329) ==3827508== by 0x495D863: R_doDotCall (/home/hornik/src/R/src/main/dotcode.c:801) ==3827508== by 0x49A2702: bcEval_loop (/home/hornik/src/R/src/main/eval.c:8668) ==3827508== by 0x49AA6B5: bcEval (/home/hornik/src/R/src/main/eval.c:7501) ==3827508== by 0x49AA6B5: bcEval (/home/hornik/src/R/src/main/eval.c:7486) ==3827508== by 0x49AAA2A: Rf_eval (/home/hornik/src/R/src/main/eval.c:1167) ==3827508== by 0x49ACB2D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2393) ==3827508== by 0x49AD88C: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2306) ==3827508== ==3827508== HEAP SUMMARY: ==3827508== in use at exit: 59,912,766 bytes in 12,890 blocks ==3827508== total heap usage: 35,010,407 allocs, 34,997,517 frees, 320,854,137 bytes allocated ==3827508== Examples with CPU (user + system) or elapsed time > 5s user system elapsed FLSSS 277.298 11.645 289.029 * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR