From: Paul Smith via Gdb <gdb@sourceware.org>
To: gdb@sourceware.org
Subject: Re: GDB 15/16 crashing in add_thread_silent()
Date: Fri, 14 Nov 2025 15:42:39 -0500 [thread overview]
Message-ID: <0acb00caa135109f9994faaf97753b0024af8072.camel@gnu.org> (raw)
In-Reply-To: <6c6b248a1b5385f0fec590e475934d207d7ef71e.camel@gnu.org>
On Fri, 2025-11-14 at 15:29 -0500, Paul Smith via Gdb wrote:
> Anyway, Tom de Vries writes this in summary:
>
> > I suppose this is fixable, but I'm not sure it's worth the effort
> > for
> > a core file that has such limited usability.
>
> I don't know about his core, but my coredump definitely doesn't have
> limited usability, because when I use GDB 8.2 from Rocky Linux the
> core is fully usable in all respects: I can see all the threads and
> interact with them in all ways.
Following Tom's debugging steps (I really don't know much about what
sections should exist in a core file or what the format should be) I
see that there is a similar problem using objdump.
If I use the native objdump from Rocky Linux, version 2.30-125.el8_10,
I get these types of results for .reg2 (note, there are no .reg
sections in this core file):
0 note0 00009bf4 0000000000000000 0000000000000000 00001bd0 2**0
CONTENTS, READONLY
1 .auxv 00000150 0000000000000000 0000000000000000 00002074 2**3
CONTENTS
2 .reg2/9168 00000210 0000000000000000 0000000000000000 00002374 2**2
CONTENTS
3 .reg2 00000210 0000000000000000 0000000000000000 00002374 2**2
CONTENTS
4 .reg2/9168 00000210 0000000000000000 0000000000000000 00002734 2**2
CONTENTS
5 .reg2/9168 00000210 0000000000000000 0000000000000000 00002af4 2**2
CONTENTS
6 .reg2/9168 00000210 0000000000000000 0000000000000000 00002eb4 2**2
CONTENTS
7 .reg2/9168 00000210 0000000000000000 0000000000000000 00003274 2**2
CONTENTS
...
40 .reg2/9168 00000210 0000000000000000 0000000000000000 0000ae34 2**2
CONTENTS
41 .reg2/9168 00000210 0000000000000000 0000000000000000 0000b1f4 2**2
CONTENTS
42 .reg2/9168 00000210 0000000000000000 0000000000000000 0000b5b4 2**2
CONTENTS
43 load1 00000000 0000000000400000 0000000000000000 00010000 2**16
ALLOC, READONLY, CODE
...
But, if I use the latest objdump 2.43.1, I get very different results:
0 note0 00009bf4 0000000000000000 0000000000000000 00001bd0 2**0
CONTENTS, READONLY
1 .auxv 00000150 0000000000000000 0000000000000000 00002074 2**3
CONTENTS
2 .reg2/0 00000210 0000000000000000 0000000000000000 00002374 2**2
CONTENTS
3 .reg2 00000210 0000000000000000 0000000000000000 00002374 2**2
CONTENTS
4 .reg2/0 00000210 0000000000000000 0000000000000000 00002734 2**2
CONTENTS
5 .reg2/0 00000210 0000000000000000 0000000000000000 00002af4 2**2
CONTENTS
6 .reg2/0 00000210 0000000000000000 0000000000000000 00002eb4 2**2
CONTENTS
7 .reg2/0 00000210 0000000000000000 0000000000000000 00003274 2**2
CONTENTS
...
40 .reg2/0 00000210 0000000000000000 0000000000000000 0000ae34 2**2
CONTENTS
41 .reg2/0 00000210 0000000000000000 0000000000000000 0000b1f4 2**2
CONTENTS
42 .reg2/0 00000210 0000000000000000 0000000000000000 0000b5b4 2**2
CONTENTS
43 load1 01ae0000 0000000000400000 0000000000000000 00010000 2**16
ALLOC, READONLY, CODE
...
So, there appears to be some difference in binutils where it can't
parse this core file properly...?
next prev parent reply other threads:[~2025-11-14 20:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-14 18:56 Paul Smith via Gdb
2025-11-14 19:12 ` Simon Marchi via Gdb
2025-11-14 19:20 ` Paul Smith via Gdb
2025-11-14 19:25 ` Simon Marchi via Gdb
2025-11-14 19:38 ` Paul Smith via Gdb
2025-11-14 20:03 ` Simon Marchi via Gdb
2025-11-14 20:13 ` Tom Tromey
2025-11-14 20:29 ` Paul Smith via Gdb
2025-11-14 20:42 ` Paul Smith via Gdb [this message]
2025-11-18 18:33 ` Tom Tromey
2025-11-18 19:30 ` Paul Smith via Gdb
2025-11-18 20:24 ` Simon Marchi via Gdb
2025-11-24 16:36 ` Paul Smith via Gdb
2025-11-21 11:59 ` Tom de Vries via Gdb
2025-11-24 15:19 ` Paul Smith via Gdb
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=0acb00caa135109f9994faaf97753b0024af8072.camel@gnu.org \
--to=gdb@sourceware.org \
--cc=psmith@gnu.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