public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/29294] [REG 11.2->12.1] Internal error when stepping into a function Date: Thu, 30 Jun 2022 12:35:13 +0000 [thread overview] Message-ID: <bug-29294-4717-09BAkbYRNV@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-29294-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=29294 --- Comment #7 from Tom de Vries <vries at gcc dot gnu.org> --- Reproduced: ... $ cat test.cc struct Base { const char *Bar; }; struct Foo : public Base { static const int m_MsgIdx = 0; }; static void Func (const char* Foo::*Field) { } int main () { Func (&Foo::Bar); } $ g++ -g test.cc $ gdb -q -batch a.out -ex start -ex step Temporary breakpoint 1 at 0x4004d6: file test.cc, line 16. Temporary breakpoint 1, main () at test.cc:16 16 Func (&Foo::Bar); Func (Field=/home/vries/gdb_versions/devel/src/gdb/gdbtypes.h:695: internal-error: loc_bitpos: Assertion `m_loc_kind == FIELD_LOC_KIND_BITPOS' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. ----- Backtrace ----- 0x57e9cc gdb_internal_backtrace_1 /home/vries/gdb_versions/devel/src/gdb/bt-utils.c:122 0x57ea6f _Z22gdb_internal_backtracev /home/vries/gdb_versions/devel/src/gdb/bt-utils.c:168 0xc69b17 internal_vproblem /home/vries/gdb_versions/devel/src/gdb/utils.c:396 0xc69ee6 _Z15internal_verrorPKciS0_P13__va_list_tag /home/vries/gdb_versions/devel/src/gdb/utils.c:476 0x139be70 _Z14internal_errorPKciS0_z /home/vries/gdb_versions/devel/src/gdbsupport/errors.cc:55 0x47246c _ZNK5field10loc_bitposEv /home/vries/gdb_versions/devel/src/gdb/gdbtypes.h:695 0x64c8fd cp_find_class_member /home/vries/gdb_versions/devel/src/gdb/cp-valprint.c:639 0x64cac2 _Z21cp_print_class_memberPKhP4typeP7ui_filePKc /home/vries/gdb_versions/devel/src/gdb/cp-valprint.c:698 0xc90705 generic_value_print_memberptr /home/vries/gdb_versions/devel/src/gdb/valprint.c:879 0xc9082d _Z19generic_value_printP5valueP7ui_fileiPK19value_print_optionsPK29generic_val_print_decorations /home/vries/gdb_versions/devel/src/gdb/valprint.c:914 0x5c2d7c _Z19c_value_print_innerP5valueP7ui_fileiPK19value_print_options /home/vries/gdb_versions/devel/src/gdb/c-valprint.c:464 0x8589b1 _ZNK13language_defn17value_print_innerEP5valueP7ui_fileiPK19value_print_options /home/vries/gdb_versions/devel/src/gdb/language.c:633 0xc90e0d _Z16common_val_printP5valueP7ui_fileiPK19value_print_optionsPK13language_defn /home/vries/gdb_versions/devel/src/gdb/valprint.c:1073 0xc911e3 _Z24common_val_print_checkedP5valueP7ui_fileiPK19value_print_optionsPK13language_defn /home/vries/gdb_versions/devel/src/gdb/valprint.c:1165 0xb4cb02 print_frame_arg /home/vries/gdb_versions/devel/src/gdb/stack.c:487 0xb4d9b3 print_frame_args /home/vries/gdb_versions/devel/src/gdb/stack.c:891 0xb4ebed print_frame /home/vries/gdb_versions/devel/src/gdb/stack.c:1391 0xb4e2a8 _Z16print_frame_infoRK19frame_print_optionsP10frame_infoi10print_whatii /home/vries/gdb_versions/devel/src/gdb/stack.c:1117 0xb4c61d _Z17print_stack_frameP10frame_infoi10print_whati /home/vries/gdb_versions/devel/src/gdb/stack.c:367 0x83e72a print_stop_location /home/vries/gdb_versions/devel/src/gdb/infrun.c:8497 0x83e7af _Z16print_stop_eventP6ui_outb /home/vries/gdb_versions/devel/src/gdb/infrun.c:8513 0x5de30e cli_base_on_normal_stop /home/vries/gdb_versions/devel/src/gdb/cli/cli-interp.c:144 0x48b856 _ZNSt17_Function_handlerIFvP6bpstatiEPS2_E9_M_invokeERKSt9_Any_dataOS1_Oi /usr/include/c++/7/bits/std_function.h:316 0x844a6f _ZNKSt8functionIFvP6bpstatiEEclES1_i /usr/include/c++/7/bits/std_function.h:706 0x843ca7 _ZNK3gdb9observers10observableIJP6bpstatiEE6notifyES3_i /home/vries/gdb_versions/devel/src/gdb/../gdbsupport/observable.h:166 0x83f022 _Z11normal_stopv /home/vries/gdb_versions/devel/src/gdb/infrun.c:8775 0x8342e9 _Z20fetch_inferior_eventv /home/vries/gdb_versions/devel/src/gdb/infrun.c:4253 0x81535d _Z22inferior_event_handler19inferior_event_type /home/vries/gdb_versions/devel/src/gdb/inf-loop.c:41 0x87b24d handle_target_event /home/vries/gdb_versions/devel/src/gdb/linux-nat.c:4140 0x139cb81 handle_file_event /home/vries/gdb_versions/devel/src/gdbsupport/event-loop.cc:549 0x139d109 gdb_wait_for_event /home/vries/gdb_versions/devel/src/gdbsupport/event-loop.cc:670 0x139bfa4 _Z16gdb_do_one_eventv /home/vries/gdb_versions/devel/src/gdbsupport/event-loop.cc:210 0xbd6ea5 _Z22wait_sync_command_donev /home/vries/gdb_versions/devel/src/gdb/top.c:553 0xbd6f3a _Z28maybe_wait_sync_command_donei /home/vries/gdb_versions/devel/src/gdb/top.c:570 0xbd752a _Z15execute_commandPKci /home/vries/gdb_versions/devel/src/gdb/top.c:701 0x8be89f catch_command_errors /home/vries/gdb_versions/devel/src/gdb/main.c:513 0x8bea77 execute_cmdargs /home/vries/gdb_versions/devel/src/gdb/main.c:608 0x8bfdf8 captured_main_1 /home/vries/gdb_versions/devel/src/gdb/main.c:1298 0x8bfffb captured_main /home/vries/gdb_versions/devel/src/gdb/main.c:1319 0x8c0066 _Z8gdb_mainP18captured_main_args /home/vries/gdb_versions/devel/src/gdb/main.c:1344 0x418b3d main /home/vries/gdb_versions/devel/src/gdb/gdb.c:32 ... -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2022-06-30 12:35 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-06-27 20:03 [Bug gdb/29294] New: " orgads at gmail dot com 2022-06-27 20:10 ` [Bug gdb/29294] " orgads at gmail dot com 2022-06-28 17:31 ` tromey at sourceware dot org 2022-06-28 17:42 ` orgads at gmail dot com 2022-06-28 19:22 ` orgads at gmail dot com 2022-06-28 19:54 ` orgads at gmail dot com 2022-06-30 8:53 ` orgads at gmail dot com 2022-06-30 9:14 ` orgads at gmail dot com 2022-06-30 12:27 ` orgads at gmail dot com 2022-06-30 12:35 ` vries at gcc dot gnu.org [this message] 2022-06-30 12:56 ` vries at gcc dot gnu.org 2022-06-30 13:19 ` vries at gcc dot gnu.org 2022-06-30 13:22 ` [Bug exp/29294] " vries at gcc dot gnu.org 2022-06-30 13:44 ` vries at gcc dot gnu.org 2022-06-30 13:45 ` orgads at gmail dot com 2022-06-30 13:54 ` vries at gcc dot gnu.org 2022-06-30 14:09 ` vries at gcc dot gnu.org 2022-06-30 15:00 ` vries at gcc dot gnu.org 2022-07-05 20:43 ` vries at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-29294-4717-09BAkbYRNV@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).