Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1531838 - LD_PRELOAD=/lib64/libSegFault.so regression by: RHEL-7.5 fix: gdb leaks ignored SIGPIPE to child process
LD_PRELOAD=/lib64/libSegFault.so regression by: RHEL-7.5 fix: gdb leaks ignor...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gdb (Show other bugs)
7.5
Unspecified Linux
unspecified Severity unspecified
: beta
: 7.5
Assigned To: Jan Kratochvil
Michal Kolar
https://sourceware.org/ml/gdb-patches...
: Regression
Depends On: 1473411
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-05 21:32 EST by Jan Kratochvil
Modified: 2018-04-10 06:26 EDT (History)
6 users (show)

See Also:
Fixed In Version: gdb-7.6.1-110.el7
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-04-10 06:25:07 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Sourceware 18653 None None None 2018-01-05 21:32 EST
Red Hat Product Errata RHBA-2018:0701 None None None 2018-04-10 06:26 EDT

  None (edit)
Description Jan Kratochvil 2018-01-05 21:32:15 EST
Description of problem:
Bug 1473411 - gdb leaks ignored SIGPIPE to child process - fix has caused a regression when one tried to LD_PRELOAD=/lib64/libSegFault.so for GDB itself.
While it IMO does not make too much sense to run it for GDB it is common for people to incorrectly LD_PRELOAD libraries already to GDB despite they want to preload them for the program being debugged (and they should use -ex 'set env LD_PRELOAD=/lib64/libSegFault.so' instead). So I believe the regression can happen in practice.

Version-Release number of selected component (if applicable):
PASS: RHEL-7.4 or gdb-7.6.1-106.el7
FAIL: gdb-7.6.1-107.el7

How reproducible:
Always.

Steps to Reproduce:
LD_PRELOAD=/lib64/libSegFault.so gdb

Actual results:
*** Segmentation fault
Register dump:
...
which backtraced gives:
#0  0x0000000000000000 in ?? ()
#1  0x00000000006a1c94 in internal_vproblem ()
#2  0x00000000006a1ea9 in internal_verror ()
#3  0x00000000006a1f4f in internal_error ()
#4  0x000000000060ea54 in save_original_signals_state ()
#5  0x00000000005dde8f in captured_main ()
#6  0x00000000005dc1ca in catch_errors ()
#7  0x00000000005df2e4 in gdb_main ()
#8  0x00000000004579ae in main ()

Expected results:
(gdb) _

Additional info:
Comment 2 Jan Kratochvil 2018-01-05 21:34:58 EST
[PATCH] Fix regression: cannot start with LD_PRELOAD=libSegFault.so (PR gdb/18653#c7)
https://sourceware.org/ml/gdb-patches/2017-12/msg00365.html
From: Pedro Alves <palves at redhat dot com>
Comment 5 Michal Kolar 2018-01-23 07:03:31 EST
Reproduced against gdb-7.6.1-107.el7 and verified against gdb-7.6.1-110.el7.
Comment 8 errata-xmlrpc 2018-04-10 06:25:07 EDT
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://access.redhat.com/errata/RHBA-2018:0701

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