From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B460F3858C20; Fri, 8 Dec 2023 16:59:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B460F3858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702054744; bh=qNUP4SqMc5vfsNBkd3x0M2VkHwFjg1H2YLG4bGcbcN0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BsJUkHEuxkveo69PSVbS3KuMjd5vxFEYlCjCiOoH096HtjhC16Gh1VF8NZzynzxNV GtZCIoDqniGTbxHAobFYRBd9tzYwdhqDGdlRM9oWslHAhaw0NVx1E81wl5iwFl4K3z JnfHpT7qCvknV3VwpZu5AybeCUp6Q6kW7WcE0ldQ= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug backtrace/31122] gdb crashed when drkonqi ran it on plasmashell crashes Date: Fri, 08 Dec 2023 16:59:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: backtrace X-Bugzilla-Version: 14.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org 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: cc 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=3D31122 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot o= rg --- Comment #1 from Tom Tromey --- Thanks for the report. In the first trace: #5 0x000055dc80ae97e7 in iter_match_first_hashed (dict=3D0x55dca15bb2a0, name=3D...,=20 iterator=3D0x7ffe3d29d858) at ../../gdb/dictionary.c:586 This line is: symbol_name_matcher_ftype *matches_name =3D lang->get_symbol_name_matcher (name); ... so maybe lang=3D=3Dnull? This really shouldn't happen. I see in your post you tried to examine this -- thank you: (gdb) p lang $1 =3D I guess you'd need to build a gdb without optimization. > There were errors in reading the name variable at that line like m_demang= led_name =3D This is the payload of an un-instantiated optional<>, so it's fine that it is an invalid pointer -- I don't think this can be the bug. It might be good to see which block this comes from. From the blocks it is possible to find the function symbol (you may have to walk up the block hierarchy a bit). From there we could try to dig up the DWARF and see if something weird is going on. Speaking of weird: #4 #5 0x0000559d5be3c93a in skip_ws ( string1=3D@0x7ffed94630f8: 0x559d65f1c4f0 "ConversionCheck::supported",= =20 string2=3D@0x7ffed94630f0: 0x7ffed94632e8 "QThread", end_str2=3Dend_str2@entry=3D0x7ffed94632ef "") at ../../gdb/utils.c:2049 This crash is extremely suspicious to me. You can see from the trace that the arguments are just ordinary, valid strings. This function is very simple: while (ISSPACE (*string1)) string1++; while (string2 < end_str2 && ISSPACE (*string2)) string2++; ... so how could this possibly be crashing? ISSPACE is a macro that references a global static table, and that's never caused a problem... I don't have a theory for what could be happening here. --=20 You are receiving this mail because: You are on the CC list for the bug.=