richfitz / thor

:zap::computer::zap: R client for the Lightning Memory-Mapped Database

Home Page:https://richfitz.github.io/thor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UBSAN errors on duplicated data

richfitz opened this issue · comments

Minimal R to trigger the issue:

env <- thor::mdb_env(tempfile(), dupsort = TRUE)
txn <- env$begin(write = TRUE)
txn$put("a", "A")
txn$put("a", "B")

of course setting the environment up is harder...

will be nice to see if a standalone c program has the same problem

docker run --rm -ti --security-opt seccomp=unconfined wch1/r-debug

git clone https://github.com/richfitz/thor
cd thor
git -C thor checkout develop

RDcsan -e 'install.packages(c("R6", "storr"))'
RDcsan -e 'install.packages(c("ids", "knitr", "rmarkdown", "testthat"))'
RDcsan CMD INSTALL --preclean thor

RDcsan CMD build thor
RDcsan CMD check thor_1.0.1.tar.gz
docker run --rm -ti --security-opt seccomp=unconfined wch1/r-debug

git clone https://github.com/richfitz/thor
git -C thor checkout develop

RDcsan -e 'install.packages(c("R6", "storr"))'
RDcsan -e 'install.packages(c("ids", "knitr", "rmarkdown", "testthat"))'
RDcsan CMD INSTALL --preclean --install-tests thor

RDcsan

env <- thor::mdb_env(tempfile(), dupsort = TRUE)
txn <- env$begin(write = TRUE)
txn$put("a", "A")
txn$put("a", "B")