From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5A2F41F5AE for ; Tue, 27 Apr 2021 23:47:27 +0000 (UTC) Received: from localhost ([::1]:40898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbXQL-0006Cg-TH for normalperson@yhbt.net; Tue, 27 Apr 2021 19:47:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbXQI-0006CL-1n for bug-gnulib@gnu.org; Tue, 27 Apr 2021 19:47:22 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.54]:32486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbXQF-0005id-Me for bug-gnulib@gnu.org; Tue, 27 Apr 2021 19:47:21 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1619567231; cv=none; d=strato.com; s=strato-dkim-0002; b=jhApbx91SLEgw383DXxdKtmeb/rd80nIl9EEzosbMdVGspRAjWTOw0WDsshhXhVz75 GfRPqb5uyguipmvZRkmA/o5WVe3KPdbgSkQhbWStLhzr1cIMa64qcldfdt/X+B0E/VCe CDaw0tV+9GUmcLSXqyAzHtU2eOiUa26E1v2ZPfYD9/gQU/HZGBLnH0DpFNS1RBR30al1 oAg4zvZpi5pq7mbSmCF5aI+uJri/nbTcmn7KGVdvb1K6U8HJFwvmBXkHLezi3N0SmaXy MNZTo0/jatVI8ziiOXnfuZVRtcKfTzy8KRX34q14+f1ofO+XsYv42cSbATxPwSjhWpq6 8sHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1619567231; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=VmmiqioBILDtRnaB2oG9kD6dSSLzfEImkHEcJb1YA3E=; b=mJDRynbnjF6iJDfDq9jpejJKQGjR8U9yiHrOprUazWxWXKmKJpeGCFNfi51Pb8OF/e DUYxpH5rpuNcTuWVc0mK7lnefGU8VX5Qfi1Te6PJPyj8/zrASW8zF7JFvVZime5tnSPn BlIos6chs9p0Us5YZAxz0nQEla6wVwCaTBVcv1Wg+A+1vXURFz3IGppSayIZ4eqpImrW gITPyYemGB0OheTJ55Ntqr3eANsMAKceEykfyyWBHo+19vZaH1OyyIgY7PmMCMYOuZTE 4wg17RXNGLlEr+SFrgJPOgwX5V6guq0vTR9I+DIOloJc7VaLZ5/6vgSNi5CK85OhOfPZ ZsDw== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1619567231; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=VmmiqioBILDtRnaB2oG9kD6dSSLzfEImkHEcJb1YA3E=; b=BTiTCfpk9G48C4ZJ9rSXmDUEfqqqV7nYNFjP/s7NA4ZlCA75DIyXohDwgASpYfdeWv oqxlisHgusIdMGGdDn0TeO6varSnXJZ98NyUXl8mmn5EM372WvhmHRCHhvaC5A01/SpB PxU+ZXvK97oQd4MzN7lcy7ohfPrTgCAbrRVMG+fPc8pUOtZTUJ8xqedUKOO6jBdn4ifk 9u+qQBREeJrZD56bmhYag2cvGJ6CtRgp1W7GO8LVtcMKdZG73Z70QxNgvJRuKeFeivaF 5XaoYg1Shw/CJrIfbAuRcXEkMg84x2wWRvrrjQDJF0eiebko6mg0z2ayTx8QHwjZ9ywb P/KA== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqf3z5NW" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 47.25.2 DYNA|AUTH) with ESMTPSA id 905ad3x3RNlB3Q5 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 28 Apr 2021 01:47:11 +0200 (CEST) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Re: Undefined use of weak symbols in gnulib Date: Wed, 28 Apr 2021 01:47:10 +0200 Message-ID: <19516512.8WduG5kV5J@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-206-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <87o8e0p92r.fsf@oldenburg.str.redhat.com> References: <87o8e0p92r.fsf@oldenburg.str.redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.54; envelope-from=bruno@clisp.org; helo=mo4-p01-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Florian Weimer , libc-alpha@sourceware.org, binutils@sourceware.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi Florian, > This will become an urgent issue with glibc 2.34 Thank you for the early heads-up. I would like to understand the scope and the severity of the issue. You write: > Dynamic linking with weak symbols is not very well-defined. ... > the code will crash if pthread_mutexattr_gettype is ever defined. In which situations will it crash? (a) when the code is in an executable, that gets linked with '-lpthread' and that does not use dlopen()? (b) when the code is in an executable, that gets linked WITHOUT '-lpthread' and that does not use dlopen()? (c) when the code is in an executable, that gets linked WITHOUT '-lpthread' and that does a dlopen("libpthread.so.X")? Under which conditions will it crash? ($) when the executable was built before glibc 2.34 and is run with glibc 2.34 ? (%) when the executable is built against glibc 2.34 and is run with glibc 2.34 ? And if it crashes, will setting the environment variable LD_DYNAMIC_WEAK [1] avoid the crash? Bruno [1] https://sourceware.org/legacy-ml/libc-hacker/2000-06/msg00029.html