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.

Direct dependencies

ASAN

(Includes any dependencies from ifs and menus.)

Default

Kconfig definition

At <Zephyr>/subsys/debug/Kconfig:116

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:34<Zephyr>/subsys/Kconfig:16

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.)