Add memory sanitizer flag to build_oai and fix some bugs
- add
--sanitize-memoryflag tobuild_oai. Note: you need to build with clang, gcc has no memory sanitizer. Build like thisCC=/usr/bin/clang CXX=/usr/bin/clang++ ./build_oai ... --sanitize-memory -
fix linking issues in some librariesthis leads to ODR violations, so there is now a separate patch that has to be applied before building with memory sanitizer - correctly initialize heap memory for TDL models (this might improve the behavior of
nr_ulsim) - correctly initialize memory in PUCCH decoder
- tested:
- works:
pucchsimsmallblocktestldpctestpolartestnr_dlschsimnr_ulschsimnr_pbchsim-
nr_prachsimexcept one that fails with segfault?
- could not test:
-
nr_dlsim,nr_ulsimbecause of this error:
-
- problem: config module is not correctly loaded, so you cannot run
nr-softmodemornr-uesoftmodem.
- works:
Edited by Robert Schmidt