Skip to content

Add memory sanitizer flag to build_oai and fix some bugs

Robert Schmidt requested to merge use-memsan into develop
  • add --sanitize-memory flag to build_oai. Note: you need to build with clang, gcc has no memory sanitizer. Build like this
    CC=/usr/bin/clang CXX=/usr/bin/clang++ ./build_oai ... --sanitize-memory
  • fix linking issues in some libraries this 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 or nr-uesoftmodem.
Edited by Robert Schmidt

Merge request reports

Loading