R Under development (unstable) (2025-01-09 r87547) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > pkgname <- "LTRCforests" > source(file.path(R.home("share"), "R", "examples-header.R")) > options(warn = 1) > library('LTRCforests') Attaching package: ‘LTRCforests’ The following object is masked from ‘package:base’: print > > base::assign(".oldSearch", base::search(), pos = 'CheckExEnv') > base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv') > cleanEx() > nameEx("ltrccif") > ### * ltrccif > > flush(stderr()); flush(stdout()) > > ### Name: ltrccif > ### Title: Fit a LTRC conditional inference forest > ### Aliases: ltrccif > > ### ** Examples > > #### Example with time-varying data pbcsample > library(survival) > Formula = Surv(Start, Stop, Event) ~ age + alk.phos + ast + chol + edema > ## Fit an LTRCCIF on the time-invariant data, with mtry tuned with stepFactor = 3. > LTRCCIFobj = ltrccif(formula = Formula, data = pbcsample, ntree = 20L, stepFactor = 3) mtry = 3 OOB Brier score = 0.04690747 Searching left ... mtry = 1 OOB error = 0.0947421 Searching right ... mtry = 5 OOB error = 0.04611002 [1] "mtry is tuned to be 5" > > > > cleanEx() detaching ‘package:survival’ > nameEx("ltrcrrf") > ### * ltrcrrf > > flush(stderr()); flush(stdout()) > > ### Name: ltrcrrf > ### Title: Fit a LTRC relative risk forest > ### Aliases: ltrcrrf > > ### ** Examples > > #### Example with time-varying data pbcsample > library(survival) > Formula = Surv(Start, Stop, Event) ~ age + alk.phos + ast + chol + edema > # Built a LTRCRRF forest (based on bootstrapping subjects without replacement) > # on the time-varying data by specifying id: > LTRCRRFobj = ltrcrrf(formula = Formula, data = pbcsample, id = ID, stepFactor = 3, + ntree = 10L) LTRCforests.c:26911:57: runtime error: pointer index expression with base 0x000000000001 overflowed to 0xfffffffffffffff9 #0 0x7f69dc6613fc in rfsrcGrow /data/gannet/ripley/R/packages/tests-clang-UBSAN/LTRCforests/src/LTRCforests.c:26911:57 #1 0x55dde3ef08cb in R_doDotCall (/data/gannet/ripley/R/R-clang/bin/exec/R+0xf28cb) #2 0x55dde3ef11bd in do_dotcall (/data/gannet/ripley/R/R-clang/bin/exec/R+0xf31bd) #3 0x55dde3f2d482 in bcEval_loop eval.c #4 0x55dde3f26bbb in bcEval eval.c #5 0x55dde3f26344 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0x128344) #6 0x55dde3f3ee61 in R_execClosure eval.c #7 0x55dde3f3e34b in applyClosure_core eval.c #8 0x55dde3f26795 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0x128795) #9 0x55dde3f444a6 in do_set (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1464a6) #10 0x55dde3f2656f in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0x12856f) #11 0x55dde3f742c0 in Rf_ReplIteration (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1762c0) #12 0x55dde3f75c5e in run_Rmainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x177c5e) #13 0x55dde3f75cca in Rf_mainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x177cca) #14 0x55dde3e65947 in main (/data/gannet/ripley/R/R-clang/bin/exec/R+0x67947) #15 0x7f69eb02950f in __libc_start_call_main (/lib64/libc.so.6+0x2950f) (BuildId: 8257ee907646e9b057197533d1e4ac8ede7a9c5c) #16 0x7f69eb0295c8 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x295c8) (BuildId: 8257ee907646e9b057197533d1e4ac8ede7a9c5c) #17 0x55dde3e65864 in _start (/data/gannet/ripley/R/R-clang/bin/exec/R+0x67864) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior LTRCforests.c:26911:57 LTRCforests.c:26912:29: runtime error: load of misaligned address 0x000000000001 for type 'double', which requires 8 byte alignment 0x000000000001: note: pointer points here #0 0x7f69dc6612aa in rfsrcGrow /data/gannet/ripley/R/packages/tests-clang-UBSAN/LTRCforests/src/LTRCforests.c:26912:29 #1 0x55dde3ef08cb in R_doDotCall (/data/gannet/ripley/R/R-clang/bin/exec/R+0xf28cb) #2 0x55dde3ef11bd in do_dotcall (/data/gannet/ripley/R/R-clang/bin/exec/R+0xf31bd) #3 0x55dde3f2d482 in bcEval_loop eval.c #4 0x55dde3f26bbb in bcEval eval.c #5 0x55dde3f26344 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0x128344) #6 0x55dde3f3ee61 in R_execClosure eval.c #7 0x55dde3f3e34b in applyClosure_core eval.c #8 0x55dde3f26795 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0x128795) #9 0x55dde3f444a6 in do_set (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1464a6) #10 0x55dde3f2656f in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0x12856f) #11 0x55dde3f742c0 in Rf_ReplIteration (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1762c0) #12 0x55dde3f75c5e in run_Rmainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x177c5e) #13 0x55dde3f75cca in Rf_mainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x177cca) #14 0x55dde3e65947 in main (/data/gannet/ripley/R/R-clang/bin/exec/R+0x67947) #15 0x7f69eb02950f in __libc_start_call_main (/lib64/libc.so.6+0x2950f) (BuildId: 8257ee907646e9b057197533d1e4ac8ede7a9c5c) #16 0x7f69eb0295c8 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x295c8) (BuildId: 8257ee907646e9b057197533d1e4ac8ede7a9c5c) #17 0x55dde3e65864 in _start (/data/gannet/ripley/R/R-clang/bin/exec/R+0x67864) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior LTRCforests.c:26912:29 UndefinedBehaviorSanitizer:DEADLYSIGNAL ==3105730==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000001 (pc 0x7f69dc660bef bp 0x7ffffcf84410 sp 0x7ffffcf843d0 T3105730) ==3105730==The signal is caused by a READ memory access. ==3105730==Hint: address points to the zero page. #0 0x7f69dc660bef in rfsrcGrow /data/gannet/ripley/R/packages/tests-clang-UBSAN/LTRCforests/src/LTRCforests.c:26912:29 #1 0x55dde3ef08cb in R_doDotCall (/data/gannet/ripley/R/R-clang/bin/exec/R+0xf28cb) #2 0x55dde3ef11bd in do_dotcall (/data/gannet/ripley/R/R-clang/bin/exec/R+0xf31bd) #3 0x55dde3f2d482 in bcEval_loop eval.c #4 0x55dde3f26bbb in bcEval eval.c #5 0x55dde3f26344 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0x128344) #6 0x55dde3f3ee61 in R_execClosure eval.c #7 0x55dde3f3e34b in applyClosure_core eval.c #8 0x55dde3f26795 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0x128795) #9 0x55dde3f444a6 in do_set (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1464a6) #10 0x55dde3f2656f in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0x12856f) #11 0x55dde3f742c0 in Rf_ReplIteration (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1762c0) #12 0x55dde3f75c5e in run_Rmainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x177c5e) #13 0x55dde3f75cca in Rf_mainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x177cca) #14 0x55dde3e65947 in main (/data/gannet/ripley/R/R-clang/bin/exec/R+0x67947) #15 0x7f69eb02950f in __libc_start_call_main (/lib64/libc.so.6+0x2950f) (BuildId: 8257ee907646e9b057197533d1e4ac8ede7a9c5c) #16 0x7f69eb0295c8 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x295c8) (BuildId: 8257ee907646e9b057197533d1e4ac8ede7a9c5c) #17 0x55dde3e65864 in _start (/data/gannet/ripley/R/R-clang/bin/exec/R+0x67864) ==3105730==Register values: rax = 0x0000000000000001 rbx = 0x0000000000000001 rcx = 0x0000000000000000 rdx = 0x0000000000000000 rdi = 0x0000000000000000 rsi = 0x0000000000000000 rbp = 0x00007ffffcf84410 rsp = 0x00007ffffcf843d0 r8 = 0x0000000000000067 r9 = 0x0000000000000001 r10 = 0x0000000000000043 r11 = 0x0000000000000206 r12 = 0x00007f69dc6f0a40 r13 = 0x00007f69dc6f10a8 r14 = 0x000055ddf016f370 r15 = 0x000055dde43a6bd0 UndefinedBehaviorSanitizer can not provide additional info. SUMMARY: UndefinedBehaviorSanitizer: SEGV /data/gannet/ripley/R/packages/tests-clang-UBSAN/LTRCforests/src/LTRCforests.c:26912:29 in rfsrcGrow ==3105730==ABORTING