Bug 1383086 - Fix printing of TLS (such as 'errno') regression
Summary: Fix printing of TLS (such as 'errno') regression
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Developer Toolset
Classification: Red Hat
Component: gdb
Version: DTS 7.0 RHEL 7
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: alpha
: 6.0
Assignee: Jan Kratochvil
QA Contact: Martin Cermak
URL: https://sourceware.org/ml/gdb-patches...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-09 19:01 UTC by Jan Kratochvil
Modified: 2016-11-15 10:12 UTC (History)
6 users (show)

Fixed In Version: devtoolset-6-gdb-7.12-24.el7
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2016-11-15 10:12:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2737 0 normal SHIPPED_LIVE new packages: devtoolset-6-gdb 2016-11-15 14:49:23 UTC

Description Jan Kratochvil 2016-10-09 19:01:24 UTC
Description of problem:
In some cases GDB cannot print errno - such as for core files of multithreaded applications.  It also affects printing errno when no glibc-debuginfo.rpm is installed and 'errno' is used in a non-trivial numeric expression in GDB.

Version-Release number of selected component (if applicable):
FAIL: All existing versions of GDB incl. upstream so far.
FAIL: devtoolset-6-gdb-7.12-0.20.20161006.el{7,6}

How reproducible:
Always.

Steps to Reproduce:
mv /usr/lib/debug /usr/lib/debug-x
echo 'int main(){}'|gcc -pthread -x c -
./gdb -q -ex start -ex 'p errno' ./a.out

Actual results:
Cannot access memory at address 0xffffef7c9698

Expected results:
$1 = 0

Additional info:
[patch+7.12.1 2/2] Fix TLS (such as 'errno') regression
https://sourceware.org/ml/gdb-patches/2016-10/msg00207.html

Comment 1 Jan Kratochvil 2016-10-09 19:02:15 UTC
QA: New testfile: gdb.threads/tls-nodebug-pie.exp

It is the reported regression:
FAIL: gdb.dwarf2/dw2-errno2.exp: macros=N threads=Y: print errno for core

Comment 6 errata-xmlrpc 2016-11-15 10:12:39 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, 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://rhn.redhat.com/errata/RHBA-2016-2737.html


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