public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "tromey at sourceware dot org" <sourceware-bugzilla@sourceware.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	[thread overview]
Message-ID: <bug-31122-4717-u7Za9E4Ug6@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-31122-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=31122

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
Thanks for the report.

In the first trace:

#5  0x000055dc80ae97e7 in iter_match_first_hashed (dict=0x55dca15bb2a0,
name=..., 
    iterator=0x7ffe3d29d858) at ../../gdb/dictionary.c:586

This line is:

  symbol_name_matcher_ftype *matches_name
    = lang->get_symbol_name_matcher (name);

... so maybe lang==null?  This really shouldn't happen.

I see in your post you tried to examine this -- thank you:

(gdb) p lang
$1 = <optimized out>

I guess you'd need to build a gdb without optimization.

> There were errors in reading the name variable at that line like m_demangled_name = <error: Cannot access memory at address 0xf435c9f3d929f800>

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  <signal handler called>
#5  0x0000559d5be3c93a in skip_ws (
    string1=@0x7ffed94630f8: 0x559d65f1c4f0 "ConversionCheck::supported", 
    string2=@0x7ffed94630f0: 0x7ffed94632e8 "QThread",
end_str2=end_str2@entry=0x7ffed94632ef "")
    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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  reply	other threads:[~2023-12-08 16:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-08 12:18 [Bug backtrace/31122] New: " matt.fagnani at bell dot net
2023-12-08 16:59 ` tromey at sourceware dot org [this message]
2023-12-09  0:50 ` [Bug backtrace/31122] " matt.fagnani at bell dot net
2023-12-10 22:09 ` matt.fagnani at bell dot net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-31122-4717-u7Za9E4Ug6@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).