Bug 2142816

Summary: addr2line from gcc-toolset-11-binutils having errors while compiling code using LTO and Dwarf5
Product: Red Hat Enterprise Linux 8 Reporter: Vikramsingh Patil <vikpatil>
Component: gcc-toolset-12-binutilsAssignee: yara ahmad <yahmad>
Status: CLOSED ERRATA QA Contact: Miloš Prchlík <mprchlik>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.6CC: casantos, fweimer, ganandan, mcermak, nickc, pfrankli, sipoyare, tminor, yahmad
Target Milestone: rcKeywords: Bugfix, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gcc-toolset-12-binutils-2.38-16.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 08:40:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vikramsingh Patil 2022-11-15 10:58:47 UTC
Description of problem:

addr2line from gcc-toolset-11-binutils having errors while compiling  code using LTO and Dwarf5 

Version-Release number of selected component (if applicable):
gcc-toolset-11-binutils-2.36.1-2.el8.x86_64
gcc-toolset-11-gcc-11.2.1-9.1.el8.x86_64

How reproducible:
Everytime

Steps to Reproduce:
1. Run below command.

--
echo 0x2eae60|/opt/rh/gcc-toolset-11/root/usr/bin/addr2line -C -f -e libCATAfrNavigator.so
--

2.
3.

Actual results:
/opt/rh/gcc-toolset-11/root/usr/bin/addr2line: DWARF error: invalid abstract instance DIE ref
CATFrmNavigGraphicWindow::~CATFrmNavigGraphicWindow() [clone .localalias]
:?

Expected results:
CATFrmNavigGraphicWindow::~CATFrmNavigGraphicWindow()
/mnt/data/RTVs/test/AfrNavigator/CATAfrNavigator_Window.m/src/CATFrmNavigGraphicWindow.cpp:604

Additional info:

It is seems to be related to below bug upstream.

https://sourceware.org/bugzilla/show_bug.cgi?id=27587

Comment 12 Nick Clifton 2023-01-24 11:28:23 UTC
Fixed in binutils-2.38-16.el8

Comment 13 Nick Clifton 2023-01-24 11:36:24 UTC
Sorry, fixed in: gcc-toolset-12-binutils-2.38-16.el8

Comment 21 errata-xmlrpc 2023-05-16 08:40:42 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 (Moderate: gcc-toolset-12-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-2023:2873