UBSAN errors on duplicated data
richfitz opened this issue · comments
Rich FitzJohn commented
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
Rich FitzJohn commented
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
Rich FitzJohn commented
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")