Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASAN error in nqrecreateindices.c #5598

Closed
mattdowle opened this issue Feb 16, 2023 · 0 comments · Fixed by #5599
Closed

ASAN error in nqrecreateindices.c #5598

mattdowle opened this issue Feb 16, 2023 · 0 comments · Fixed by #5599
Milestone

Comments

@mattdowle
Copy link
Member

* using log directory ‘/data/gannet/ripley/R/packages/tests-clang-SAN/data.table.Rcheck’
* using R Under development (unstable) (2023-01-18 r83635)
* using platform: x86_64-pc-linux-gnu (64-bit)
* R was compiled by
    clang version 15.0.7
    GNU Fortran (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4)
* running under: Fedora Linux 36 (Workstation Edition)
* using session charset: UTF-8
* using option ‘--no-stop-on-test-error’
* checking for file ‘data.table/DESCRIPTION’ ... OK
* this is package ‘data.table’ version ‘1.14.6’
* 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 ‘data.table’ can be installed ... [172s/166s] OK
* used C compiler: ‘clang version 15.0.7’
* 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 compiled code ... OK
* checking installed files from ‘inst/doc’ ... OK
* checking files in ‘vignettes’ ... OK
* checking examples ... [17s/16s] OK
* checking tests ... [555s/516s] ERROR
  Running ‘autoprint.R’
  Comparing ‘autoprint.Rout’ to ‘autoprint.Rout.save’ ... OK
  Running ‘froll.R’ [206s/191s]
  Running ‘knitr.R’
  Comparing ‘knitr.Rout’ to ‘knitr.Rout.save’ ... OK
  Running ‘main.R’ [323s/301s]
  Running ‘nafill.R’
  Running ‘other.R’
  Running ‘types.R’
