CONFIG_ASAN_NOP_DLCLOSE¶
Override host OS dlclose() with a NOP
Type: bool
Help¶
Override host OS dlclose() with a NOP.
This NOP implementation is needed as workaround for a known limitation in
LSAN (leak sanitizer) that if dlcose is called before performing the leak
check, "<unknown module>" is reported in the stack traces during the leak
check and these can not be suppressed, see
https://github.com/google/sanitizers/issues/89 for more info.
Kconfig definition¶
At <Zephyr Subsystem>/debug/Kconfig:111
Included via Kconfig:8 → Kconfig.zephyr:44 → <Zephyr Subsystem>/Kconfig:17
Menu path: (Top) → Sub Systems and OS Services → Debugging Options → Build with address sanitizer
config ASAN_NOP_DLCLOSE
    bool "Override host OS dlclose() with a NOP"
    default y if HAS_SDL
    depends on ASAN
    help
      Override host OS dlclose() with a NOP.
      This NOP implementation is needed as workaround for a known limitation in
      LSAN (leak sanitizer) that if dlcose is called before performing the leak
      check, "<unknown module>" is reported in the stack traces during the leak
      check and these can not be suppressed, see
      https://github.com/google/sanitizers/issues/89 for more info.
(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)