This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH 0/3] Fix issues with writing Linux core PRSTATUS note on MIPS o32, n32 and n64 into core file
- From: "Maciej W. Rozycki" <macro at mips dot com>
- To: Djordje Todorovic <djordje dot todorovic at rt-rk dot com>
- Cc: Pedro Alves <palves at redhat dot com>, <binutils at sourceware dot org>, <gdb-patches at sourceware dot org>, "nemanja dot popov at rt-rk dot com" <nemanja dot popov at rt-rk dot com>, <petar dot jovanovic at rt-rk dot com>, "Ananthakrishna Sowda (asowda)" <asowda at cisco dot com>, Nikola Prica <nikola dot prica at rt-rk dot com>
- Date: Tue, 7 Nov 2017 21:29:41 +0000
- Subject: Re: [PATCH 0/3] Fix issues with writing Linux core PRSTATUS note on MIPS o32, n32 and n64 into core file
- Authentication-results: sourceware.org; auth=none
- References: <74618d56-fa31-4cfe-329f-6a9078bac92b@rt-rk.com> <alpine.DEB.2.00.1710171449200.3886@tp.orcam.me.uk> <724f0bc9-6744-a915-d19d-77db7e9ce514@rt-rk.com> <alpine.DEB.2.00.1710252126220.3886@tp.orcam.me.uk> <64ad38a4-b8ae-912e-45d6-7048135ada2e@rt-rk.com> <alpine.DEB.2.00.1710301253210.3886@tp.orcam.me.uk>
On Mon, 30 Oct 2017, Maciej W. Rozycki wrote:
> > Exactly the same situation I have reproduced on MIPS platforms. Have I
> > missed something?
>
> I'll see if I can reproduce it with the x86-64 target and that may help
> me understand why I don't see it with the MIPS one.
So I have looked into it now and tracked down `libthread_db' rather
than GDB to be the component requiring PID retrieval from a core file
for TLS access to work, and then only before glibc commit c579f48edba8
("Remove cached PID/TID in clone"), which was first included in 2.25
glibc release.
Given I have been using recent glibc checkouts for MIPS verification I
avoided the requirement, but I was indeed able to reproduce it natively
with x86-64 and the system-supplied `libthread_db', and then with my
MIPS environment as well, once I went with my glibc build back to commit
c579f48edba8^.
I will be adding a reference to said glibc commit when pushing your 2/3
change.
Maciej