X-Loop: help-debbugs@HIDDEN Subject: bug#77828: LTO build fails with grep 3.12 Resent-From: Christian Hesse <list@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-grep@HIDDEN Resent-Date: Tue, 15 Apr 2025 17:03:03 +0000 Resent-Message-ID: <handler.77828.B.17447365616354 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 77828 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: 77828 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-grep@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.17447365616354 (code B ref -1); Tue, 15 Apr 2025 17:03:03 +0000 Received: (at submit) by debbugs.gnu.org; 15 Apr 2025 17:02:41 +0000 Received: from localhost ([127.0.0.1]:54664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u4jgH-0001eK-0N for submit <at> debbugs.gnu.org; Tue, 15 Apr 2025 13:02:41 -0400 Received: from lists.gnu.org ([2001:470:142::17]:43698) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <list@HIDDEN>) id 1u4jgF-0001cD-1m for submit <at> debbugs.gnu.org; Tue, 15 Apr 2025 13:02:39 -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 <list@HIDDEN>) id 1u4jfj-0002q9-Fi for bug-grep@HIDDEN; Tue, 15 Apr 2025 13:02:09 -0400 Received: from mx.mylinuxtime.de ([46.4.70.188]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <list@HIDDEN>) id 1u4jfg-0003tQ-O9 for bug-grep@HIDDEN; Tue, 15 Apr 2025 13:02:06 -0400 Received: from leda.eworm.net (unknown [185.209.196.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx.mylinuxtime.de (Postfix) with ESMTPSA id 3E3792989BC for <bug-grep@HIDDEN>; Tue, 15 Apr 2025 19:02:00 +0200 (CEST) Authentication-Results: mx.mylinuxtime.de; auth=pass smtp.auth=mail@HIDDEN smtp.mailfrom=list@HIDDEN Date: Tue, 15 Apr 2025 19:01:59 +0200 From: Christian Hesse <list@HIDDEN> Message-ID: <20250415112151.092748d5@HIDDEN> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; x86_64-pc-linux-gnu) X-Face: %O:rCSk<c"<MpJ:yn<>HSKf7^4uF|FD$9$I0}g$nbnS1{DYPvs#:,~e`).mzj\$P9]V!WCveE/XdbL,L!{)6v%x4<jA|JaB-SKm74~Wa1m; |\QFlOg>\Bt!b#{; dS&h"7l=ow'^({02!2%XOugod|u*mYBVm-OS:VpZ"ZrRA4[Q&zye,^j; ftj!Hxx\1@; LM)Pz)|B%1#sfF; s; ,N?*K*^) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUZFRFENy6KVTKEd23CiGHeqofJvrX4+vdHgItOAAAACXBIWXMAAA3XAAAN1wFCKJt4AAACUklEQVQ4y2VUTZeqMAxNxXG2Io5uGd64L35unbF9ax0b3OLxgFs4PcLff0lBHeb1QIq5uelNCEJNq/TIFGyeC+iugH0WJr+B1MvzWASpuP4CYHOB0VfoDdddwA7OIFQIEHjXDiCtV5e9QX0WMu8AG0mB7g7WP4GqeqVdsi4vv/5kFBvaF/zD7zDquL4DxbrDGDyAsgNYOsJOYzth4Q9ZF6iLV+6TLAT1pi2kuvgAtZxSjoG8cL+8vIn251uoe1OOEWwbIPU04gHsmMsoxyyhYsD2FdIigF1yxaVbBuSOCAlCoX324I7wNMhrO1bhOLsRoA6DC6wQ5eQiSG5BiWQfM4gN+uItQTRDMaJUhVbGyKWCuaaUGSVFVKpl4PdoDn3yY8J+YxQxyhlHfoYOyPgyDcO+cSQK6Bvabjcy2nwRo3pxgA8jslnCuYw23ESOzHAPYwo4ITNQMaOO+RGPEGhSlPEZBh2jmBEjQ5cKbxmr0ruAe/WCriUxW76I8T3h7vqY5VR5wXLdERodg2rHEzdxxk5KpXTL4FwnarvndKM5/MWDY5CuBBdQ+3/0ivsUJHicuHd+Xh3jOdBL+FjSGq4SPCwco+orpWlERRTNo7BHCvbNXFVSIQMp+P5QsIL9upmr8kMTUOfxEHoanwzKRcNAe76WbjBwex/RkdHu48xT5YqP70DaMOhBcTHmAVDxLaBdle93oJy1QKFUh2GXT4am+YH/GGel1CeI98GdMXsytjCKIq/9cMrlgxFCROv+3/BU1fijNpcVD6DxE8VfLBaxUGr1D5usgDYdjwiPAAAAAElFTkSuQmCC MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/u4sg7TB9_TBO1fJ8s2/bN3A"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spamd-Bar: / X-Stat-Signature: x6bumfah4d4ihqieb1kikr83pmsjjfub X-Spam-Status: No, score=0.00 X-Spamd-Result: default: False [0.00 / 15.00] X-Rspamd-Server: mx X-Rspamd-Queue-Id: 3E3792989BC X-Rspamd-Action: no action Received-SPF: pass client-ip=46.4.70.188; envelope-from=list@HIDDEN; helo=mx.mylinuxtime.de X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL_CSS=3.335, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 4.5 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello everybody, I am building grep 3.12 in a clean build environment for Arch Linux. That fails when building with link time optimization is enabled: CCLD grep In function 'dfaoptimize', inlined from 'dfaanalyze' at ../lib/dfa.c:2873:3: ../lib/dfa.c:2606:12: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 2606 | flags[0] [...] Content analysis details: (4.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.209.196.175 listed in zen.spamhaus.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello everybody, I am building grep 3.12 in a clean build environment for Arch Linux. That fails when building with link time optimization is enabled: CCLD grep In function 'dfaoptimize', inlined from 'dfaanalyze' at ../lib/dfa.c:2873:3: ../lib/dfa.c:2606:12: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 2606 | flags[0] [...] Content analysis details: (3.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.209.196.175 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --Sig_/u4sg7TB9_TBO1fJ8s2/bN3A Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello everybody, I am building grep 3.12 in a clean build environment for Arch Linux. That fails when building with link time optimization is enabled: CCLD grep In function 'dfaoptimize', inlined from 'dfaanalyze' at ../lib/dfa.c:2873:3: ../lib/dfa.c:2606:12: error: writing 1 byte into a region of size 0 [-Werror=3Dstringop-overflow=3D] 2606 | flags[0] |=3D OPT_QUEUED; | ^ In function 'icalloc', inlined from 'xicalloc' at ../lib/xmalloc.c:304:10, inlined from 'xizalloc' at ../lib/xmalloc.c:289:10, inlined from 'dfaoptimize' at ../lib/dfa.c:2589:17, inlined from 'dfaanalyze' at ../lib/dfa.c:2873:3: ../lib/ialloc.h:91:10: note: destination object of size [0, 9223372036854775807] allocated by 'calloc' 91 | return calloc (n, s); | ^ lto1: all warnings being treated as errors The build succeed as soon as I disable link time optimization. Would be nice to have a fix for this to reenable lto. Let me know if I can provide more information on this. Thanks! --=20 main(a){char*c=3D/* Schoene Gruesse */"B?IJj;MEH" "CX:;",b;for(a/* Best regards my address: */=3D0;b=3Dc[a+= +];) putchar(b-1/(/* Chris cc -ox -xc - && ./x */b/42*2-3)*42);} --Sig_/u4sg7TB9_TBO1fJ8s2/bN3A Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEXHmveYAHrRp+prOviUUh18yA9HYFAmf+kQcACgkQiUUh18yA 9HYvhwf/Y+G7EYiOyQPuT0g6U+8lCkI2Ohvh5xYWUHfp9u56sUSJcAaOR9aYC4xo axTyZPymwC9JHX5jq4dY8AZKsBbrGnxO+axw6ubVgRHNyHQcQ97QxVYNfiaVgAQL XMtkKOyE+Aizcae9+6cRcYZ2pBrQLColvBrlJOqIA7RHYMM1tmh8x0/30EVMARCp 7Ig+YHXr5wYtLmdMdQ6E3QXk5S5X3kzTBGff2guOx3cZUeEpGcVxWnQfEv0Vbl1/ Hc+UAuiMxa6nVxaDijC75DLn/SMlelXOodaTrTPd9xMPtwXu/0ZVclPPuCAwOqxG 5J8xlBNMNlZ72A9D0dXZMjffvnV+AQ== =/5ln -----END PGP SIGNATURE----- --Sig_/u4sg7TB9_TBO1fJ8s2/bN3A--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Christian Hesse <list@HIDDEN> Subject: bug#77828: Acknowledgement (LTO build fails with grep 3.12) Message-ID: <handler.77828.B.17447365616354.ack <at> debbugs.gnu.org> References: <20250415112151.092748d5@HIDDEN> X-Gnu-PR-Message: ack 77828 X-Gnu-PR-Package: grep Reply-To: 77828 <at> debbugs.gnu.org Date: Tue, 15 Apr 2025 17:03:03 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-grep@HIDDEN If you wish to submit further information on this problem, please send it to 77828 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 77828: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77828 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 20 Apr 2025 06:34:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 20 02:34:21 2025 Received: from localhost ([127.0.0.1]:43981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u6OFx-0002tb-CH for submit <at> debbugs.gnu.org; Sun, 20 Apr 2025 02:34:21 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:43028) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1u6OFu-0002tE-22 for control <at> debbugs.gnu.org; Sun, 20 Apr 2025 02:34:19 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 2DDE53C010844 for <control <at> debbugs.gnu.org>; Sat, 19 Apr 2025 23:34:10 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id 6iAJkdxbxR-h for <control <at> debbugs.gnu.org>; Sat, 19 Apr 2025 23:34:10 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 084493C010847 for <control <at> debbugs.gnu.org>; Sat, 19 Apr 2025 23:34:10 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 084493C010847 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1745130850; bh=OLv1qLcQKOWK8neY+kE63BBUjy5kZB0Y5RVnNafH51s=; h=Message-ID:Date:MIME-Version:To:From; b=V23rVxBGjPwfG5e+aWhXQt6FXEJOBfuV6sJ1gPDQDbSmSkrjcNylef66gsjcYigDx EZwNBZwsQiztpKuf3TRNidRv6tBOEqb4XDVJJDGVcA0mSUKZdnoRDpjbkAHzodc0zl EI06LZWr3/vjqktKMjsWUtngFVFhbNyHtHnMrunNON2mOKfM1iK33SCPAsvaQY4n7a k6AcvmulvWQH5OouHO/cBNo9/ejBuhu+k0+5XLIazUieosgO0Gya81Q5Ipchy35CeA 9aG4AZNDj5dDiI+oxZUyjNiyRxr56ncGyXa9Lkru102zwjS1Iw4slBNPJz5UWt9GK4 A9sog4OkLFCtw== X-Virus-Scanned: amavis 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]) (amavis, port 10026) with ESMTP id hP3jszzh9f_m for <control <at> debbugs.gnu.org>; Sat, 19 Apr 2025 23:34:09 -0700 (PDT) Received: from [192.168.254.12] (47-147-225-25.fdr01.snmn.ca.ip.frontiernet.net [47.147.225.25]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id E54A03C010844 for <control <at> debbugs.gnu.org>; Sat, 19 Apr 2025 23:34:09 -0700 (PDT) Message-ID: <af10f9b9-1ea0-4f8b-ad50-092d363c3c9c@HIDDEN> Date: Sat, 19 Apr 2025 23:34:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: control <at> debbugs.gnu.org From: Paul Eggert <eggert@HIDDEN> Subject: grep bug maintenance 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) close 77828 merge 77824 77828
Received: (at fakecontrol) by fakecontrolmessage; To: internal_control <at> debbugs.gnu.org From: Debbugs Internal Request <help-debbugs@HIDDEN> Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Sun, 20 Apr 2025 06:37:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator
MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Paul Eggert <eggert@HIDDEN> Subject: bug#77828: closed (LTO build fails with grep 3.12) CC: tracker <at> debbugs.gnu.org Message-ID: <handler.77828.D77828.174513128713133.ackdone <at> debbugs.gnu.org> References: <cbe6ce22-db08-4b49-8294-b43439e118b4@HIDDEN> <20250415112151.092748d5@HIDDEN> X-Gnu-PR-Message: closed 77828 X-Gnu-PR-Package: grep Date: Sun, 20 Apr 2025 06:42:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1745131322-13202-0" This is a multi-part message in MIME format... ------------=_1745131322-13202-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sat, 19 Apr 2025 23:41:17 -0700 with message-id <cbe6ce22-db08-4b49-8294-b43439e118b4@HIDDEN> and subject line Re: bug#77828: LTO build fails with grep 3.12 has caused the debbugs.gnu.org bug report #77828, regarding LTO build fails with grep 3.12 to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs@HIDDEN) --=20 77828: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77828 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems ------------=_1745131322-13202-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Apr 2025 17:02:41 +0000 Received: from localhost ([127.0.0.1]:54664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u4jgH-0001eK-0N for submit <at> debbugs.gnu.org; Tue, 15 Apr 2025 13:02:41 -0400 Received: from lists.gnu.org ([2001:470:142::17]:43698) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <list@HIDDEN>) id 1u4jgF-0001cD-1m for submit <at> debbugs.gnu.org; Tue, 15 Apr 2025 13:02:39 -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 <list@HIDDEN>) id 1u4jfj-0002q9-Fi for bug-grep@HIDDEN; Tue, 15 Apr 2025 13:02:09 -0400 Received: from mx.mylinuxtime.de ([46.4.70.188]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <list@HIDDEN>) id 1u4jfg-0003tQ-O9 for bug-grep@HIDDEN; Tue, 15 Apr 2025 13:02:06 -0400 Received: from leda.eworm.net (unknown [185.209.196.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx.mylinuxtime.de (Postfix) with ESMTPSA id 3E3792989BC for <bug-grep@HIDDEN>; Tue, 15 Apr 2025 19:02:00 +0200 (CEST) Authentication-Results: mx.mylinuxtime.de; auth=pass smtp.auth=mail@HIDDEN smtp.mailfrom=list@HIDDEN Date: Tue, 15 Apr 2025 19:01:59 +0200 From: Christian Hesse <list@HIDDEN> To: bug-grep@HIDDEN Subject: LTO build fails with grep 3.12 Message-ID: <20250415112151.092748d5@HIDDEN> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; x86_64-pc-linux-gnu) X-Face: %O:rCSk<c"<MpJ:yn<>HSKf7^4uF|FD$9$I0}g$nbnS1{DYPvs#:,~e`).mzj\$P9]V!WCveE/XdbL,L!{)6v%x4<jA|JaB-SKm74~Wa1m; |\QFlOg>\Bt!b#{; dS&h"7l=ow'^({02!2%XOugod|u*mYBVm-OS:VpZ"ZrRA4[Q&zye,^j; ftj!Hxx\1@; LM)Pz)|B%1#sfF; s; ,N?*K*^) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUZFRFENy6KVTKEd23CiGHeqofJvrX4+vdHgItOAAAACXBIWXMAAA3XAAAN1wFCKJt4AAACUklEQVQ4y2VUTZeqMAxNxXG2Io5uGd64L35unbF9ax0b3OLxgFs4PcLff0lBHeb1QIq5uelNCEJNq/TIFGyeC+iugH0WJr+B1MvzWASpuP4CYHOB0VfoDdddwA7OIFQIEHjXDiCtV5e9QX0WMu8AG0mB7g7WP4GqeqVdsi4vv/5kFBvaF/zD7zDquL4DxbrDGDyAsgNYOsJOYzth4Q9ZF6iLV+6TLAT1pi2kuvgAtZxSjoG8cL+8vIn251uoe1OOEWwbIPU04gHsmMsoxyyhYsD2FdIigF1yxaVbBuSOCAlCoX324I7wNMhrO1bhOLsRoA6DC6wQ5eQiSG5BiWQfM4gN+uItQTRDMaJUhVbGyKWCuaaUGSVFVKpl4PdoDn3yY8J+YxQxyhlHfoYOyPgyDcO+cSQK6Bvabjcy2nwRo3pxgA8jslnCuYw23ESOzHAPYwo4ITNQMaOO+RGPEGhSlPEZBh2jmBEjQ5cKbxmr0ruAe/WCriUxW76I8T3h7vqY5VR5wXLdERodg2rHEzdxxk5KpXTL4FwnarvndKM5/MWDY5CuBBdQ+3/0ivsUJHicuHd+Xh3jOdBL+FjSGq4SPCwco+orpWlERRTNo7BHCvbNXFVSIQMp+P5QsIL9upmr8kMTUOfxEHoanwzKRcNAe76WbjBwex/RkdHu48xT5YqP70DaMOhBcTHmAVDxLaBdle93oJy1QKFUh2GXT4am+YH/GGel1CeI98GdMXsytjCKIq/9cMrlgxFCROv+3/BU1fijNpcVD6DxE8VfLBaxUGr1D5usgDYdjwiPAAAAAElFTkSuQmCC MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/u4sg7TB9_TBO1fJ8s2/bN3A"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spamd-Bar: / X-Stat-Signature: x6bumfah4d4ihqieb1kikr83pmsjjfub X-Spam-Status: No, score=0.00 X-Spamd-Result: default: False [0.00 / 15.00] X-Rspamd-Server: mx X-Rspamd-Queue-Id: 3E3792989BC X-Rspamd-Action: no action Received-SPF: pass client-ip=46.4.70.188; envelope-from=list@HIDDEN; helo=mx.mylinuxtime.de X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL_CSS=3.335, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 4.5 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello everybody, I am building grep 3.12 in a clean build environment for Arch Linux. That fails when building with link time optimization is enabled: CCLD grep In function 'dfaoptimize', inlined from 'dfaanalyze' at ../lib/dfa.c:2873:3: ../lib/dfa.c:2606:12: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 2606 | flags[0] [...] Content analysis details: (4.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.209.196.175 listed in zen.spamhaus.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello everybody, I am building grep 3.12 in a clean build environment for Arch Linux. That fails when building with link time optimization is enabled: CCLD grep In function 'dfaoptimize', inlined from 'dfaanalyze' at ../lib/dfa.c:2873:3: ../lib/dfa.c:2606:12: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 2606 | flags[0] [...] Content analysis details: (3.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.209.196.175 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --Sig_/u4sg7TB9_TBO1fJ8s2/bN3A Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello everybody, I am building grep 3.12 in a clean build environment for Arch Linux. That fails when building with link time optimization is enabled: CCLD grep In function 'dfaoptimize', inlined from 'dfaanalyze' at ../lib/dfa.c:2873:3: ../lib/dfa.c:2606:12: error: writing 1 byte into a region of size 0 [-Werror=3Dstringop-overflow=3D] 2606 | flags[0] |=3D OPT_QUEUED; | ^ In function 'icalloc', inlined from 'xicalloc' at ../lib/xmalloc.c:304:10, inlined from 'xizalloc' at ../lib/xmalloc.c:289:10, inlined from 'dfaoptimize' at ../lib/dfa.c:2589:17, inlined from 'dfaanalyze' at ../lib/dfa.c:2873:3: ../lib/ialloc.h:91:10: note: destination object of size [0, 9223372036854775807] allocated by 'calloc' 91 | return calloc (n, s); | ^ lto1: all warnings being treated as errors The build succeed as soon as I disable link time optimization. Would be nice to have a fix for this to reenable lto. Let me know if I can provide more information on this. Thanks! --=20 main(a){char*c=3D/* Schoene Gruesse */"B?IJj;MEH" "CX:;",b;for(a/* Best regards my address: */=3D0;b=3Dc[a+= +];) putchar(b-1/(/* Chris cc -ox -xc - && ./x */b/42*2-3)*42);} --Sig_/u4sg7TB9_TBO1fJ8s2/bN3A Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEXHmveYAHrRp+prOviUUh18yA9HYFAmf+kQcACgkQiUUh18yA 9HYvhwf/Y+G7EYiOyQPuT0g6U+8lCkI2Ohvh5xYWUHfp9u56sUSJcAaOR9aYC4xo axTyZPymwC9JHX5jq4dY8AZKsBbrGnxO+axw6ubVgRHNyHQcQ97QxVYNfiaVgAQL XMtkKOyE+Aizcae9+6cRcYZ2pBrQLColvBrlJOqIA7RHYMM1tmh8x0/30EVMARCp 7Ig+YHXr5wYtLmdMdQ6E3QXk5S5X3kzTBGff2guOx3cZUeEpGcVxWnQfEv0Vbl1/ Hc+UAuiMxa6nVxaDijC75DLn/SMlelXOodaTrTPd9xMPtwXu/0ZVclPPuCAwOqxG 5J8xlBNMNlZ72A9D0dXZMjffvnV+AQ== =/5ln -----END PGP SIGNATURE----- --Sig_/u4sg7TB9_TBO1fJ8s2/bN3A-- ------------=_1745131322-13202-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 77828-done) by debbugs.gnu.org; 20 Apr 2025 06:41:27 +0000 Received: from localhost ([127.0.0.1]:44049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u6OMp-0003Pk-41 for submit <at> debbugs.gnu.org; Sun, 20 Apr 2025 02:41:27 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:40596) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1u6OMl-0003OF-Hq for 77828-done <at> debbugs.gnu.org; Sun, 20 Apr 2025 02:41:24 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id D15383C010844; Sat, 19 Apr 2025 23:41:17 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id ON_nf5a6C8PF; Sat, 19 Apr 2025 23:41:17 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id AA3D53C010847; Sat, 19 Apr 2025 23:41:17 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu AA3D53C010847 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1745131277; bh=Tcz1Ne68qCtFCnc7HXhvyWtCe/FHYAFO981qOmel+E4=; h=Message-ID:Date:MIME-Version:To:From; b=V3eR47hdUHDDimoMx6AJF9le1mWrgAm86gfADLM+qUxbrQOAhcGLa1lKSRNZNfuXz w547Rgu7K87zuIeaR1salN6EXq4UU/h/vvm1V1wslT8qjHUQP9ugmkA/JlISDlWVtS xdtzY1NtB5WRQVYf/OCjj2YgppVKXiT/8OM57I13lWre2l1dV31+ymOM9DUnHhoB/I IOtTJzkG5KomBeZQ9CvH3WBBjofAn7zlcr1gdE/FQMHGKinxAmstT4nMns9llXs5w+ 9tgjwR9dZdf1pDG2PyNOuZLw3Kcs3v+YVtfsRVVM+q9W50dMNe7ZMku81zjTV2RaD+ T480sPhRSD3bQ== X-Virus-Scanned: amavis 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]) (amavis, port 10026) with ESMTP id Ye4Zm_gdyTeV; Sat, 19 Apr 2025 23:41:17 -0700 (PDT) Received: from [192.168.254.12] (47-147-225-25.fdr01.snmn.ca.ip.frontiernet.net [47.147.225.25]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 8DFEC3C010844; Sat, 19 Apr 2025 23:41:17 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------aeLCmRmo0s0VUQmhq5Cw68hi" Message-ID: <cbe6ce22-db08-4b49-8294-b43439e118b4@HIDDEN> Date: Sat, 19 Apr 2025 23:41:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77828: LTO build fails with grep 3.12 To: Christian Hesse <list@HIDDEN> References: <20250415112151.092748d5@HIDDEN> Content-Language: en-US From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department In-Reply-To: <20250415112151.092748d5@HIDDEN> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77828-done Cc: 77828-done <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------aeLCmRmo0s0VUQmhq5Cw68hi Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2025-04-15 10:01, Christian Hesse wrote: > The build succeed as soon as I disable link time optimization. Would be nice > to have a fix for this to reenable lto. Thanks for reporting that. It's a false alarm from GCC. I worked around the problem by installing the attached patch into Gnulib to pacify GCC, and I'm closing the grep bug report. --------------aeLCmRmo0s0VUQmhq5Cw68hi Content-Type: text/x-patch; charset=UTF-8; name="0001-dfa-pacify-gcc-Wstringop-overflow.patch" Content-Disposition: attachment; filename="0001-dfa-pacify-gcc-Wstringop-overflow.patch" Content-Transfer-Encoding: base64 RnJvbSA2MGQ5YjQxMzRmODY2MWRjMjUxMzRkYmU1NGJlMTVmNjEzODcxOGM4IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBUdWUsIDE1IEFwciAyMDI1IDEzOjUwOjMyIC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gZGZhOiBwYWNpZnkgZ2NjIC1Xc3RyaW5nb3Atb3ZlcmZsb3cKClByb2JsZW0gcmVwb3J0 ZWQgYnkgQ2hyaXN0aWFuIEhlc3NlIGluOgpodHRwczovL2J1Z3MuZ251Lm9yZy83NzgyOAoq IGxpYi9kZmEuYyAoZGZhYW5hbHl6ZSk6IFBhY2lmeSBnY2MgLWZsdG8gLVdzdHJpbmdvcC1v dmVyZmxvdy4KLS0tCiBDaGFuZ2VMb2cgfCA3ICsrKysrKysKIGxpYi9kZmEuYyB8IDEgKwog MiBmaWxlcyBjaGFuZ2VkLCA4IGluc2VydGlvbnMoKykKCmRpZmYgLS1naXQgYS9DaGFuZ2VM b2cgYi9DaGFuZ2VMb2cKaW5kZXggN2QyNTViZTNhMi4uMjgzMjJhMjY1NSAxMDA2NDQKLS0t IGEvQ2hhbmdlTG9nCisrKyBiL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEwIEBACisyMDI1LTA0 LTE1ICBQYXVsIEVnZ2VydCAgPGVnZ2VydEBjcy51Y2xhLmVkdT4KKworCWRmYTogcGFjaWZ5 IGdjYyAtV3N0cmluZ29wLW92ZXJmbG93CisJUHJvYmxlbSByZXBvcnRlZCBieSBDaHJpc3Rp YW4gSGVzc2UgaW46CisJaHR0cHM6Ly9idWdzLmdudS5vcmcvNzc4MjgKKwkqIGxpYi9kZmEu YyAoZGZhYW5hbHl6ZSk6IFBhY2lmeSBnY2MgLWZsdG8gLVdzdHJpbmdvcC1vdmVyZmxvdy4K KwogMjAyNS0wNC0xNSAgQnJ1bm8gSGFpYmxlICA8YnJ1bm9AY2xpc3Aub3JnPgogCiAJZ251 bGliLXRvb2wucHk6IEZpeCBleGNlcHRpb24gZHVyaW5nIC0tdXBkYXRlIHdpdGggY2hhbmdl ZCBtYWNyby1wcmVmaXguCmRpZmYgLS1naXQgYS9saWIvZGZhLmMgYi9saWIvZGZhLmMKaW5k ZXggNjg0MDQzZGQ4Zi4uY2JhY2RjMDRjZiAxMDA2NDQKLS0tIGEvbGliL2RmYS5jCisrKyBi L2xpYi9kZmEuYwpAQCAtMjY5OSw2ICsyNjk5LDcgQEAgZGZhYW5hbHl6ZSAoc3RydWN0IGRm YSAqZCwgYm9vbCBzZWFyY2hmbGFnKQogCiAgIGFkZHRvayAoZCwgQ0FUKTsKICAgaWR4X3Qg dGluZGV4ID0gZC0+dGluZGV4OworICBhc3N1bWUgKDAgPCB0aW5kZXgpOwogCiAjaWZkZWYg REVCVUcKICAgZnByaW50ZiAoc3RkZXJyLCAiZGZhYW5hbHl6ZTpcbiIpOwotLSAKMi40OC4x Cgo= --------------aeLCmRmo0s0VUQmhq5Cw68hi-- ------------=_1745131322-13202-0--
MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Christian Hesse <list@HIDDEN> Subject: bug#77828: closed (Re: bug#77828: LTO build fails with grep 3.12) Message-ID: <handler.77828.D77828.174513128713133.notifdone <at> debbugs.gnu.org> References: <cbe6ce22-db08-4b49-8294-b43439e118b4@HIDDEN> <20250415112151.092748d5@HIDDEN> X-Gnu-PR-Message: they-closed 77828 X-Gnu-PR-Package: grep Reply-To: 77828 <at> debbugs.gnu.org Date: Sun, 20 Apr 2025 06:42:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1745131322-13202-1" This is a multi-part message in MIME format... ------------=_1745131322-13202-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #77828: LTO build fails with grep 3.12 which was filed against the grep package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 77828 <at> debbugs.gnu.org. --=20 77828: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77828 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems ------------=_1745131322-13202-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 77828-done) by debbugs.gnu.org; 20 Apr 2025 06:41:27 +0000 Received: from localhost ([127.0.0.1]:44049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u6OMp-0003Pk-41 for submit <at> debbugs.gnu.org; Sun, 20 Apr 2025 02:41:27 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:40596) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1u6OMl-0003OF-Hq for 77828-done <at> debbugs.gnu.org; Sun, 20 Apr 2025 02:41:24 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id D15383C010844; Sat, 19 Apr 2025 23:41:17 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id ON_nf5a6C8PF; Sat, 19 Apr 2025 23:41:17 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id AA3D53C010847; Sat, 19 Apr 2025 23:41:17 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu AA3D53C010847 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1745131277; bh=Tcz1Ne68qCtFCnc7HXhvyWtCe/FHYAFO981qOmel+E4=; h=Message-ID:Date:MIME-Version:To:From; b=V3eR47hdUHDDimoMx6AJF9le1mWrgAm86gfADLM+qUxbrQOAhcGLa1lKSRNZNfuXz w547Rgu7K87zuIeaR1salN6EXq4UU/h/vvm1V1wslT8qjHUQP9ugmkA/JlISDlWVtS xdtzY1NtB5WRQVYf/OCjj2YgppVKXiT/8OM57I13lWre2l1dV31+ymOM9DUnHhoB/I IOtTJzkG5KomBeZQ9CvH3WBBjofAn7zlcr1gdE/FQMHGKinxAmstT4nMns9llXs5w+ 9tgjwR9dZdf1pDG2PyNOuZLw3Kcs3v+YVtfsRVVM+q9W50dMNe7ZMku81zjTV2RaD+ T480sPhRSD3bQ== X-Virus-Scanned: amavis 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]) (amavis, port 10026) with ESMTP id Ye4Zm_gdyTeV; Sat, 19 Apr 2025 23:41:17 -0700 (PDT) Received: from [192.168.254.12] (47-147-225-25.fdr01.snmn.ca.ip.frontiernet.net [47.147.225.25]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 8DFEC3C010844; Sat, 19 Apr 2025 23:41:17 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------aeLCmRmo0s0VUQmhq5Cw68hi" Message-ID: <cbe6ce22-db08-4b49-8294-b43439e118b4@HIDDEN> Date: Sat, 19 Apr 2025 23:41:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77828: LTO build fails with grep 3.12 To: Christian Hesse <list@HIDDEN> References: <20250415112151.092748d5@HIDDEN> Content-Language: en-US From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department In-Reply-To: <20250415112151.092748d5@HIDDEN> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77828-done Cc: 77828-done <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------aeLCmRmo0s0VUQmhq5Cw68hi Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2025-04-15 10:01, Christian Hesse wrote: > The build succeed as soon as I disable link time optimization. Would be nice > to have a fix for this to reenable lto. Thanks for reporting that. It's a false alarm from GCC. I worked around the problem by installing the attached patch into Gnulib to pacify GCC, and I'm closing the grep bug report. --------------aeLCmRmo0s0VUQmhq5Cw68hi Content-Type: text/x-patch; charset=UTF-8; name="0001-dfa-pacify-gcc-Wstringop-overflow.patch" Content-Disposition: attachment; filename="0001-dfa-pacify-gcc-Wstringop-overflow.patch" Content-Transfer-Encoding: base64 RnJvbSA2MGQ5YjQxMzRmODY2MWRjMjUxMzRkYmU1NGJlMTVmNjEzODcxOGM4IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBUdWUsIDE1IEFwciAyMDI1IDEzOjUwOjMyIC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gZGZhOiBwYWNpZnkgZ2NjIC1Xc3RyaW5nb3Atb3ZlcmZsb3cKClByb2JsZW0gcmVwb3J0 ZWQgYnkgQ2hyaXN0aWFuIEhlc3NlIGluOgpodHRwczovL2J1Z3MuZ251Lm9yZy83NzgyOAoq IGxpYi9kZmEuYyAoZGZhYW5hbHl6ZSk6IFBhY2lmeSBnY2MgLWZsdG8gLVdzdHJpbmdvcC1v dmVyZmxvdy4KLS0tCiBDaGFuZ2VMb2cgfCA3ICsrKysrKysKIGxpYi9kZmEuYyB8IDEgKwog MiBmaWxlcyBjaGFuZ2VkLCA4IGluc2VydGlvbnMoKykKCmRpZmYgLS1naXQgYS9DaGFuZ2VM b2cgYi9DaGFuZ2VMb2cKaW5kZXggN2QyNTViZTNhMi4uMjgzMjJhMjY1NSAxMDA2NDQKLS0t IGEvQ2hhbmdlTG9nCisrKyBiL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEwIEBACisyMDI1LTA0 LTE1ICBQYXVsIEVnZ2VydCAgPGVnZ2VydEBjcy51Y2xhLmVkdT4KKworCWRmYTogcGFjaWZ5 IGdjYyAtV3N0cmluZ29wLW92ZXJmbG93CisJUHJvYmxlbSByZXBvcnRlZCBieSBDaHJpc3Rp YW4gSGVzc2UgaW46CisJaHR0cHM6Ly9idWdzLmdudS5vcmcvNzc4MjgKKwkqIGxpYi9kZmEu YyAoZGZhYW5hbHl6ZSk6IFBhY2lmeSBnY2MgLWZsdG8gLVdzdHJpbmdvcC1vdmVyZmxvdy4K KwogMjAyNS0wNC0xNSAgQnJ1bm8gSGFpYmxlICA8YnJ1bm9AY2xpc3Aub3JnPgogCiAJZ251 bGliLXRvb2wucHk6IEZpeCBleGNlcHRpb24gZHVyaW5nIC0tdXBkYXRlIHdpdGggY2hhbmdl ZCBtYWNyby1wcmVmaXguCmRpZmYgLS1naXQgYS9saWIvZGZhLmMgYi9saWIvZGZhLmMKaW5k ZXggNjg0MDQzZGQ4Zi4uY2JhY2RjMDRjZiAxMDA2NDQKLS0tIGEvbGliL2RmYS5jCisrKyBi L2xpYi9kZmEuYwpAQCAtMjY5OSw2ICsyNjk5LDcgQEAgZGZhYW5hbHl6ZSAoc3RydWN0IGRm YSAqZCwgYm9vbCBzZWFyY2hmbGFnKQogCiAgIGFkZHRvayAoZCwgQ0FUKTsKICAgaWR4X3Qg dGluZGV4ID0gZC0+dGluZGV4OworICBhc3N1bWUgKDAgPCB0aW5kZXgpOwogCiAjaWZkZWYg REVCVUcKICAgZnByaW50ZiAoc3RkZXJyLCAiZGZhYW5hbHl6ZTpcbiIpOwotLSAKMi40OC4x Cgo= --------------aeLCmRmo0s0VUQmhq5Cw68hi-- ------------=_1745131322-13202-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Apr 2025 17:02:41 +0000 Received: from localhost ([127.0.0.1]:54664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u4jgH-0001eK-0N for submit <at> debbugs.gnu.org; Tue, 15 Apr 2025 13:02:41 -0400 Received: from lists.gnu.org ([2001:470:142::17]:43698) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <list@HIDDEN>) id 1u4jgF-0001cD-1m for submit <at> debbugs.gnu.org; Tue, 15 Apr 2025 13:02:39 -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 <list@HIDDEN>) id 1u4jfj-0002q9-Fi for bug-grep@HIDDEN; Tue, 15 Apr 2025 13:02:09 -0400 Received: from mx.mylinuxtime.de ([46.4.70.188]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <list@HIDDEN>) id 1u4jfg-0003tQ-O9 for bug-grep@HIDDEN; Tue, 15 Apr 2025 13:02:06 -0400 Received: from leda.eworm.net (unknown [185.209.196.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx.mylinuxtime.de (Postfix) with ESMTPSA id 3E3792989BC for <bug-grep@HIDDEN>; Tue, 15 Apr 2025 19:02:00 +0200 (CEST) Authentication-Results: mx.mylinuxtime.de; auth=pass smtp.auth=mail@HIDDEN smtp.mailfrom=list@HIDDEN Date: Tue, 15 Apr 2025 19:01:59 +0200 From: Christian Hesse <list@HIDDEN> To: bug-grep@HIDDEN Subject: LTO build fails with grep 3.12 Message-ID: <20250415112151.092748d5@HIDDEN> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; x86_64-pc-linux-gnu) X-Face: %O:rCSk<c"<MpJ:yn<>HSKf7^4uF|FD$9$I0}g$nbnS1{DYPvs#:,~e`).mzj\$P9]V!WCveE/XdbL,L!{)6v%x4<jA|JaB-SKm74~Wa1m; |\QFlOg>\Bt!b#{; dS&h"7l=ow'^({02!2%XOugod|u*mYBVm-OS:VpZ"ZrRA4[Q&zye,^j; ftj!Hxx\1@; LM)Pz)|B%1#sfF; s; ,N?*K*^) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUZFRFENy6KVTKEd23CiGHeqofJvrX4+vdHgItOAAAACXBIWXMAAA3XAAAN1wFCKJt4AAACUklEQVQ4y2VUTZeqMAxNxXG2Io5uGd64L35unbF9ax0b3OLxgFs4PcLff0lBHeb1QIq5uelNCEJNq/TIFGyeC+iugH0WJr+B1MvzWASpuP4CYHOB0VfoDdddwA7OIFQIEHjXDiCtV5e9QX0WMu8AG0mB7g7WP4GqeqVdsi4vv/5kFBvaF/zD7zDquL4DxbrDGDyAsgNYOsJOYzth4Q9ZF6iLV+6TLAT1pi2kuvgAtZxSjoG8cL+8vIn251uoe1OOEWwbIPU04gHsmMsoxyyhYsD2FdIigF1yxaVbBuSOCAlCoX324I7wNMhrO1bhOLsRoA6DC6wQ5eQiSG5BiWQfM4gN+uItQTRDMaJUhVbGyKWCuaaUGSVFVKpl4PdoDn3yY8J+YxQxyhlHfoYOyPgyDcO+cSQK6Bvabjcy2nwRo3pxgA8jslnCuYw23ESOzHAPYwo4ITNQMaOO+RGPEGhSlPEZBh2jmBEjQ5cKbxmr0ruAe/WCriUxW76I8T3h7vqY5VR5wXLdERodg2rHEzdxxk5KpXTL4FwnarvndKM5/MWDY5CuBBdQ+3/0ivsUJHicuHd+Xh3jOdBL+FjSGq4SPCwco+orpWlERRTNo7BHCvbNXFVSIQMp+P5QsIL9upmr8kMTUOfxEHoanwzKRcNAe76WbjBwex/RkdHu48xT5YqP70DaMOhBcTHmAVDxLaBdle93oJy1QKFUh2GXT4am+YH/GGel1CeI98GdMXsytjCKIq/9cMrlgxFCROv+3/BU1fijNpcVD6DxE8VfLBaxUGr1D5usgDYdjwiPAAAAAElFTkSuQmCC MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/u4sg7TB9_TBO1fJ8s2/bN3A"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spamd-Bar: / X-Stat-Signature: x6bumfah4d4ihqieb1kikr83pmsjjfub X-Spam-Status: No, score=0.00 X-Spamd-Result: default: False [0.00 / 15.00] X-Rspamd-Server: mx X-Rspamd-Queue-Id: 3E3792989BC X-Rspamd-Action: no action Received-SPF: pass client-ip=46.4.70.188; envelope-from=list@HIDDEN; helo=mx.mylinuxtime.de X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL_CSS=3.335, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 4.5 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello everybody, I am building grep 3.12 in a clean build environment for Arch Linux. That fails when building with link time optimization is enabled: CCLD grep In function 'dfaoptimize', inlined from 'dfaanalyze' at ../lib/dfa.c:2873:3: ../lib/dfa.c:2606:12: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 2606 | flags[0] [...] Content analysis details: (4.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.209.196.175 listed in zen.spamhaus.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello everybody, I am building grep 3.12 in a clean build environment for Arch Linux. That fails when building with link time optimization is enabled: CCLD grep In function 'dfaoptimize', inlined from 'dfaanalyze' at ../lib/dfa.c:2873:3: ../lib/dfa.c:2606:12: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 2606 | flags[0] [...] Content analysis details: (3.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.209.196.175 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --Sig_/u4sg7TB9_TBO1fJ8s2/bN3A Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello everybody, I am building grep 3.12 in a clean build environment for Arch Linux. That fails when building with link time optimization is enabled: CCLD grep In function 'dfaoptimize', inlined from 'dfaanalyze' at ../lib/dfa.c:2873:3: ../lib/dfa.c:2606:12: error: writing 1 byte into a region of size 0 [-Werror=3Dstringop-overflow=3D] 2606 | flags[0] |=3D OPT_QUEUED; | ^ In function 'icalloc', inlined from 'xicalloc' at ../lib/xmalloc.c:304:10, inlined from 'xizalloc' at ../lib/xmalloc.c:289:10, inlined from 'dfaoptimize' at ../lib/dfa.c:2589:17, inlined from 'dfaanalyze' at ../lib/dfa.c:2873:3: ../lib/ialloc.h:91:10: note: destination object of size [0, 9223372036854775807] allocated by 'calloc' 91 | return calloc (n, s); | ^ lto1: all warnings being treated as errors The build succeed as soon as I disable link time optimization. Would be nice to have a fix for this to reenable lto. Let me know if I can provide more information on this. Thanks! --=20 main(a){char*c=3D/* Schoene Gruesse */"B?IJj;MEH" "CX:;",b;for(a/* Best regards my address: */=3D0;b=3Dc[a+= +];) putchar(b-1/(/* Chris cc -ox -xc - && ./x */b/42*2-3)*42);} --Sig_/u4sg7TB9_TBO1fJ8s2/bN3A Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEXHmveYAHrRp+prOviUUh18yA9HYFAmf+kQcACgkQiUUh18yA 9HYvhwf/Y+G7EYiOyQPuT0g6U+8lCkI2Ohvh5xYWUHfp9u56sUSJcAaOR9aYC4xo axTyZPymwC9JHX5jq4dY8AZKsBbrGnxO+axw6ubVgRHNyHQcQ97QxVYNfiaVgAQL XMtkKOyE+Aizcae9+6cRcYZ2pBrQLColvBrlJOqIA7RHYMM1tmh8x0/30EVMARCp 7Ig+YHXr5wYtLmdMdQ6E3QXk5S5X3kzTBGff2guOx3cZUeEpGcVxWnQfEv0Vbl1/ Hc+UAuiMxa6nVxaDijC75DLn/SMlelXOodaTrTPd9xMPtwXu/0ZVclPPuCAwOqxG 5J8xlBNMNlZ72A9D0dXZMjffvnV+AQ== =/5ln -----END PGP SIGNATURE----- --Sig_/u4sg7TB9_TBO1fJ8s2/bN3A-- ------------=_1745131322-13202-1--
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.