From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23341 invoked from network); 23 Nov 2020 12:42:34 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 23 Nov 2020 12:42:34 -0000 Received: (qmail 26139 invoked by uid 550); 23 Nov 2020 12:42:26 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 9310 invoked from network); 23 Nov 2020 12:25:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606134294; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cnZ/4cyJzTKbjdpyLp1y1V1keH/xtzzL6R5dOsr99G4=; b=XPdkmgyxgPfX7zCfBgri6auWTvEKuyUmMcGVPVOma3kWbbT/XkeLdBa6DowoT1ub4gSub2 F2y7ipCbpMnNfbRTFCIpZ5rX1c8I5rizaMV1394nspLgBLjV6PZme8vhvTIOCCPXKrUhwi 1+cIGJ+xFPErwheAMJVJnBqdVg5sDBQ= X-MC-Unique: WhJirDE_NCK5uxxVhH8ZQQ-1 Date: Mon, 23 Nov 2020 12:24:28 +0000 From: Jonathan Wakely To: =?utf-8?B?0JDRgNGB0LXQvdC40Lk=?= Cc: Rich Felker , musl@lists.openwall.com, Florian Weimer Message-ID: <20201123122428.GQ1312820@redhat.com> References: <1605849917.737458858@f540.i.mail.ru> <87mtz99owk.fsf@mid.deneb.enyo.de> <20201122192824.GQ534@brightrain.aerifal.cx> <1606075554.931961164@f189.i.mail.ru> MIME-Version: 1.0 In-Reply-To: <1606075554.931961164@f189.i.mail.ru> X-Clacks-Overhead: GNU Terry Pratchett X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jwakely@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit Subject: Re: [musl] Mutexes are not unlocking On 22/11/20 23:05 +0300, Арсений wrote: > >Hello, >  >I fixed the problem by making a workaround. Specifying -D_GLIBCXX_GTHREAD_USE_WEAK=0 forces libstdc++ headers do not use weak symbols. Mutexes are correctly locked and unlocked now. That might "work" but is unsupported, because that macro is for libstdc++'s internal use, not for users to define/undefine. But then libstdc++ doesn't support being compiled/linked against a glibc libstdc++ and then running against musl at runtime (I didn't even know that was an option until today) so one more unsupported thing probably won't hurt :-) Maybe we should just bless the use of that macro as supported, which would solve https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89714