From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13576 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: pthread_key_create bug? Date: Sun, 6 Jan 2019 21:11:28 -0500 Message-ID: <20190107021128.GW23599@brightrain.aerifal.cx> References: <84B22C11-AA93-47FD-8352-A4F18B19F689@gmail.com> <5c1d9cf6-1b53-7082-5dee-8673ed4c55e9@adelielinux.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1546826978 3963 195.159.176.226 (7 Jan 2019 02:09:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2019 02:09:38 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-13592-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jan 07 03:09:34 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1ggKM8-0000wM-6c for gllmg-musl@m.gmane.org; Mon, 07 Jan 2019 03:09:32 +0100 Original-Received: (qmail 29885 invoked by uid 550); 7 Jan 2019 02:11:41 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 29867 invoked from network); 7 Jan 2019 02:11:40 -0000 Content-Disposition: inline In-Reply-To: <5c1d9cf6-1b53-7082-5dee-8673ed4c55e9@adelielinux.org> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:13576 Archived-At: On Sun, Jan 06, 2019 at 08:50:46AM -0600, A. Wilcox wrote: > On 01/06/19 08:35, Nathaniel Pierce wrote: > > Hello - > > > > I believe I’ve encountered a bug in musl’s pthread_key_create(). > > Immediately after key creation, pthread_getspecific() may not return > > NULL. Here’s a gist with details and a test that fails: > > > > https://gist.github.com/nwpierce/df17c17571431a30c16999b6d0dd123f > > > > I’m running musl-1.1.19-r10 as part of Alpine 3.8.1 (via Docker). > > > > Thanks! > > > > -Nate > > > We identified this bug in August 2018: > > https://wiki.adelielinux.org/wiki/POSIX#pthread_getspecific > > I had thought there had been progress, but I can't find any ML messages > mentioning it, and your test case asserts during pass 2 on musl 1.1.20 > on my workstation running Adélie beta2/ppc64. See commit 84d061d5a31c9c773e29e1e2b1ffe8cb9557bc58. Rich