From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id EB1873858D33; Fri, 5 May 2023 11:16:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EB1873858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9659443fb56so248263866b.2; Fri, 05 May 2023 04:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683285376; x=1685877376; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XYK8vbvcIA/ZdyWHaGwH1Jm16Hj+zYWu/vnGTTP6j0U=; b=KhI+YEpgi9lCHX8Kw9y0sQLrVKE15OcsUlUanpHwA4skMUDNJRRlvRzQd2R5fqO3aT oeP3f9eL/HPEucROGBYmFPYIeTHbqq2cOEp0KODHuhR6nD5oZ9oZXOY7trdqsjKjbPeI Yw8lO42Ef+ohqajXu6XtnQql4Te1H0JIzdFrMwzGaeDBCWXQOzvBV+vNOZV5qoeQWIhd SGUE51w3CLydujwxXpMO6tXxBsjOghn1LeJHRuOBcRg9KUHUBUDh3n1HCdx0aHE+8g5F x4A9fiRSagkuYf0D/yYDadCVPsHFJt2ShiHaBVDknZaePnUWizS+dPz76+glUrglZa5b rpKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683285376; x=1685877376; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XYK8vbvcIA/ZdyWHaGwH1Jm16Hj+zYWu/vnGTTP6j0U=; b=K4RNzq1PLv3vmP2WqCaDh/Hl9iMAYUJLW/9g0YeGeIGzF3dNdMO18a86OkYBko8J5h CVWpFd4lKpQCX27LQlNMEQrw9HZdPmPLHg1qXPyZBxyjOB5yhoIoP9RrJv3zYBbXEhQ4 sS91tSBPjGcXSj2/l/5bhZbkpUtiIqr80ujRottqhS8hiAfjXkYtN96adjIhK7zERmeQ WYsLgau0d2sT4Jrq81VVDBjK5HNEN5ZSk/L73RIuBhzNmKmuw74ai86CwberlqeWVS1/ SytZSYjF7CfoDOfxYh5NTfSQT+HLO9HUoaYlmf4YMn38xTR/GJn7x9k4Xdc4phBLupbO IITQ== X-Gm-Message-State: AC+VfDz9VxhBxS25Rzi0PU3nmTPml2TNIl9arqnvFvnF/g/vAcMEWLT7 JcW9T6gffCZ9WM2mumlDLEfLikwmCAqEQobtB7c= X-Google-Smtp-Source: ACHHUZ7kYYFvRYa4KSPcXPYXaDF7p610GqRNRDv6LkgJxU81ioalGR2CoYqfui0CU+bm36EcuNsOGhj7lz8MoJpwhPo= X-Received: by 2002:a17:907:8a1d:b0:962:9ffa:be1b with SMTP id sc29-20020a1709078a1d00b009629ffabe1bmr946815ejc.3.1683285376288; Fri, 05 May 2023 04:16:16 -0700 (PDT) MIME-Version: 1.0 References: <878re3vxn5.fsf@oldenburg.str.redhat.com> In-Reply-To: <878re3vxn5.fsf@oldenburg.str.redhat.com> From: Jonathan Wakely Date: Fri, 5 May 2023 12:16:05 +0100 Message-ID: Subject: Re: Y2038: GCC gthr-posix.h weakref symbol invoking function has impact on time values To: Florian Weimer Cc: "Puneet Kumar Yatnal (QUIC) via Gcc-bugs" , "Puneet Kumar Yatnal (QUIC)" , Andrew Pinski , gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, 5 May 2023 at 12:13, Florian Weimer wrote: > > * Puneet Kumar Yatnal via Gcc-bugs: > > > What is next step here? How do I post this in Bugzilla and get > > support. > > This issue has already been fixed with this commit: > > commit 80fe172ba9820199c2bbce5d0611ffca27823049 > Author: Jonathan Wakely > Date: Tue Nov 9 23:45:36 2021 +0000 > > libstdc++: Disable gthreads weak symbols for glibc 2.34 [PR103133] Indeed, as pointed out in bugzilla after the discussion moved there: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109540 > > Since Glibc 2.34 all pthreads symbols are defined directly in libc not > libpthread, and since Glibc 2.32 we have used __libc_single_threaded to > avoid unnecessary locking in single-threaded programs. This means there > is no reason to avoid linking to libpthread now, and so no reason to use > weak symbols defined in gthr-posix.h for all the pthread_xxx functions. > > libstdc++-v3/ChangeLog: > > PR libstdc++/100748 > PR libstdc++/103133 > * config/os/gnu-linux/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): > Define for glibc 2.34 and later. > > It's been backported to GCC 10, but not GCC 9. Backporting to 9 > requires some messaging to get into 9 which lacks commit > b11cbbbb74b0e357652a1f1f0d93 ("libstdc++: Avoid calling undefined > __gthread_self weak symbol [PR 95989]"). > > Thanks, > Florian >