Add memory sanitizer flag to build_oai and fix some bugs
- add
--sanitize-memory
flag 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:
pucchsim
smallblocktest
ldpctest
polartest
nr_dlschsim
nr_ulschsim
nr_pbchsim
-
nr_prachsim
except one that fails with segfault?
- could not test:
-
nr_dlsim
,nr_ulsim
because of this error:
-
- problem: config module is not correctly loaded, so you cannot run
nr-softmodem
ornr-uesoftmodem
.
- works:
Edited by Robert Schmidt