From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6DB1A398841B; Thu, 15 Jul 2021 15:52:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6DB1A398841B From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/28093] set language unknown -> print "foo" -> GDB crash Date: Thu, 15 Jul 2021 15:52:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: 11.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 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: Thu, 15 Jul 2021 15:52:57 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28093 --- Comment #1 from Tom Tromey --- Not technically a regression, I suppose. Fedora 32 /bin/gdb: (gdb) print "hi" ../../gdb/parse.c:725: internal-error: int prefixify_expression(expression*, int): Assertion `expr->nelts > 0' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n)=20 The default language "parser" just does: int parser (struct parser_state *ps) const override { /* No parsing is done, just claim success. */ return 1; } ... which is pretty lame / wrong. --=20 You are receiving this mail because: You are on the CC list for the bug.=