From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 712C73858402; Fri, 18 Feb 2022 21:53:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 712C73858402 From: "msebor at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/28908] New: Assertion `strstr (name, "::") == NULL' failed. listing member function names of a namespace class Date: Fri, 18 Feb 2022 21:53:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2022 21:53:20 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28908 Bug ID: 28908 Summary: Assertion `strstr (name, "::") =3D=3D NULL' failed. listing member function names of a namespace class Product: gdb Version: 11.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ Assignee: unassigned at sourceware dot org Reporter: msebor at gmail dot com Target Milestone: --- I encountered the following internal error while testing the fix for pr2890= 1.=20 The error is with GNU gdb (GDB) Fedora 11.1-5.fc35 but it's reproducible wi= th trunk. $ cat t.C && g++ -g3 t.C && gdb -batch -nx -ex "break main" -ex run -ex "pr= int (N::A*)&b" -ex "list $1->N::A::f" a.out namespace N { struct A { void f () { } }; struct B: A { }; } N::B b; int main () { b.f (); } Breakpoint 1 at 0x40110a: file t.C, line 10. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Breakpoint 1, main () at t.C:10 10 b.f (); $1 =3D (N::A *) 0x40401d ../../gdb/cp-namespace.c:178: internal-error: block_symbol cp_lookup_bare_symbol(const language_defn*, const char*, const block*, domain_enum, int): Assertion `strstr (name, "::") =3D=3D NULL' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) [answered Y; input not from terminal] This is a bug, please report it. For instructions, see: . ../../gdb/cp-namespace.c:178: internal-error: block_symbol cp_lookup_bare_symbol(const language_defn*, const char*, const block*, domain_enum, int): Assertion `strstr (name, "::") =3D=3D NULL' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) [answered Y; input not from terminal] Aborted (core dumped) --=20 You are receiving this mail because: You are on the CC list for the bug.=