After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793332 - build: allow building with address sanitizer only for executables
build: allow building with address sanitizer only for executables
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2018-02-09 12:48 UTC by Beniamino Galvani
Modified: 2020-11-12 14:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Beniamino Galvani 2018-02-09 12:48:14 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.
Comment 1 Beniamino Galvani 2018-02-09 12:49:42 UTC
Please review branch bg/asan-exec-bgo793332.
Comment 2 Beniamino Galvani 2018-04-06 08:04:13 UTC
Branch merged to master (meson support still to do).

https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=dc3eaaaac6f96cb94cafab37fe3083a4ba4b3e2d
Comment 3 André Klapper 2020-11-12 14:28:36 UTC
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).