Uncommenting UNINIT_READ_SANITY in the Makefile without uncommenting ALLOC_SANITY as well results in a compilation error:
rm -rf build/* tests_perf_analysis.txt big_tests_perf_analysis.txt gmon.out test_output.txt *.dSYM core* profiler.data
mkdir -p build/
make library
clang -Wall -Iinclude/ -DTHREAD_SUPPORT=1 -pthread -DTHREAD_ZONE_CACHE=1 -DPRE_POPULATE_PAGES=0 -DSMALL_MEM_STARTUP=0 -DSANITIZE_CHUNKS=0 -DFUZZ_MODE=0 -DPERM_FREE_REALLOC=0 -DDISABLE_CANARY=0 -Werror -pedantic -Wno-pointer-arith -Wno-gnu-zero-variadic-macro-arguments -Wno-format-pedantic -DMALLOC_HOOK=1 -fvisibility=hidden -std=c11 -DUNINIT_READ_SANITY=1 -DCPU_PIN=0 -DEXPERIMENTAL=0 -fPIC -shared -O2 -fstrict-aliasing -Wstrict-aliasing src/*.c -o build/libisoalloc.so
src/iso_alloc.c:368:5: error: use of undeclared identifier '_uf_fd'
_uf_fd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
^
src/iso_alloc.c:370:8: error: use of undeclared identifier '_uf_fd'
if(_uf_fd == ERR) {
^
src/iso_alloc.c:374:5: error: use of undeclared identifier '_uffd_api'
_uffd_api.api = UFFD_API;
^
src/iso_alloc.c:375:5: error: use of undeclared identifier '_uffd_api'
_uffd_api.features = 0;
^
src/iso_alloc.c:377:14: error: use of undeclared identifier '_uf_fd'
if(ioctl(_uf_fd, UFFDIO_API, &_uffd_api) == ERR) {
^
src/iso_alloc.c:377:35: error: use of undeclared identifier '_uffd_api'
if(ioctl(_uf_fd, UFFDIO_API, &_uffd_api) == ERR) {
^
6 errors generated.
make: *** [Makefile:137: library] Error 1
A note in the Readme and Makefile that uncommenting ALLOC_SANITY is required to enable UNINIT_READ_SANITY would be helpful.
Uncommenting UNINIT_READ_SANITY in the Makefile without uncommenting ALLOC_SANITY as well results in a compilation error:
A note in the Readme and Makefile that uncommenting ALLOC_SANITY is required to enable UNINIT_READ_SANITY would be helpful.