RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1678323 - binutils fails to compile with -fsanitize=address
Summary: binutils fails to compile with -fsanitize=address
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: binutils
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Nick Clifton
QA Contact: Miloš Prchlík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-18 13:59 UTC by Alexandra Petlanová Hájková
Modified: 2021-09-17 14:30 UTC (History)
7 users (show)

Fixed In Version: binutils-2.30-74.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1709720 (view as bug list)
Environment:
Last Closed: 2020-11-04 01:41:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)
Proposed patch (411 bytes, patch)
2019-02-18 16:21 UTC, Nick Clifton
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Sourceware 22318 0 P2 RESOLVED ../bfd/.libs/libbfd.a(plugin.o): undefined reference to symbol 'dlsym@@GLIBC_2.16' 2020-09-08 10:59:09 UTC

Description Alexandra Petlanová Hájková 2019-02-18 13:59:49 UTC
Description of problem:
binutils fails to compile with CFLAGS='-fsanitize=address -ggdb' CXXFLAGS='-fsanitize=address -ggdb' LDFLAGS='-fsanitize=address'

Version-Release number of selected component (if applicable):
binutils-2.30-49.el8.x86_64

How reproducible:
for binutils-2.30-49.el8.src.rpm

Steps to Reproduce:
1. CFLAGS='-fsanitize=address -ggdb' CXXFLAGS='-fsanitize=address -ggdb' LDFLAGS='-fsanitize=address' ./configure
2. LSAN_OPTIONS=detect_leaks=0 make all-binutils

Actual results:
/usr/bin/ld: /root/rpmbuild/BUILD/binutils-2.30/bfd/.libs/libbfd.a(plugin.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
//usr/lib64/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:800: as-new] Error 1

Comment 1 Nick Clifton 2019-02-18 16:19:41 UTC
Hi Alexandra,

  This is basically a duplicate of https://sourceware.org/bugzilla/show_bug.cgi?id=22318.

  I am pushing fixing this problem out to 8.1.0 since the binutils are not normally built
  with sanitization enabled.

Cheers
  Nick

Comment 2 Nick Clifton 2019-02-18 16:21:03 UTC
Created attachment 1536041 [details]
Proposed patch

This is the patch used in the GNU Binutils sources to fix this problem.

Note - in order for this patch to be effective it is necessary to configure the binutils with --enable-plugins option.

Comment 5 Nick Clifton 2020-04-15 14:17:18 UTC
Fixed in binutils-2.30-74.el8

Comment 9 Miloš Prchlík 2020-09-08 11:10:28 UTC
Verified with binutils-2.30-79.el8.

Comment 12 errata-xmlrpc 2020-11-04 01:41:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Low: binutils security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4465


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