[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#930430: libasan5: AddressSanitizer breaks when LD_PRELOAD is defined



Package: libasan5
Version: 8.3.0-7
Severity: normal

When LD_PRELOAD is defined (which can be a consequence of gtk3-nocsd
being installed and the user being in an X11 session), I get:

zira:~> gcc -fsanitize=address t.c
zira:~> ./a.out
==11059==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.

Note also that this isn't even documented.

BTW, in my case (LD_PRELOAD=libgtk3-nocsd.so.0), libgtk3-nocsd.so.0
is completely unrelated to the program, thus this is a spurious
error.

-- System Information:
Debian Release: 10.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libasan5 depends on:
ii  gcc-8-base  8.3.0-7
ii  libc6       2.28-10
ii  libgcc1     1:8.3.0-7
ii  libstdc++6  8.3.0-7

libasan5 recommends no packages.

libasan5 suggests no packages.

-- no debconf information


Reply to: