Bug 1335067 - libasan linking fails with 5.3.1
Summary: libasan linking fails with 5.3.1
Keywords:
Status: CLOSED DUPLICATE of bug 1335011
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Carlos O'Donell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-11 09:29 UTC by Nikos Mavrogiannopoulos
Modified: 2016-05-11 09:51 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-11 09:51:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nikos Mavrogiannopoulos 2016-05-11 09:29:26 UTC
Description of problem:

libasan doesn't work after upgrading glibc to 2.22-15. I have no idea whether this is a glibc issue or a libasan issue; please reassign if needed.


How to reproduce:

glibc version: 2.22-15.fc23
libasan: 5.3.1-6

$ cat <<_EOF >c.c
int main()
{
  return 0;
}
_EOF

$ gcc -fsanitize=address -g -O2  -lasan c.c && ./a.out
==27564==AddressSanitizer CHECK failed: ../../../../libsanitizer/asan/asan_rtl.cc:556 "((!asan_init_is_running && "ASan init calls itself!")) != (0)" (0x0, 0x0)
    <empty stack>


If I downgrade glibc to 2.22-3.fc23 libasan works.

$ gcc -S -fsanitize=address -g -O2  -lasan c.c;./a.out 
$ echo $?
0

Comment 1 Florian Weimer 2016-05-11 09:51:41 UTC

*** This bug has been marked as a duplicate of bug 1335011 ***


Note You need to log in before you can comment on or make changes to this bug.