Debian Bug report logs - #1016041
libasan8: Should link to libatomic on armel

version graph

Package: libasan8; Maintainer for libasan8 is Debian GCC Maintainers <[email protected]>; Source for libasan8 is src:gcc-15 (PTS, buildd, popcon).

Reported by: Dmitry Shachnev <[email protected]>

Date: Mon, 25 Jul 2022 21:09:01 UTC

Severity: normal

Found in versions gcc-12/12.1.0-7, gcc-13/13.2.0-6

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian GCC Maintainers <[email protected]>:
Bug#1016041; Package libasan8. (Mon, 25 Jul 2022 21:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to Dmitry Shachnev <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian GCC Maintainers <[email protected]>. (Mon, 25 Jul 2022 21:09:03 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Dmitry Shachnev <[email protected]>
To: [email protected]
Subject: libasan8: Should link to libatomic on armel
Date: Tue, 26 Jul 2022 00:07:43 +0300
[Message part 1 (text/plain, inline)]
Package: libasan8
Version: 12.1.0-7

Dear Maintainer,

Here is the test case:

(sid_armel-dchroot)mitya57@amdahl:~$ echo 'int main() { return 0; }' > test.c
(sid_armel-dchroot)mitya57@amdahl:~$ gcc test.c
(sid_armel-dchroot)mitya57@amdahl:~$ gcc -fsanitize=address test.c
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabi/12/libasan.so: undefined reference to `__atomic_store_8'
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabi/12/libasan.so: undefined reference to `__atomic_load_8'
collect2: error: ld returned 1 exit status

libasan.so seems to use symbols from libatomic, but is not linked to it:

(sid_armel-dchroot)mitya57@amdahl:~$ ldd /usr/lib/gcc/arm-linux-gnueabi/12/libasan.so
	libdl.so.2 => /lib/arm-linux-gnueabi/libdl.so.2 (0xf7282000)
	libpthread.so.0 => /lib/arm-linux-gnueabi/libpthread.so.0 (0xf724f000)
	libm.so.6 => /lib/arm-linux-gnueabi/libm.so.6 (0xf71ae000)
	libc.so.6 => /lib/arm-linux-gnueabi/libc.so.6 (0xf7045000)
	libgcc_s.so.1 => /lib/arm-linux-gnueabi/libgcc_s.so.1 (0xf7014000)
	/lib/ld-linux.so.3 (0xf788e000)

I have not seen it on architectures other than armel yet.

--
Dmitry Shachnev
[signature.asc (application/pgp-signature, inline)]

Marked as found in versions gcc-13/13.2.0-6. Request was from James McCoy <[email protected]> to [email protected]. (Fri, 17 Nov 2023 13:33:10 GMT) (full text, mbox, link).


Information forwarded to [email protected], Debian GCC Maintainers <[email protected]>:
Bug#1016041; Package libasan8. (Thu, 01 Feb 2024 16:39:08 GMT) (full text, mbox, link).


Acknowledgement sent to Emanuele Rocca <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <[email protected]>. (Thu, 01 Feb 2024 16:39:08 GMT) (full text, mbox, link).


Message #12 received at [email protected] (full text, mbox, reply):

From: Emanuele Rocca <[email protected]>
To: Dmitry Shachnev <[email protected]>, [email protected]
Subject: Re: Bug#1016041: libasan8: Should link to libatomic on armel
Date: Thu, 1 Feb 2024 17:39:28 +0100
Hi,

On 2022-07-26 12:07, Dmitry Shachnev wrote:
> (sid_armel-dchroot)mitya57@amdahl:~$ gcc -fsanitize=address test.c
> /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabi/12/libasan.so: undefined reference to `__atomic_store_8'
> /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabi/12/libasan.so: undefined reference to `__atomic_load_8'
> collect2: error: ld returned 1 exit status
> libasan.so seems to use symbols from libatomic, but is not linked to it:
[...]

> I have not seen it on architectures other than armel yet.

A very similar issue is known upstream, but affecting powerpc:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110553



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 13:25:26 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.