From owner-freebsd-threads@freebsd.org Sun Mar 5 07:57:03 2017 Return-Path: Delivered-To: freebsd-threads@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E3EFCFAB03 for ; Sun, 5 Mar 2017 07:57:03 +0000 (UTC) (envelope-from psychon@znc.in) Received: from chimera.gmake.de (chimera.gmake.de [46.253.127.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 267591816; Sun, 5 Mar 2017 07:57:02 +0000 (UTC) (envelope-from psychon@znc.in) Received: from localhost (localhost [127.0.0.1]) by chimera.gmake.de (Postfix) with ESMTP id 4B6F71D56AF1; Sun, 5 Mar 2017 08:49:20 +0100 (CET) X-Virus-Scanned: amavisd-new 2.11.0 (20160426) at chimera.gmake.de Received: from chimera.gmake.de ([127.0.0.1]) by localhost (chimera.gmake.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mDLAmLUBzLaV; Sun, 5 Mar 2017 08:49:19 +0100 (CET) Received: from [192.168.178.22] (ip5f5ae0c5.dynamic.kabel-deutschland.de [95.90.224.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by chimera.gmake.de (Postfix) with ESMTPSA id CA8F81D56AE6; Sun, 5 Mar 2017 08:49:19 +0100 (CET) Subject: Re: [Xcb] pthread_condattr_{init,destroy} stubs in libc? To: Matt Turner , Joe Marcus Clarke References: Cc: xcb@lists.freedesktop.org, freebsd-threads@freebsd.org From: Uli Schlachter Message-ID: <505bedb8-c585-44a1-de77-a66334472328@znc.in> Date: Sun, 5 Mar 2017 08:47:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Mar 2017 07:57:03 -0000 On 04.03.2017 16:59, Matt Turner wrote: > Context: https://bugs.freedesktop.org/show_bug.cgi?id=72074#c2 [...] I would summarize the problem as "libpthread-stubs.so provides weak symbols, FreeBSD's threading library provides weak symbols, the result is that a mix of stubs and real functions is used". All of this problem goes away with the new patches against pthread-stubs. There is no longer any libpthread-stubs.so whose weak symbols could cause problems. Instead, pthread-stubs.pc will just "make" things link against libpthread directly and everyone is happy. Right? (Of course, having stubs in libc for the functions which can be stubbed would still be a good idea and would avoid single-threaded programs linking against libpthread) Uli -- Sent from my Game Boy.