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 subsys/debug/Kconfig:61

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:12

Menu path: (Top) → 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.)