From unknown Mon Aug 18 04:09:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62647: [INSTALL] grep: re-fix Y2038 bug on glibc 2.34+ x86, ARM Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Mon, 03 Apr 2023 17:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62647 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: 62647@debbugs.gnu.org Cc: Paul Eggert X-Debbugs-Original-To: bug-grep@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16805432077785 (code B ref -1); Mon, 03 Apr 2023 17:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Apr 2023 17:33:27 +0000 Received: from localhost ([127.0.0.1]:45174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjO3a-00021U-Ri for submit@debbugs.gnu.org; Mon, 03 Apr 2023 13:33:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:49912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjO3Z-00021M-2c for submit@debbugs.gnu.org; Mon, 03 Apr 2023 13:33:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjO3Y-0003U6-Gv for bug-grep@gnu.org; Mon, 03 Apr 2023 13:33:24 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjO3W-0004XR-Bk for bug-grep@gnu.org; Mon, 03 Apr 2023 13:33:24 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id AC4E53C09FA07 for ; Mon, 3 Apr 2023 10:33:19 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id uaYT-6Aq2Obg; Mon, 3 Apr 2023 10:33:19 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 3F3B53C09FA00; Mon, 3 Apr 2023 10:33:19 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 3F3B53C09FA00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1680543199; bh=u7Z3oAxM6rIeuUp5bnfwJEdyQcdPUHsliNQvK5BjuD4=; h=From:To:Date:Message-Id:MIME-Version; b=NjpAl3BNkLyzIXVp+JNWPTl1PJnAqweuqZkDunLkGbDthfkk4Jd3qnzFykMINdghe UHZlhFR6BbouEs8bvmwZLzzTArnkxlzXnmsInORPlF45mRt3BUVNNgkhDPlODyi4C1 aMIj5fzO0KUf7Ctq1FMHgkTTmH8LHtcH22iMTtSNFyLw0QsjOL1n0LH8qfQdSqM0lo 89ck+Vz3JXXnC9YBSdoWFo6/2t0/CbUEJcr3v8V84m4s0hzshrVN34Mlq/dV84YwLy 6De2zL/RDLu3Njgprt8RV18Sv3zP+09uzvLWwDTGAXOrXfYBqmAxbTpm3Ydb/t/Zqg Lryalo3UNs99g== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id BZ3DOBhzmnnt; Mon, 3 Apr 2023 10:33:19 -0700 (PDT) Received: from wing.lan1 (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 1DFFB3C097AFA; Mon, 3 Apr 2023 10:33:19 -0700 (PDT) From: Paul Eggert Date: Mon, 3 Apr 2023 10:33:11 -0700 Message-Id: <20230403173311.339324-1-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@cs.ucla.edu; helo=mail.cs.ucla.edu X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) The meaning of AC_SYS_LARGEFILE has changed to no longer even try to use wider time_t if available. So use AC_SYS_YEAR2038 as well. A more-aggressive change would be to use the next Autoconf=E2=80=99s AC_SYS_YEAR2038_REQUIRED but at least let=E2=80=99s restore the grep 3.8 behavior. * NEWS: Mention this. * bootstrap.conf: Add year2038. --- NEWS | 4 ++++ bootstrap.conf | 1 + 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index 6ebade3..060e938 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,10 @@ GNU grep NEWS -*- o= utline -*- grep 3.8, in that patterns like \w and \b use ASCII rather than Unicode interpretations. =20 + grep no longer fails on files dated after the year 2038, + when running on 32-bit x86 and ARM hosts using glibc 2.34+. + [bug introduced in grep 3.9] + =20 * Noteworthy changes in release 3.10 (2023-03-22) [stable] =20 diff --git a/bootstrap.conf b/bootstrap.conf index 50948a6..ec48c37 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -102,6 +102,7 @@ windows-stat-inodes xalloc xbinary-io xstrtoimax +year2038 ' gnulib_name=3Dlibgreputils =20 --=20 2.37.2 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 03 13:35:08 2023 Received: (at control) by debbugs.gnu.org; 3 Apr 2023 17:35:08 +0000 Received: from localhost ([127.0.0.1]:45180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjO5E-00024a-At for submit@debbugs.gnu.org; Mon, 03 Apr 2023 13:35:08 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:54960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjO5C-00023p-4J for control@debbugs.gnu.org; Mon, 03 Apr 2023 13:35:06 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 7A6253C097AFA for ; Mon, 3 Apr 2023 10:35:00 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id PlConphjjIG6 for ; Mon, 3 Apr 2023 10:35:00 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 326403C09FA00 for ; Mon, 3 Apr 2023 10:35:00 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 326403C09FA00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1680543300; bh=6AlptWG97gA1IDTCH0i0tXYA+pZI7a0EYw4Eyq9pb24=; h=Message-ID:Date:MIME-Version:To:From; b=XriGSKRLL6IF/jM5YEg7/JWKqXgQ90SM55NkI3mPY1kGrVo+IHZPzDv0y3/UPFYu/ YUbHh/8460yb7cTSwJKn3dXLn/pXPk7GD9fHvOw2RaFjm9Vq0i4EtFxai5VzgehfzZ IsufqySYFUTCdADZN9/BzsW/d9ax6rYGlfyopV+eJZdK4t+8TX5UajAe5b8iynkLFk HblM/lEB1TtR53F5w0yoleJMxzR8ZEWg1N36nJaQoUEDZ40RoPE+z4ByJVl3zsli62 jcGoq8JJtpMelHUlNiSvDJwgU+vMMpkuLJqXUA1v+MnsPi0lAC0A+0HdVzPBl/vf8J YE3tem92Ub0Vw== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VqXbgqMaRGeW for ; Mon, 3 Apr 2023 10:35:00 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 15CFE3C097AFA for ; Mon, 3 Apr 2023 10:35:00 -0700 (PDT) Message-ID: Date: Mon, 3 Apr 2023 10:34:59 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Content-Language: en-US To: control@debbugs.gnu.org From: Paul Eggert Subject: close 62647 Organization: UCLA Computer Science Department Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 62647 From unknown Mon Aug 18 04:09:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62647: [INSTALL] grep: re-fix Y2038 bug on glibc 2.34+ x86, ARM Resent-From: Jim Meyering Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Mon, 03 Apr 2023 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62647 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: Paul Eggert Cc: 62647@debbugs.gnu.org Received: via spool by 62647-submit@debbugs.gnu.org id=B62647.168054437719419 (code B ref 62647); Mon, 03 Apr 2023 17:53:02 +0000 Received: (at 62647) by debbugs.gnu.org; 3 Apr 2023 17:52:57 +0000 Received: from localhost ([127.0.0.1]:45192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjOMS-000539-Pj for submit@debbugs.gnu.org; Mon, 03 Apr 2023 13:52:57 -0400 Received: from mail-lj1-f171.google.com ([209.85.208.171]:42523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjOMQ-00052v-Cg for 62647@debbugs.gnu.org; Mon, 03 Apr 2023 13:52:55 -0400 Received: by mail-lj1-f171.google.com with SMTP id x20so31199496ljq.9 for <62647@debbugs.gnu.org>; Mon, 03 Apr 2023 10:52:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680544368; h=content-transfer-encoding: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=HTHOaXXFUofUjy07TrGv43tuKNVNmLnlGB/nA1Bbjes=; b=WVUfetKAlM9qe3JJwKX/JhrdJtOtlpHH4cfBFnUBa3cD2kUtwx/JLZvys65ux4sMM2 oAWTbgv6LAb67/9NSi5qCYzH6wqUFh/KX9z/adCK8nqC7AFMetdXw6Ec8uPK3s1nrPFT 2GrAFbm6ualweDjha2haUBosRCF4WVbN8J/3o4kp8JuKoy9eQ+T3FyFcAroZdUa6CmAy Hl0+p6gIdZnbo3h9HsO7euaH9WghcXz12BYMTO13I1yleSHaXKpYcdJETM8hDAcrAFfz 6U5LKsM1JbOFXSqchZ4rWtrrE+AEF33Yv/IOFaJTvN3UxfdpiOHpi63AtMB1KcH+t0Iq gOAg== X-Gm-Message-State: AAQBX9cv93AeGf/vdb+AohsyDgjyzO30Ahcc2SM6WM/FySGTW6yAvQTX ayA0jUpyWPamyLWA7Snbx7V+x1xVoGBbuyF+rc4= X-Google-Smtp-Source: AKy350ZZRTmcM6WbxMZAiIgbl/3m3eN+1TFjRUrAvhadYck8zhHODloaKcV0343E2pDuUCXgapsoAs9PLvQ2W8MvQUo= X-Received: by 2002:a2e:8746:0:b0:29a:9053:ed1b with SMTP id q6-20020a2e8746000000b0029a9053ed1bmr124602ljj.3.1680544368134; Mon, 03 Apr 2023 10:52:48 -0700 (PDT) MIME-Version: 1.0 References: <20230403173311.339324-1-eggert@cs.ucla.edu> In-Reply-To: <20230403173311.339324-1-eggert@cs.ucla.edu> From: Jim Meyering Date: Mon, 3 Apr 2023 10:52:35 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) On Mon, Apr 3, 2023 at 10:34=E2=80=AFAM Paul Eggert wr= ote: > The meaning of AC_SYS_LARGEFILE has changed to no longer even try > to use wider time_t if available. So use AC_SYS_YEAR2038 as well. > A more-aggressive change would be to use the next Autoconf=E2=80=99s > AC_SYS_YEAR2038_REQUIRED but at least let=E2=80=99s restore the grep 3.8 > behavior. > * NEWS: Mention this. > * bootstrap.conf: Add year2038. > --- > NEWS | 4 ++++ > bootstrap.conf | 1 + > 2 files changed, 5 insertions(+) > > diff --git a/NEWS b/NEWS > index 6ebade3..060e938 100644 > --- a/NEWS > +++ b/NEWS > @@ -10,6 +10,10 @@ GNU grep NEWS -*- o= utline -*- > grep 3.8, in that patterns like \w and \b use ASCII rather than > Unicode interpretations. > > + grep no longer fails on files dated after the year 2038, > + when running on 32-bit x86 and ARM hosts using glibc 2.34+. > + [bug introduced in grep 3.9] > + > > * Noteworthy changes in release 3.10 (2023-03-22) [stable] > > diff --git a/bootstrap.conf b/bootstrap.conf > index 50948a6..ec48c37 100644 > --- a/bootstrap.conf > +++ b/bootstrap.conf > @@ -102,6 +102,7 @@ windows-stat-inodes > xalloc > xbinary-io > xstrtoimax > +year2038 > ' Thanks, Paul. I wanted to see how this would make grep fail, but don't have convenient access to such hosts. Would this trigger the failure? touch -t 203901010000 f grep ^ f How does it fail? From unknown Mon Aug 18 04:09:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62647: [INSTALL] grep: re-fix Y2038 bug on glibc 2.34+ x86, ARM Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Mon, 03 Apr 2023 18:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62647 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: Jim Meyering Cc: 62647@debbugs.gnu.org Received: via spool by 62647-submit@debbugs.gnu.org id=B62647.168054603322450 (code B ref 62647); Mon, 03 Apr 2023 18:21:01 +0000 Received: (at 62647) by debbugs.gnu.org; 3 Apr 2023 18:20:33 +0000 Received: from localhost ([127.0.0.1]:45235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjOnA-0005q1-Lv for submit@debbugs.gnu.org; Mon, 03 Apr 2023 14:20:32 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:45654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjOn9-0005pn-2s for 62647@debbugs.gnu.org; Mon, 03 Apr 2023 14:20:31 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id E8ED33C097AFE; Mon, 3 Apr 2023 11:20:23 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id pnmZOua-IMKo; Mon, 3 Apr 2023 11:20:23 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 9C5553C09FA01; Mon, 3 Apr 2023 11:20:23 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 9C5553C09FA01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1680546023; bh=mPT656TP5cN1Ow9XrJSGFZblbd+XW5KaTpSRL8AIm78=; h=Message-ID:Date:MIME-Version:To:From; b=VhbM80jPSMrblRIU7XMziuBWXUpFg0Fuov2NUy/A5FgTunlB1gKxWbQLCaP1tlZK7 2gGfP75hvaUthxBvdV2/SfD7q1CyE8TaMktXDgxOpcUWx9GbOFm1RzOtVrJc4t9EnU DQTwVlEcn/JdnnKMF9+4cm4TR/WNycdcEjmIWQv+lqf/ANDQRrzZ1qEafElSz01FDQ gyVHgT14AjaST4BDopil0K5RU9eshTXrafZatqgUbY1h53S4NjmwJjKbcJBfKSIwSX /GpsJraJfWkvraI/gD2iEDuE4zU8ixebNPCvGwIVC6JwYgFERbwVNCE2i9w/IA6tK2 auNBVvN0UCNgg== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HEcaQoJygRBe; Mon, 3 Apr 2023 11:20:23 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 791D33C097AFE; Mon, 3 Apr 2023 11:20:23 -0700 (PDT) Message-ID: Date: Mon, 3 Apr 2023 11:20:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Content-Language: en-US References: <20230403173311.339324-1-eggert@cs.ucla.edu> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) On 2023-04-03 10:52, Jim Meyering wrote: > I wanted to see how this would make grep fail, but don't > have convenient access to such hosts. Would this trigger the failure? > > touch -t 203901010000 f > grep ^ f Yes, that triggers it. Of course one needs a "touch" and a filesystem that supports such timestamps. Come to think of it, the year2038 module (which coreutils also employs) no longer defaults to requiring year2038 support like it used to. It now merely enables year2038 support if available. Should we change this in Gnulib? This would affect coreutils, grep etc. Gnulib year2038 became milder when there was pushback about AC_SYS_YEAR2038 when it got added to Autoconf. The next Autoconf will have AC_SYS_YEAR2038 (which merely tries to get Y2038 support) and AC_SYS_YEAR2038_REQUIRED (which requires it). It's a controversial area because these two modules can change library ABIs. I suppose in theory we could add Gnulib modules largefile-required and year2038-required, and have coreutils, grep, etc. use these modules. However, this doesn't seem worth the hassle, since packages using the largefile and year2038 modules are typically compiled with their default options. So I'm sort of leaning toward modifying Gnulib's largefile and year2038 modules to use the _REQUIRED variants. Thoughts? > How does it fail? It outputs "grep: f: Value too large for defined data type" to stderr with exit status 2. I reproduced the problem by configuring bleeding-edge grep on Ubuntu 22.10 x86-64 with an i686 compiler and library installed, and configuring this way: ./configure CC='gcc -m32' --disable-year2038 From unknown Mon Aug 18 04:09:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62647: [INSTALL] grep: re-fix Y2038 bug on glibc 2.34+ x86, ARM Resent-From: Jim Meyering Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Tue, 04 Apr 2023 02:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62647 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: Paul Eggert Cc: 62647@debbugs.gnu.org Received: via spool by 62647-submit@debbugs.gnu.org id=B62647.168057658411726 (code B ref 62647); Tue, 04 Apr 2023 02:50:02 +0000 Received: (at 62647) by debbugs.gnu.org; 4 Apr 2023 02:49:44 +0000 Received: from localhost ([127.0.0.1]:45993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjWjv-000332-PT for submit@debbugs.gnu.org; Mon, 03 Apr 2023 22:49:44 -0400 Received: from mail-lf1-f54.google.com ([209.85.167.54]:41917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjWju-00032a-8c for 62647@debbugs.gnu.org; Mon, 03 Apr 2023 22:49:42 -0400 Received: by mail-lf1-f54.google.com with SMTP id h11so33584839lfu.8 for <62647@debbugs.gnu.org>; Mon, 03 Apr 2023 19:49:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680576576; h=content-transfer-encoding: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=WkKwJtqA//SEk7pwEH1uiDHU/ktLG9Li1hkcy4ZuGkc=; b=k4THVFAy7rtnFNjyRCaoxVR6x4TgLU54HS1TRmHOMTCPHQoQXOO3oL3D5d6IB3P8Ku p1aKr0AKt9yjcyjBn2CeXen7l7PwlOHWrCB71AEPfviWtqxF2ohQi7sJ7DD2rOrmQ5UD go0ynrDv5Zas8lSwHXCK9YGaUs8N3frnqgRZrWSqu2xuTY23b+jpFP4xiUI+wlDZTcSv WAs105899ixGmlDYWftwIYTRKfZD5d1ZYGzdaMd45i0RYZEpTvyThGqQODNRoiNwl6+N ru38WLal8iJnboWScz6N9mnc3c+PpvEJUTyGYscpH9g54I00FOwRkAtY2YAli9K6g96s r88A== X-Gm-Message-State: AAQBX9fQuBXMnnjd3O+aCOjR4rb0FQ9wGjVl4f5YtIfsa+iG+lZsA7RO RQmFwLoI3bFaj0qHFjlC7l/Za7OZcjD/3AYfJWU= X-Google-Smtp-Source: AKy350bsKOs9f9dUp/9W0DrshwHZMXvl9mC9LcWxNfdU2vnkbkRKxPMgchQ0eX6wpI8mvGkhWSpFl5AfMclTbxohD5Q= X-Received: by 2002:a05:6512:23a3:b0:4d8:86c2:75ea with SMTP id c35-20020a05651223a300b004d886c275eamr9035325lfv.3.1680576575613; Mon, 03 Apr 2023 19:49:35 -0700 (PDT) MIME-Version: 1.0 References: <20230403173311.339324-1-eggert@cs.ucla.edu> In-Reply-To: From: Jim Meyering Date: Mon, 3 Apr 2023 19:49:23 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) On Mon, Apr 3, 2023 at 11:20=E2=80=AFAM Paul Eggert wr= ote: > On 2023-04-03 10:52, Jim Meyering wrote: > > I wanted to see how this would make grep fail, but don't > > have convenient access to such hosts. Would this trigger the failure? > > > > touch -t 203901010000 f > > grep ^ f > > Yes, that triggers it. Of course one needs a "touch" and a filesystem > that supports such timestamps. > > Come to think of it, the year2038 module (which coreutils also employs) > no longer defaults to requiring year2038 support like it used to. It now > merely enables year2038 support if available. Should we change this in > Gnulib? This would affect coreutils, grep etc. > > Gnulib year2038 became milder when there was pushback about > AC_SYS_YEAR2038 when it got added to Autoconf. The next Autoconf will > have AC_SYS_YEAR2038 (which merely tries to get Y2038 support) and > AC_SYS_YEAR2038_REQUIRED (which requires it). > > It's a controversial area because these two modules can change library > ABIs. I suppose in theory we could add Gnulib modules largefile-required > and year2038-required, and have coreutils, grep, etc. use these modules. > However, this doesn't seem worth the hassle, since packages using the > largefile and year2038 modules are typically compiled with their default > options. So I'm sort of leaning toward modifying Gnulib's largefile and > year2038 modules to use the _REQUIRED variants. > > Thoughts? I followed that autoconf discussion and am all for requiring y2038 support in the tools we tend. From unknown Mon Aug 18 04:09:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62647: [INSTALL] grep: re-fix Y2038 bug on glibc 2.34+ x86, ARM Resent-From: arnold@skeeve.com Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Tue, 04 Apr 2023 06:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62647 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: jim@meyering.net, eggert@cs.ucla.edu Cc: 62647@debbugs.gnu.org Received: via spool by 62647-submit@debbugs.gnu.org id=B62647.168059016218788 (code B ref 62647); Tue, 04 Apr 2023 06:37:01 +0000 Received: (at 62647) by debbugs.gnu.org; 4 Apr 2023 06:36:02 +0000 Received: from localhost ([127.0.0.1]:46362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjaGv-0004sl-Mx for submit@debbugs.gnu.org; Tue, 04 Apr 2023 02:36:01 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:37772 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjaGu-0004sW-5U for 62647@debbugs.gnu.org; Tue, 04 Apr 2023 02:36:00 -0400 X-Envelope-From: arnold@skeeve.com Received: from freefriends.org (frenzy.freefriends.org [198.99.81.75]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 3346ZkCO029031 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Apr 2023 00:35:47 -0600 Received: (from arnold@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 3346Zkxm029030; Tue, 4 Apr 2023 00:35:46 -0600 From: arnold@skeeve.com Message-Id: <202304040635.3346Zkxm029030@freefriends.org> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@skeeve.com using -f Date: Tue, 04 Apr 2023 00:35:46 -0600 References: <20230403173311.339324-1-eggert@cs.ucla.edu> In-Reply-To: User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Jim Meyering wrote: > Thanks, Paul. > I wanted to see how this would make grep fail, but don't > have convenient access to such hosts. Would this trigger the failure? > > touch -t 203901010000 f > grep ^ f > > How does it fail? Why in the world does grep even care about timestamps on files? Thanks, Arnold From unknown Mon Aug 18 04:09:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62647: [INSTALL] grep: re-fix Y2038 bug on glibc 2.34+ x86, ARM Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Tue, 04 Apr 2023 06:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62647 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: arnold@skeeve.com, jim@meyering.net Cc: 62647@debbugs.gnu.org Received: via spool by 62647-submit@debbugs.gnu.org id=B62647.168059038119226 (code B ref 62647); Tue, 04 Apr 2023 06:40:02 +0000 Received: (at 62647) by debbugs.gnu.org; 4 Apr 2023 06:39:41 +0000 Received: from localhost ([127.0.0.1]:46369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjaKS-000502-LI for submit@debbugs.gnu.org; Tue, 04 Apr 2023 02:39:41 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:36816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjaKQ-0004zl-2z for 62647@debbugs.gnu.org; Tue, 04 Apr 2023 02:39:38 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 1DB8D3C09FA01; Mon, 3 Apr 2023 23:39:32 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id aapbJwlUQT4T; Mon, 3 Apr 2023 23:39:31 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 00FE93C09FA05; Mon, 3 Apr 2023 23:39:31 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 00FE93C09FA05 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1680590371; bh=XI+JNyFYIHWCAM8u08Lj+2+o4LqMBdEFeBKWzgyMUUw=; h=Message-ID:Date:MIME-Version:To:From; b=ojf1qruzeCnt7kk0ig9ROp6cMsV7/ScsfLi7yIZILYH2BQUYyan4VEzCjzPsQdApT y1Qh28eALV3c4hXeaOJxF+V53Btf4jG6CvEnTcfrvp9QW2MV6NXHBkjL9zTDnuJHMB Fj+xAV8Q78FcR6zfNX0BYS1Cm+61K5N9IrUPFp/G6ZzvXLVIkrCYFjgiUdQdJW23x1 xHHLdxWceVTncsnEjSK7JEGJVVWMnxMYYCK/WxDNGXHHFkYEP03+/FmscHY8t2yxWd z5uZgwp945XfKlEXamASCwUhEK9OSzba25lSORItfrbV0LVPpFqn4QEMcOyOQXqvh+ qbdFliNEI274g== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VsMtrHykKA5t; Mon, 3 Apr 2023 23:39:30 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id CFEEF3C09FA01; Mon, 3 Apr 2023 23:39:30 -0700 (PDT) Message-ID: Date: Mon, 3 Apr 2023 23:39:30 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Content-Language: en-US References: <20230403173311.339324-1-eggert@cs.ucla.edu> <202304040635.3346Zkxm029030@freefriends.org> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <202304040635.3346Zkxm029030@freefriends.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) On 2023-04-03 23:35, arnold@skeeve.com wrote: > Why in the world does grep even care about timestamps on files? The same reason 'awk' does. grep calls stat, fstat, etc., and the call fails with errno == EOVERFLOW if the file's timestamp is past the year 2038. For the same reason I expect that awk, too, should use AC_SYS_YEAR2038 or its equivalent. From unknown Mon Aug 18 04:09:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62647: [INSTALL] grep: re-fix Y2038 bug on glibc 2.34+ x86, ARM Resent-From: arnold@skeeve.com Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Tue, 04 Apr 2023 06:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62647 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: jim@meyering.net, eggert@cs.ucla.edu, arnold@skeeve.com Cc: 62647@debbugs.gnu.org Received: via spool by 62647-submit@debbugs.gnu.org id=B62647.168059059219695 (code B ref 62647); Tue, 04 Apr 2023 06:44:02 +0000 Received: (at 62647) by debbugs.gnu.org; 4 Apr 2023 06:43:12 +0000 Received: from localhost ([127.0.0.1]:46380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjaNr-00057b-Mc for submit@debbugs.gnu.org; Tue, 04 Apr 2023 02:43:11 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:37896 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjaNq-00057R-Lv for 62647@debbugs.gnu.org; Tue, 04 Apr 2023 02:43:11 -0400 X-Envelope-From: arnold@skeeve.com Received: from freefriends.org (frenzy.freefriends.org [198.99.81.75]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 3346h3Ca029822 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Apr 2023 00:43:04 -0600 Received: (from arnold@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 3346h3h3029821; Tue, 4 Apr 2023 00:43:03 -0600 From: arnold@skeeve.com Message-Id: <202304040643.3346h3h3029821@freefriends.org> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@skeeve.com using -f Date: Tue, 04 Apr 2023 00:43:03 -0600 References: <20230403173311.339324-1-eggert@cs.ucla.edu> <202304040635.3346Zkxm029030@freefriends.org> In-Reply-To: User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Paul Eggert wrote: > On 2023-04-03 23:35, arnold@skeeve.com wrote: > > Why in the world does grep even care about timestamps on files? > > The same reason 'awk' does. grep calls stat, fstat, etc., and the call > fails with errno == EOVERFLOW if the file's timestamp is past the year 2038. > > For the same reason I expect that awk, too, should use AC_SYS_YEAR2038 > or its equivalent. Wow! That's all news to me! I will have to look into this. Thanks, Arnold