GNOME Bugzilla – Bug 793332
build: allow building with address sanitizer only for executables
Last modified: 2020-11-12 14:28:36 UTC
Shared libraries built with sanitizers are a bit inconvenient to use because they require that any application linking to them is run with libasan preloaded using LD_PRELOAD. This limitation makes the sanitizer support less useful because applications will refuse to start unless there is a special environment variable set. Let's turn the --enable-address-sanitizer configure flag into --with-address-sanitizer=yes|no|exec so that is possible to enable asan only for executables. In this way, we can enable the address sanitizer (for executables only) in our CI builds without side effects.
Please review branch bg/asan-exec-bgo793332.
Branch merged to master (meson support still to do). https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=dc3eaaaac6f96cb94cafab37fe3083a4ba4b3e2d
bugzilla.gnome.org is being shut down in favor of a GitLab instance. We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time. If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/ Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).