From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8ABB138930E8; Wed, 29 Apr 2020 10:15:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8ABB138930E8 From: "jengelh at inai dot de" To: gdb-prs@sourceware.org Subject: [Bug c++/25894] New: gdb crash on uncanny command Date: Wed, 29 Apr 2020 10:15:58 +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: 8.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jengelh at inai dot de 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: Wed, 29 Apr 2020 10:15:58 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25894 Bug ID: 25894 Summary: gdb crash on uncanny command Product: gdb Version: 8.3.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ Assignee: unassigned at sourceware dot org Reporter: jengelh at inai dot de Target Milestone: --- =C2=BB cat x.cpp=20 struct T { int v; }; int main() { T t, *u =3D &t; u->T::v =3D 2; return u->T::v; } =C2=BB g++ x.cpp -ggdb3 =C2=BB gdb a.out=20 GNU gdb (GDB; openSUSE Tumbleweed) 8.3.1 (gdb) b main Breakpoint 1 at 0x1129: file x.cpp, line 4. (gdb) r Starting program: /dev/shm/a.out=20 Breakpoint 1, main () at x.cpp:4 4 T t, *u =3D &t; (gdb) n 5 u->T::v =3D 2; (gdb)=20 6 return u->T::v; (gdb) l u->T::v ../../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)=20 A nonsensical command should not crash gdb. --=20 You are receiving this mail because: You are on the CC list for the bug.=