Red Hat Bugzilla – Bug 1531838
LD_PRELOAD=/lib64/libSegFault.so regression by: RHEL-7.5 fix: gdb leaks ignored SIGPIPE to child process
Last modified: 2018-04-10 06:26:21 EDT
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:
[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>
Reproduced against gdb-7.6.1-107.el7 and verified against gdb-7.6.1-110.el7.
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