Running the tests in ‘tests/main.R’ failed.
Complete output:
  > require(data.table)
  Loading required package: data.table
  > 
  > test.data.table()  # runs the main test suite of 5,000+ tests in /inst/tests/tests.Rraw
  getDTthreads(verbose=TRUE):
    OpenMP version (_OPENMP)       201811
    omp_get_num_procs()            24
    R_DATATABLE_NUM_PROCS_PERCENT  unset (default 50)
    R_DATATABLE_NUM_THREADS        unset
    R_DATATABLE_THROTTLE           unset (default 1024)
    omp_get_thread_limit()         2
    omp_get_max_threads()          24
    OMP_THREAD_LIMIT               2
    OMP_NUM_THREADS                unset
    RestoreAfterFork               true
    data.table is using 2 threads with throttle==1024. See ?setDTthreads.
  test.data.table() running: /data/gannet/ripley/R/packages/tests-clang-SAN/data.table.Rcheck/data.table/tests/tests.Rraw.bz2 
  Test 1613.605 ran without errors but failed check that x equals y:
  > x = all.equal(data.table(a = 1), try(stop("this wont work"), silent = TRUE),      check.attributes = FALSE) 
  First 1 of 1 (type 'character'): 
  [1] "Datasets have different column modes. First 3: a(numeric!=character)"
  > y = "target is data.table but current is not and failed to be coerced to it" 
  First 1 of 1 (type 'character'): 
  [1] "target is data.table but current is not and failed to be coerced to it"
  1 string mismatch
  =================================================================
  ==1738940==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x625005a75018 at pc 0x7f144f9c860a bp 0x7ffc725c6c50 sp 0x7ffc725c6c48
  READ of size 4 at 0x625005a75018 thread T0
      #0 0x7f144f9c8609 in nqRecreateIndices /data/gannet/ripley/R/packages/tests-clang-SAN/data.table/src/nqrecreateindices.c:29:9
      #1 0x55d98c2f1700 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:880:17
      #2 0x55d98c45338f in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7947:21
      #3 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #4 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #5 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #6 0x55d98c5c378c in dispatchMethod /data/gannet/ripley/R/svn/R-devel/src/main/objects.c:436:16
      #7 0x55d98c5c266c in Rf_usemethod /data/gannet/ripley/R/svn/R-devel/src/main/objects.c:476:10
      #8 0x55d98c4adf28 in Rf_DispatchOrEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3900:9
      #9 0x55d98c793d30 in R_DispatchOrEvalSP /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:671:16
      #10 0x55d98c7937ef in do_subset /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:691:8
      #11 0x55d98c434e31 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1088:12
      #12 0x55d98c793970 in R_DispatchOrEvalSP /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:657:11
      #13 0x55d98c7a4dea in do_subset3 /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:1265:8
      #14 0x55d98c434e31 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1088:12
      #15 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #16 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #17 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #18 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #19 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #20 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #21 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #22 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #23 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #24 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #25 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #26 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #27 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #28 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #29 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #30 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #31 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #32 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #33 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #34 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #35 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #36 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #37 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #38 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #39 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #40 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #41 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #42 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #43 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #44 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #45 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #46 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #47 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #48 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #49 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #50 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #51 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #52 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #53 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #54 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #55 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #56 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #57 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #58 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #59 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #60 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #61 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #62 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #63 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #64 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #65 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #66 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #67 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #68 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #69 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #70 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #71 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #72 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #73 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #74 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #75 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #76 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #77 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #78 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #79 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #80 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #81 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #82 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #83 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #84 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #85 0x55d98c435393 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1136:12
      #86 0x55d98c4aaa29 in do_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3644:9
      #87 0x55d98c44a2a9 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7391:14
      #88 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #89 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #90 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #91 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #92 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #93 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #94 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #95 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #96 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #97 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #98 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #99 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #100 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #101 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #102 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #103 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #104 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #105 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #106 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #107 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #108 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #109 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #110 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #111 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #112 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #113 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #114 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #115 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #116 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #117 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #118 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #119 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #120 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #121 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #122 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #123 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #124 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #125 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #126 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #127 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #128 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #129 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #130 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #131 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #132 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #133 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #134 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #135 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #136 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #137 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #138 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #139 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #140 0x55d98c459200 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7359:12
      #141 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #142 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #143 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #144 0x55d98c435393 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1136:12
      #145 0x55d98c56d2f6 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:262:2
      #146 0x55d98c570980 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:314:11
      #147 0x55d98c570776 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1194:5
      #148 0x55d98c570ac2 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1201:5
      #149 0x55d98c0ec36c in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5
      #150 0x7f145fe2950f in __libc_start_call_main (/lib64/libc.so.6+0x2950f) (BuildId: 85c438f4ff93e21675ff174371c9c583dca00b2c)
      #151 0x7f145fe295c8 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x295c8) (BuildId: 85c438f4ff93e21675ff174371c9c583dca00b2c)
      #152 0x55d98c02a264 in _start (/data/gannet/ripley/R/R-clang-SAN/bin/exec/R+0x31f264)
  
  0x625005a75018 is located 0 bytes to the right of 7960-byte region [0x625005a73100,0x625005a75018)
  allocated by thread T0 here:
      #0 0x55d98c0aea3e in malloc /data/gannet/ripley/Sources2/LLVM/15.0/llvm-project-15.0.7.src/compiler-rt/lib/asan/asan_malloc_linux.cpp:69:3
      #1 0x55d98c584b8c in GetNewPage /data/gannet/ripley/R/svn/R-devel/src/main/memory.c:974:12
      #2 0x55d98c58b4dc in Rf_allocVector3 /data/gannet/ripley/R/svn/R-devel/src/main/memory.c:2814:6
      #3 0x55d98c78f8c2 in Rf_allocVector /data/gannet/ripley/R/svn/R-devel/src/include/Rinlinedfuns.h:595:12
      #4 0x55d98c78f8c2 in Rf_ExtractSubset /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:134:5
      #5 0x55d98c79513d in VectorSubset /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:216:19
      #6 0x55d98c79513d in do_subset_dflt /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:863:2
      #7 0x55d98c4c78a5 in VECSUBSET_PTR /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5925:10
      #8 0x55d98c46c420 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7616:23
      #9 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #10 0x55d98c498ae6 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c
      #11 0x55d98c4944e3 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2109:16
      #12 0x55d98c5c378c in dispatchMethod /data/gannet/ripley/R/svn/R-devel/src/main/objects.c:436:16
      #13 0x55d98c5c266c in Rf_usemethod /data/gannet/ripley/R/svn/R-devel/src/main/objects.c:476:10
      #14 0x55d98c4adf28 in Rf_DispatchOrEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3900:9
      #15 0x55d98c793d30 in R_DispatchOrEvalSP /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:671:16
      #16 0x55d98c7937ef in do_subset /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:691:8
      #17 0x55d98c434e31 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1088:12
      #18 0x55d98c793970 in R_DispatchOrEvalSP /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:657:11
      #19 0x55d98c7a4dea in do_subset3 /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:1265:8
      #20 0x55d98c434e31 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1088:12
      #21 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #22 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #23 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #24 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #25 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #26 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #27 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #28 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #29 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
      #30 0x55d98c434a97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1013:8
      #31 0x55d98c491e8e in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:833:8
      #32 0x55d98c4c35d8 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5412:15
      #33 0x55d98c4c35d8 in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5453:14
      #34 0x55d98c46b2c6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7143:20
  
  SUMMARY: AddressSanitizer: heap-buffer-overflow /data/gannet/ripley/R/packages/tests-clang-SAN/data.table/src/nqrecreateindices.c:29:9 in nqRecreateIndices
  Shadow bytes around the buggy address:
    0x0c4a80b469b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x0c4a80b469c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x0c4a80b469d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x0c4a80b469e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    0x0c4a80b469f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  =>0x0c4a80b46a00: 00 00 00[fa]fa fa fa fa fa fa fa fa fa fa fa fa
    0x0c4a80b46a10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
    0x0c4a80b46a20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
    0x0c4a80b46a30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
    0x0c4a80b46a40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
    0x0c4a80b46a50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  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
  ==1738940==ABORTING
