From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F04B43858D38; Mon, 28 Aug 2023 14:57:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F04B43858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693234673; bh=HMmvFAQ2HNC6aA5V/HYFJeY+KCPNpQhz1tMZyNE5Ikk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=I8hBB0ktGJ0nlmVjpzNRVmPgENDweAAn474ftUCWiwtY5vVjQUc1x3LxhJASUChRJ EWPyNeHGi3vUf/Kj3dTk2G40p1J5F3VablLzrFbcuMwfOgGFVxadEE/Ne6SMItnDxF eWF9DU+PpNNUSHh9TRIesN5IDOVouDUtFfbGNn/0= From: "manas18244 at iiitd dot ac.in" To: gdb-prs@sourceware.org Subject: [Bug cli/30557] Exception after pressing tab to autocomplete in location_completer gdb/completer.c:766 Date: Mon, 28 Aug 2023 14:57:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: cli X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: manas18244 at iiitd dot ac.in X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30557 Manas changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manas18244 at iiitd dot ac= .in --- Comment #3 from Manas --- Created attachment 15090 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D15090&action=3Ded= it bug reproducible rust I came across the following error while hitting for auto-completing. = Here are the details and a reproducible. I built the GNU gdb (GDB) 13.2 from sou= rce. The attached `gdb-bug.rs` can be built via `rustc gdb-bug.rs`, and run as `= gdb ./gdb-bug`. Inside the debugger, type `br par` and the following error= is thrown along with the trace. ``` @(gdb) br parterminate called after throwing an instance of 'std::length_er= ror' what(): basic_string::_M_replace Fatal signal: Aborted ----- Backtrace ----- 0x55e3ffd968db gdb_internal_backtrace_1 /home/neon/gdb-13.2/gdb/bt-utils.c:122 0x55e3ffd968db _Z22gdb_internal_backtracev /home/neon/gdb-13.2/gdb/bt-utils.c:168 0x55e3ffeb3214 handle_fatal_signal /home/neon/gdb-13.2/gdb/event-top.c:956 0x7f7a8f43e70f ??? 0x7f7a8f48e83c ??? 0x7f7a8f43e667 ??? 0x7f7a8f4264b7 ??? 0x7f7a8f89ca6e _ZN9__gnu_cxx27__verbose_terminate_handlerEv /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/vterminate.cc:95 0x7f7a8f8b011b _ZN10__cxxabiv111__terminateEPFvvE /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:48 0x7f7a8f8af0a9 __cxa_call_terminate /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/eh_call.cc:54 0x7f7a8f8af829 __gxx_personality_v0 /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/eh_personality.cc:688 0x7f7a8fb57529 _Unwind_RaiseException_Phase2 /usr/src/debug/gcc/gcc/libgcc/unwind.inc:64 0x7f7a8fb5802c _Unwind_Resume /usr/src/debug/gcc/gcc/libgcc/unwind.inc:242 0x55e3ffcbccf8 _ZNKSt14default_deleteI13location_specEclEPS0_ /usr/include/c++/13.2.1/bits/unique_ptr.h:99 0x55e3ffcbccf8 _ZNSt10unique_ptrI13location_specSt14default_deleteIS0_EED4Ev /usr/include/c++/13.2.1/bits/unique_ptr.h:404 0x55e3ffcbccf8 _Z18location_completerP16cmd_list_elementR18completion_trackerPKcS4_ /home/neon/gdb-13.2/gdb/completer.c:1042 0x55e3ffdfc92e complete_line_internal_1 /home/neon/gdb-13.2/gdb/completer.c:1438 0x55e3ffdfc9b5 complete_line_internal /home/neon/gdb-13.2/gdb/completer.c:1457 0x55e3ffdfdaf1 gdb_completion_word_break_characters_throw /home/neon/gdb-13.2/gdb/completer.c:1907 0x55e3ffdfdaf1 _Z36gdb_completion_word_break_charactersv /home/neon/gdb-13.2/gdb/completer.c:1945 0x55e4001bd43c _rl_find_completion_word /home/neon/gdb-13.2/readline/readline/complete.c:1089 0x55e4001be536 rl_complete_internal /home/neon/gdb-13.2/readline/readline/complete.c:2025 0x55e4001b3a22 _rl_dispatch_subseq /home/neon/gdb-13.2/readline/readline/readline.c:892 0x55e4001b419f _rl_dispatch /home/neon/gdb-13.2/readline/readline/readline.c:838 0x55e4001b419f readline_internal_char /home/neon/gdb-13.2/readline/readline/readline.c:650 0x55e4001d13ac rl_callback_read_char /home/neon/gdb-13.2/readline/readline/callback.c:264 0x55e3ffeb456d gdb_rl_callback_read_char_wrapper_noexcept /home/neon/gdb-13.2/gdb/event-top.c:188 0x55e3ffeb471f gdb_rl_callback_read_char_wrapper /home/neon/gdb-13.2/gdb/event-top.c:221 0x55e3ffeb30cf stdin_event_handler /home/neon/gdb-13.2/gdb/event-top.c:541 0x55e4002d9125 gdb_wait_for_event /home/neon/gdb-13.2/gdbsupport/event-loop.cc:716 0x55e4002d9c99 _Z16gdb_do_one_eventi /home/neon/gdb-13.2/gdbsupport/event-loop.cc:264 0x55e3fffa9839 start_event_loop /home/neon/gdb-13.2/gdb/main.c:411 0x55e3fffa9839 captured_command_loop /home/neon/gdb-13.2/gdb/main.c:471 0x55e3fffab4c4 captured_main /home/neon/gdb-13.2/gdb/main.c:1330 0x55e3fffab4c4 _Z8gdb_mainP18captured_main_args /home/neon/gdb-13.2/gdb/main.c:1345 0x55e3ffcebc19 main /home/neon/gdb-13.2/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: . Aborted (core dumped) ``` I also found this commit https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;f=3Dgdb/complet= er.h;h=3D454f8b67a85130b6d6f6a7c987d868183b411369 which identifies and tackles this issue further, so I would just leave the reproducible here. --=20 You are receiving this mail because: You are on the CC list for the bug.=