This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/18653] spawn changes SIGPIPE SIG_DFL to SIG_IGN


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

--- Comment #8 from Pedro Alves <palves at redhat dot com> ---
Indeed, we get:

(top-gdb) bt
#0  0x000000000056b001 in internal_error(char const*, int, char const*, ...)
(file=0xaf5f38 "src/gdb/common/signals-state-save-restore.c", line=64,
fmt=0xaf5f18 "unexpected signal handler") at src/gdb/common/errors.c:54
#1  0x00000000005752c9 in save_original_signals_state() () at
src/gdb/common/signals-state-save-restore.c:64
#2  0x00000000007425de in captured_main_1(captured_main_args*)
(context=0x7fffffffd860)
    at src/gdb/main.c:509
#3  0x0000000000743622 in captured_main(void*) (data=0x7fffffffd860) at
src/gdb/main.c:1145
During symbol reading, cannot get low and high bounds for subprogram DIE at
24065.
#4  0x00000000007436f9 in gdb_main(captured_main_args*) (args=0x7fffffffd860)
at src/gdb/main.c:1171
#5  0x0000000000413acd in main(int, char**) (argc=1, argv=0x7fffffffd968) at
src/gdb/gdb.c:32

How about this?  Too noisy?

~~~~~~~~~~~~~~~~~~~~~
$ LD_PRELOAD=/usr/lib64/libSegFault.so  ./gdb ~/gdb/tests/threads
warning: Found custom handler for signal 11 (Segmentation fault) preinstalled.
Some signal dispositions inherited from the environment (SIG_DFL/SIG_IGN)
won't be propagated to spawned programs.
GNU gdb (GDB) 8.0.50.20171213-git
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/pedro/gdb/tests/threads...done.
(gdb)
~~~~~~~~~~~~~~~~~~~~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]