public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug gdb/29275] New: core-file -> detach -> crash @ 2022-06-22 18:58 pedro at palves dot net 2022-06-22 18:59 ` [Bug gdb/29275] " pedro at palves dot net ` (7 more replies) 0 siblings, 8 replies; 9+ messages in thread From: pedro at palves dot net @ 2022-06-22 18:58 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=29275 Bug ID: 29275 Summary: core-file -> detach -> crash Product: gdb Version: unknown Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: pedro at palves dot net Target Milestone: --- Loading a core file under gdb, and then using "detach" to unload it, results in GDB crashing. It crashes in the same way on current master and in the gdb 11 & 12 branches. $ gdb -c ./core GNU gdb (GDB) 13.0.50.20220622-git ... Core was generated by `(... snip ...)'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007fcce92ba2ab in ?? () [Current thread is 1 (LWP 3566803)] (gdb) detach No core file now. Fatal signal: Segmentation fault ----- Backtrace ----- 0x55e3dc868a6d gdb_internal_backtrace_1 ../../src/gdb/bt-utils.c:122 0x55e3dc868b26 _Z22gdb_internal_backtracev ../../src/gdb/bt-utils.c:168 0x55e3dca7965a handle_fatal_signal ../../src/gdb/event-top.c:946 0x55e3dca79800 handle_sigsegv ../../src/gdb/event-top.c:1019 0x7f44863be41f ??? /build/glibc-SzIz7B/glibc-2.31/nptl/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0x55e3dcb432bf maybe_set_commit_resumed_all_targets ../../src/gdb/infrun.c:2899 0x55e3dcb438be _ZN29scoped_disable_commit_resumed5resetEv ../../src/gdb/infrun.c:3023 0x55e3dcb43a0b _ZN29scoped_disable_commit_resumed16reset_and_commitEv ../../src/gdb/infrun.c:3049 0x55e3dcb329cc _Z14detach_commandPKci ../../src/gdb/infcmd.c:2791 0x55e3dc8caa45 do_simple_func ../../src/gdb/cli/cli-decode.c:95 0x55e3dc8d02af _Z8cmd_funcP16cmd_list_elementPKci ../../src/gdb/cli/cli-decode.c:2514 0x55e3dce32b1e _Z15execute_commandPKci ../../src/gdb/top.c:699 0x55e3dca78dc1 _Z15command_handlerPKc ../../src/gdb/event-top.c:598 0x55e3dca792ee _Z20command_line_handlerOSt10unique_ptrIcN3gdb13xfree_deleterIcEEE ../../src/gdb/event-top.c:842 0x55e3dce6362d tui_command_line_handler ../../src/gdb/tui/tui-interp.c:278 0x55e3dca7848a gdb_rl_callback_handler ../../src/gdb/event-top.c:230 0x55e3dcf5a37b rl_callback_read_char ../../../src/readline/readline/callback.c:290 0x55e3dca782a6 gdb_rl_callback_read_char_wrapper_noexcept ../../src/gdb/event-top.c:188 0x55e3dca78354 gdb_rl_callback_read_char_wrapper ../../src/gdb/event-top.c:205 0x55e3dca78bc1 _Z19stdin_event_handleriPv ../../src/gdb/event-top.c:525 0x55e3dd09616b handle_file_event ../../src/gdbsupport/event-loop.cc:549 0x55e3dd09671d gdb_wait_for_event ../../src/gdbsupport/event-loop.cc:670 0x55e3dd095461 _Z16gdb_do_one_eventv ../../src/gdbsupport/event-loop.cc:210 0x55e3dcbc9b8b start_event_loop ../../src/gdb/main.c:413 0x55e3dcbc9cd6 captured_command_loop ../../src/gdb/main.c:473 0x55e3dcbcb759 captured_main ../../src/gdb/main.c:1335 0x55e3dcbcb7cb _Z8gdb_mainP18captured_main_args ../../src/gdb/main.c:1350 0x55e3dc74b6a5 main ../../src/gdb/gdb.c:32 --------------------- A fatal error internal to GDB has been detected, further debugging is not possible. GDB will now terminate. This is a bug, please report it. For instructions, see: <https://www.gnu.org/software/gdb/bugs/>. Segmentation fault (core dumped) -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gdb/29275] core-file -> detach -> crash 2022-06-22 18:58 [Bug gdb/29275] New: core-file -> detach -> crash pedro at palves dot net @ 2022-06-22 18:59 ` pedro at palves dot net 2022-06-22 18:59 ` pedro at palves dot net ` (6 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: pedro at palves dot net @ 2022-06-22 18:59 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=29275 Pedro Alves <pedro at palves dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at sourceware dot org |pedro at palves dot net --- Comment #1 from Pedro Alves <pedro at palves dot net> --- Got patch. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gdb/29275] core-file -> detach -> crash 2022-06-22 18:58 [Bug gdb/29275] New: core-file -> detach -> crash pedro at palves dot net 2022-06-22 18:59 ` [Bug gdb/29275] " pedro at palves dot net @ 2022-06-22 18:59 ` pedro at palves dot net 2022-06-22 19:13 ` [Bug corefiles/29275] " pedro at palves dot net ` (5 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: pedro at palves dot net @ 2022-06-22 18:59 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=29275 Pedro Alves <pedro at palves dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug corefiles/29275] core-file -> detach -> crash 2022-06-22 18:58 [Bug gdb/29275] New: core-file -> detach -> crash pedro at palves dot net 2022-06-22 18:59 ` [Bug gdb/29275] " pedro at palves dot net 2022-06-22 18:59 ` pedro at palves dot net @ 2022-06-22 19:13 ` pedro at palves dot net 2022-06-22 19:13 ` pedro at palves dot net ` (4 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: pedro at palves dot net @ 2022-06-22 19:13 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=29275 Pedro Alves <pedro at palves dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|gdb |corefiles -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug corefiles/29275] core-file -> detach -> crash 2022-06-22 18:58 [Bug gdb/29275] New: core-file -> detach -> crash pedro at palves dot net ` (2 preceding siblings ...) 2022-06-22 19:13 ` [Bug corefiles/29275] " pedro at palves dot net @ 2022-06-22 19:13 ` pedro at palves dot net 2022-06-22 19:21 ` pedro at palves dot net ` (3 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: pedro at palves dot net @ 2022-06-22 19:13 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=29275 Pedro Alves <pedro at palves dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unknown |11.1 -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug corefiles/29275] core-file -> detach -> crash 2022-06-22 18:58 [Bug gdb/29275] New: core-file -> detach -> crash pedro at palves dot net ` (3 preceding siblings ...) 2022-06-22 19:13 ` pedro at palves dot net @ 2022-06-22 19:21 ` pedro at palves dot net 2022-07-11 18:32 ` pedro at palves dot net ` (2 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: pedro at palves dot net @ 2022-06-22 19:21 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=29275 --- Comment #2 from Pedro Alves <pedro at palves dot net> --- Fix posted here: https://sourceware.org/pipermail/gdb-patches/2022-June/190259.html -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug corefiles/29275] core-file -> detach -> crash 2022-06-22 18:58 [Bug gdb/29275] New: core-file -> detach -> crash pedro at palves dot net ` (4 preceding siblings ...) 2022-06-22 19:21 ` pedro at palves dot net @ 2022-07-11 18:32 ` pedro at palves dot net 2022-07-11 18:32 ` pedro at palves dot net 2023-04-02 18:10 ` simark at simark dot ca 7 siblings, 0 replies; 9+ messages in thread From: pedro at palves dot net @ 2022-07-11 18:32 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=29275 Pedro Alves <pedro at palves dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |13.1 --- Comment #3 from Pedro Alves <pedro at palves dot net> --- Merged to both master and gdb-12-branch. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug corefiles/29275] core-file -> detach -> crash 2022-06-22 18:58 [Bug gdb/29275] New: core-file -> detach -> crash pedro at palves dot net ` (5 preceding siblings ...) 2022-07-11 18:32 ` pedro at palves dot net @ 2022-07-11 18:32 ` pedro at palves dot net 2023-04-02 18:10 ` simark at simark dot ca 7 siblings, 0 replies; 9+ messages in thread From: pedro at palves dot net @ 2022-07-11 18:32 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=29275 Pedro Alves <pedro at palves dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Pedro Alves <pedro at palves dot net> --- Fixed. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug corefiles/29275] core-file -> detach -> crash 2022-06-22 18:58 [Bug gdb/29275] New: core-file -> detach -> crash pedro at palves dot net ` (6 preceding siblings ...) 2022-07-11 18:32 ` pedro at palves dot net @ 2023-04-02 18:10 ` simark at simark dot ca 7 siblings, 0 replies; 9+ messages in thread From: simark at simark dot ca @ 2023-04-02 18:10 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=29275 Simon Marchi <simark at simark dot ca> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pastas at learn4good dot com --- Comment #5 from Simon Marchi <simark at simark dot ca> --- *** Bug 30207 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-04-02 18:10 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-06-22 18:58 [Bug gdb/29275] New: core-file -> detach -> crash pedro at palves dot net 2022-06-22 18:59 ` [Bug gdb/29275] " pedro at palves dot net 2022-06-22 18:59 ` pedro at palves dot net 2022-06-22 19:13 ` [Bug corefiles/29275] " pedro at palves dot net 2022-06-22 19:13 ` pedro at palves dot net 2022-06-22 19:21 ` pedro at palves dot net 2022-07-11 18:32 ` pedro at palves dot net 2022-07-11 18:32 ` pedro at palves dot net 2023-04-02 18:10 ` simark at simark dot ca
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).