From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8E7573858C52; Sat, 18 Mar 2023 15:32:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E7573858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679153566; bh=cbnYTVQkGtWfKXJ/vSw+sPkfofkfAQMWlGA2stTfIlQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MlPP6AEDOw/+9GhQpIY1/K32ifDroLtGzNaDbPrBbq8IiDMkTjQS+OehElg8fOi8L V4ghbwFkzYIKNpQGMaaFU2eHvLL8FbEw0nmPN8LKCelLgIhCZiGtKQcYbhQzXJtNil QAw6K42hdwqn2Ud4rCSTdj8q+SKNTWmsH1xb+zVw= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug rust/30211] Crash on tab completing while debugging rust program Date: Sat, 18 Mar 2023 15:32:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: rust X-Bugzilla-Version: 13.1 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: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30211 --- Comment #3 from Tom Tromey --- strncmp_iw_with_mode (grrrr) assumes that template stuff has to come "later" in the symbol. But in Rust, that's not really so. The symbol in question is: <&str as core::str::pattern::Pattern>::is_contained_in::hf6f1247c1a3fce69 gdb also incorrectly deduces: (top-gdb) p symbol_language $26 =3D language_cplus ... i.e., yet another issue caused by the _Z encoding ... ultimately leading to a bad call to match_for_lcd->mark_ignored_range (template_start, string1); Anyway this is a cluster of bad decisions, one by Rust, but more by gdb. I suspect we might be able to fix this via bug #20367. --=20 You are receiving this mail because: You are on the CC list for the bug.=