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: Pedro Alves <palves at redhat dot com>
- To: "Maciej W. Rozycki" <macro at mips dot com>, Djordje Todorovic <djordje dot todorovic at rt-rk dot com>
- Cc: 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: Wed, 8 Nov 2017 09:56:43 +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
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=palves at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 771D5883A4
- 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> <alpine.DEB.2.00.1711072118230.10088@tp.orcam.me.uk>
On 11/07/2017 09:29 PM, Maciej W. Rozycki wrote:
> 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.
Interesting, hadn't realized libthread_db stopped requiring this.
I wonder whether it'd be a good idea to mention it in the code itself
too, say, in proc-service.:ps_getpid.
Thanks,
Pedro Alves