* checking package vignettes in ‘inst/doc’ ... OK
* checking re-building of vignette outputs ... [230s/210s] OK
* DONE
Status: 1 ERROR
@mattdowle mattdowle added the bug label Feb 16, 2023
@mattdowle mattdowle added this to the 1.14.8 milestone Feb 16, 2023
@mattdowle mattdowle removed the bug label Feb 16, 2023
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Jan 25, 2024
# data.table [v1.14.10](https://github.com/Rdatatable/data.table/milestone/20)

## NOTES

1. Maintainer of the package for CRAN releases is from now on Tyson
  Barrett (@TysonStanley),
  [#5710](Rdatatable/data.table#5710).

2. Updated internal code for breaking change of `is.atomic(NULL)` in
  R-devel,
  [#5691](Rdatatable/data.table#5691). Thanks to
  Martin Maechler for the patch.

3. Fix multiple test concerning coercion to missing complex numbers,
  [#5695](Rdatatable/data.table#5695) and
  [#5748](Rdatatable/data.table#5748). Thanks
  to @MichaelChirico and @ben-schwen for the patches.

4. Fix multiple format warnings (e.g., -Wformat)
  [#5712](Rdatatable/data.table#5712),
  [#5781](Rdatatable/data.table#5781),
  [#5880](Rdatatable/data.table#5800),
  [#5786](Rdatatable/data.table#5786). Thanks to
  @MichaelChirico and @jangorecki for the patches.



# data.table [v1.14.8](https://github.com/Rdatatable/data.table/milestone/28?closed=1)  (17 Feb 2023)

## NOTES

1. Test 1613.605 now passes changes to `as.data.frame()` in R-devel,
  [#5597](Rdatatable/data.table#5597). Thanks to
  Avraham Adler for reporting.

2. An out of bounds read when combining non-equi join with `by=.EACHI`
  has been found and fixed thanks to clang ASAN,
  [#5598](Rdatatable/data.table#5598). There
  was no bug or consequence because the read was followed (now preceded)
  by a bounds test.

3. `.rbind.data.table` (note the leading `.`) is no longer exported
  when `data.table` is installed in R>=4.0.0 (Apr 2020),
  [#5600](Rdatatable/data.table#5600). It was
  never documented which R-devel now detects and warns about. It is only
  needed by `data.table` internals to support R<4.0.0; see note 1 in
  v1.12.6 (Oct 2019) below in this file for more details.


# data.table [v1.14.6](https://github.com/Rdatatable/data.table/milestone/27?closed=1)  (16 Nov 2022)

## BUG FIXES

1. `fread()` could leak memory,
  [#3292](Rdatatable/data.table#3292). Thanks
  to @patrickhowerter for reporting, and Jim Hester for the fix. The fix
  requires R 3.4.0 or later. Loading `data.table` in earlier versions
  now highlights this issue on startup, asks users to upgrade R, and
  warns that we intend to upgrade `data.table`'s dependency from 8 year
  old R 3.1.0 (April 2014) to 5 year old R 3.4.0 (April 2017).

## NOTES

1. Test 1962.098 has been modified to pass latest changes to `POSIXt`
  in R-devel.

2. `test.data.table()` no longer creates `DT` in `.GlobalEnv`, a CRAN
  policy violation,
  [#5514](Rdatatable/data.table#5514). No
  other writes occurred to `.GlobalEnv` and release procedures have been
  improved to prevent this happening again.

3. The memory usage of the test suite has been halved,
  [#5507](Rdatatable/data.table#5507).


# data.table [v1.14.4](https://github.com/Rdatatable/data.table/milestone/26?closed=1)  (17 Oct 2022)

## NOTES

1. gcc 12.1 (May 2022) now detects and warns about an always-false
  condition (`-Waddress`) in `fread` which caused a small efficiency
  saving never to be invoked,
  [#5476](Rdatatable/data.table#5476). Thanks to
  CRAN for testing latest versions of compilers.

2. `update.dev.pkg()` has been renamed `update_dev_pkg()` to get out
  of the way of the `stats::update` generic function,
  [#5421](Rdatatable/data.table#5421). This is a
  utility function which upgrades the version of `data.table` to the
  latest commit in development which has passed all tests. As such we
  don't expect any backwards compatibility concerns. Its manual page was
  causing an intermittent hang/crash from `R CMD check` on Windows-only
  on CRAN which we hope will be worked around by changing its name.

3. Internal C code now passes `-Wstrict-prototypes` to satisfy the
  warnings now displayed on CRAN,
  [#5477](Rdatatable/data.table#5477).

4. `write.csv` in R-devel no longer responds to
  `getOption("digits.secs")` for `POSIXct`,
  [#5478](Rdatatable/data.table#5478). This
  caused our tests of `fwrite(, dateTimeAs="write.csv")` to fail on
  CRAN's daily checks using latest daily R-devel. While R-devel
  discussion continues, and currently it seems like the change is
  intended with further changes possible, this `data.table` release
  massages our tests to pass on latest R-devel. The idea is to try to
  get out of the way of R-devel changes in this regard until the new
  behavior of `write.csv` is released and confirmed. Package updates are
  not accepted on CRAN if they do not pass the latest daily version of
  R-devel, even if R-devel changes after the package update is
  submitted. If the change to `write.csv()` stands, then a future
  release of `data.table` will be needed to make `fwrite(,
  dateTimeAs="write.csv")` match `write.csv()` output again in that
  future version of R onwards. If you use an older version of
  `data.table` than said future one in the said future version of R,
  then `fwrite(, dateTimeAs="write.csv")` may not match `write.csv()` if
  you are using `getOption("digits.secs")` too. However, you can always
  check that your installation of `data.table` works in your version of
  R on your platform by simply running `test.data.table()`
  yourself. Doing so would detect such a situation for you: test 1741
  would fail in this case. `test.data.table()` runs the entire suite of
  tests and is always available to you locally. This way you do not need
  to rely on our statements about which combinations of versions of R
  and `data.table` on which platforms we have tested and support; just
  run `test.data.table()` yourself. Having said that, because test 1741
  has been relaxed in this release in order to be accepted on CRAN to
  pass latest R-devel, this won't be true for this particular release in
  regard to this particular test.

    ```R
    $ R --vanilla
    R version 4.2.1 (2022-06-23) -- "Funny-Looking Kid"
    > DF = data.frame(A=as.POSIXct("2022-10-01 01:23:45.012"))
    > options(digits.secs=0)
    > write.csv(DF)
    "","A"
    "1",2022-10-01 01:23:45
    > options(digits.secs=3)
    > write.csv(DF)
    "","A"
    "1",2022-10-01 01:23:45.012

    $ Rdevel --vanilla
    R Under development (unstable) (2022-10-06 r83040) -- "Unsuffered Consequences"
    > DF = data.frame(A=as.POSIXct("2022-10-01 01:23:45.012"))
    > options(digits.secs=0)
    > write.csv(DF)
    "","A"
    "1",2022-10-01 01:23:45.012
    ```

5. Many thanks to Kurt Hornik for investigating potential impact of a
  possible future change to `base::intersect()` on empty input,
  providing a patch so that `data.table` won't break if the change is
  made to R, and giving us plenty of notice,
  [#5183](Rdatatable/data.table#5183).

6. `datatable.[dll|so]` has changed name to `data_table.[dll|so]`,
  [#4442](Rdatatable/data.table#4442). Thanks to
  Jan Gorecki for the PR. We had previously removed the `.` since `.` is
  not allowed by the following paragraph in the Writing-R-Extensions
  manual. Replacing `.` with `_` instead now seems more consistent with
  the last sentence.

    > ... the basename of the DLL needs to be both a valid file name
      and valid as part of a C entry point (e.g. it cannot contain
      ‘.’): for portable code it is best to confine DLL names to be
      ASCII alphanumeric plus underscore. If entry point R_init_lib is
      not found it is also looked for with ‘.’ replaced by ‘_’.


# data.table [v1.14.2](https://github.com/Rdatatable/data.table/milestone/24?closed=1)  (27 Sep 2021)

## NOTES

1. clang 13.0.0 (Sep 2021) requires the system header `omp.h` to be
  included before R's headers,
  [#5122](Rdatatable/data.table#5122). Many
  thanks to Prof Ripley for testing and providing a patch file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant