From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67742 invoked by alias); 7 Nov 2017 21:31:42 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 67724 invoked by uid 89); 7 Nov 2017 21:31:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:14.3.361, H*r:ip*14.3.361.1, H*r:sk:mailrel X-Spam-User: qpsmtpd, 2 recipients X-HELO: 19pmail.ess.barracuda.com Received: from 19pmail.ess.barracuda.com (HELO 19pmail.ess.barracuda.com) (64.235.154.230) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 07 Nov 2017 21:31:41 +0000 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1402.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Tue, 07 Nov 2017 21:30:39 +0000 Received: from [10.20.78.212] (10.20.78.212) by mips01.mipstec.com (10.20.43.31) with Microsoft SMTP Server id 14.3.361.1; Tue, 7 Nov 2017 13:28:53 -0800 Date: Tue, 07 Nov 2017 21:31:00 -0000 From: "Maciej W. Rozycki" To: Djordje Todorovic CC: Pedro Alves , , , "nemanja.popov@rt-rk.com" , , "Ananthakrishna Sowda (asowda)" , Nikola Prica Subject: Re: [PATCH 0/3] Fix issues with writing Linux core PRSTATUS note on MIPS o32, n32 and n64 into core file In-Reply-To: Message-ID: References: <74618d56-fa31-4cfe-329f-6a9078bac92b@rt-rk.com> <724f0bc9-6744-a915-d19d-77db7e9ce514@rt-rk.com> <64ad38a4-b8ae-912e-45d6-7048135ada2e@rt-rk.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-BESS-ID: 1510090221-321458-6109-8944-13 X-BESS-VER: 2017.12-r1709122024 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.186687 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status:1 X-SW-Source: 2017-11/txt/msg00145.txt.bz2 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