From unknown Fri Aug 22 01:04:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#54155 <54155@debbugs.gnu.org> To: bug#54155 <54155@debbugs.gnu.org> Subject: Status: -f switch fails with large files on 3.x branch Reply-To: bug#54155 <54155@debbugs.gnu.org> Date: Fri, 22 Aug 2025 08:04:06 +0000 retitle 54155 -f switch fails with large files on 3.x branch reassign 54155 grep submitter 54155 Marco Marsala severity 54155 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 25 04:19:51 2022 Received: (at submit) by debbugs.gnu.org; 25 Feb 2022 09:19:51 +0000 Received: from localhost ([127.0.0.1]:51274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNWlS-0005Pm-AP for submit@debbugs.gnu.org; Fri, 25 Feb 2022 04:19:50 -0500 Received: from lists.gnu.org ([209.51.188.17]:39308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNULr-0007DJ-Rm for submit@debbugs.gnu.org; Fri, 25 Feb 2022 01:45:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNULp-000061-Bb for bug-grep@gnu.org; Fri, 25 Feb 2022 01:45:15 -0500 Received: from mail-am6eur05olkn2064.outbound.protection.outlook.com ([40.92.91.64]:9391 helo=EUR05-AM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNULn-0004J6-GF for bug-grep@gnu.org; Fri, 25 Feb 2022 01:45:12 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dAtSVA7+f8r9h3cO0oo8VrAHnOSwFE3CdjERBYmdiGDmqUpdu7TMM7BjwoYfHFRJVicO0uHmsNw9iSFX5iR08Bwns1KQRc28S78UfDFKiB3Mz9DcNBZAQsKkzNCljqL/vLoJVcCBP5kL6cm8+ZL4JF/YKBXSFElpJRADPMpvnzA4X3p4Lz3+YeGqRhFgJLfamL3lErmYhTihffV3hJhr6E+kmSYCiT4aN0DqzQ3BXWyLg4NZxsnilpbCeW42Ich0RZq8PdqbKCuJQGK7UXCy84Y5AjIRqWSwzNiS34zRJnp5tRD9ECblZVeHPiNbpNyCd/VP3TBImbIrSe9UUFcphw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6Ief1teMQvThTJcCsSR5P/558n90ZlF9xFX7FDDMvwM=; b=LNWOUgS3UMMcCqFH2L35JOOtQuFLxbqDtJWHnz/jGzgqGrXcMHMVslg2jlIGexiSGkzW51Uo1ZuPeqKH2CdiVJeIlt99jaQw7amWLjxq0x+RlbhrWSDPXjua7nAkrmjIN4AycVdA6XtfAdMGBzqqW510PYwp0WDHiTmpudrSJF64YdzOCH0C2L+snJcdFT8ALhnFiLWh0exF1obyMp6rUD8v0Aef5lRK9MLbsqIZAYLqG4W8Of/h6WIpzuqhja3qZI+vyVGv6dL4RvLgRf8gfDVuhHJElD10is3NqSV/XdwSTuci/OBgHaGUyY0kf2vvlPYYKI4KEuwIOxSRMP7hjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DU2P189MB1784.EURP189.PROD.OUTLOOK.COM (2603:10a6:10:2d3::12) by AM8P189MB1155.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:241::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.24; Fri, 25 Feb 2022 06:45:04 +0000 Received: from DU2P189MB1784.EURP189.PROD.OUTLOOK.COM ([fe80::29b7:a5af:390c:b004]) by DU2P189MB1784.EURP189.PROD.OUTLOOK.COM ([fe80::29b7:a5af:390c:b004%9]) with mapi id 15.20.5017.025; Fri, 25 Feb 2022 06:45:04 +0000 Message-ID: Date: Fri, 25 Feb 2022 07:45:00 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 From: Marco Marsala To: bug-grep@gnu.org Subject: -f switch fails with large files on 3.x branch Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [Ek1s3NuOuaijd+jxy5DPuEoC5IsMjZsm] X-ClientProxiedBy: MR2P264CA0040.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500::28) To DU2P189MB1784.EURP189.PROD.OUTLOOK.COM (2603:10a6:10:2d3::12) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 31ef6d87-406a-4fa7-5310-08d9f82a5aac X-MS-TrafficTypeDiagnostic: AM8P189MB1155:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wutLbyhfyVwcsrXSr7gTj+JCRH1GARfjc8MVxNXxQZbqw5SqWH0MI0n5NPjW0KchwOt6yk41Xrx+cxzYKLC1NbTRS92NeFwzoUEy1aCBxBTDAuLfiTT7IdJU7V8eCKIOZ48Gp9szLSbNmj+Pi1tLJu0sRwie5izD+1fu009zLYYayM3GfmD+xatoCcoOAmrRlCswpsuz78auyyvmqVEv99d3nVl1QzcF2IVxHE72HQwyYTj5NaElxQIMxuNYFtt6kqRp6r63dPFucBNA+T1B7eHsoTlQMKN/DXgCSl50o7Cclw9CaeZCQ+kV62A1Hn8onn88puClpgpAW3DPQxf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JRE1xY3B3TnRnWFBDdm9XVXFmTk11cUpEUnV0WkFkQ1NadHBy?= =?utf-8?B?K0NxUS8vL05HQzVUV3lGNmFvVDVPeTcwclRXekhob2UrRkVOKzVZMEVxWWYy?= =?utf-8?B?QkVjdzQ5dFFybkdPL3l1RWFNQml6Snk2VnZnbGhsc2t1R3NOeTBHb2kwOEkx?= =?utf-8?B?UFlwaHNBU3NVQkxyLzZaZWowUGdnNlVza3dpcHAwOU1ib3lZRlJPQWhmYXBP?= =?utf-8?B?U0N4a2x1ZlVVMG15ckhyTUdMa0hwYTJhSkZzL0kyM1lZMzBvUEFURzNrbW85?= =?utf-8?B?UVJpRWpHT09DQ1NHdVd5c2RHcitoM2dWLytRSS9DZFovNW9qWTJla3J2MHJH?= =?utf-8?B?MU4zQnR1V2h6Zkd6YlE2TVVlTW84cHp5MDFRN1Q0dWFPR2JYcWhEL0xoa0pP?= =?utf-8?B?VHhocU1pVDhEU2JxZTdCYlBtbXJRb1FxYlpvRUxFZTFrTCtnZFAzaldMSCtp?= =?utf-8?B?Ti9CRy84SlpTRWQyNVBMOFMyZWlDVHZOR1BSKzBWbUJzaDdVM1g2RU5CcEtL?= =?utf-8?B?QjFUajhoZy92aTcvcjZ4SzA0VUZEbGFQSEV6QlVxWjlaYnlLNlBRUXFGbFV3?= =?utf-8?B?cmpzNVNBYTRyR2VTZEJlRFVIbFpFN3FpaWppWVNZZEhjTkFYRlB3TjVXKzRH?= =?utf-8?B?Z21TTWpVK2hxa0Q1ZFZaNS9pRm5zZllUTW9LSXplMklkNEFLQT09?= X-OriginatorOrg: sct-15-20-4734-24-msonline-outlook-c54b5.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 31ef6d87-406a-4fa7-5310-08d9f82a5aac X-MS-Exchange-CrossTenant-AuthSource: DU2P189MB1784.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2022 06:45:04.8192 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8P189MB1155 Received-SPF: pass client-ip=40.92.91.64; envelope-from=marco.marsala@live.it; helo=EUR05-AM6-obe.outbound.protection.outlook.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 5.0 requ) BAYES_00=-1.9, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.8 (+) 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: This command: grep -F -f b.txt a.txt returns just first occurrence with grep 3.10 (mingw64, 4GB RAM machine) if files are bigger (b.txt ~ 1 MB, a.txt ~ 200 MB), works as expected with smaller files. Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (marco.marsala[at]live.it) 0.0 RCVD_IN_MSPIKE_H5 RBL: Excellent reputation (+5) [209.51.188.17 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.6 FORGED_MUA_MOZILLA Forged mail pretending to be from Mozilla 1.5 SPOOFED_FREEMAIL No description available. X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 25 Feb 2022 04:19:48 -0500 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.7 (/) This command: grep -F -f b.txt a.txt returns just first occurrence with grep 3.10 (mingw64, 4GB RAM machine) if files are bigger (b.txt ~ 1 MB, a.txt ~ 200 MB), works as expected with smaller files. grep 2.10 on Debian (same RAM amount) works as expected even with such bigger files. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 28 12:42:31 2022 Received: (at 54155-done) by debbugs.gnu.org; 28 Feb 2022 17:42:31 +0000 Received: from localhost ([127.0.0.1]:34699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOk2Z-0006Mn-90 for submit@debbugs.gnu.org; Mon, 28 Feb 2022 12:42:31 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOk2X-0006Ma-CQ for 54155-done@debbugs.gnu.org; Mon, 28 Feb 2022 12:42:29 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 09B8916016E; Mon, 28 Feb 2022 09:42:24 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 1h3IRnNawDvk; Mon, 28 Feb 2022 09:42:23 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5BB7B16016F; Mon, 28 Feb 2022 09:42:23 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id A4pCb8gFDLYG; Mon, 28 Feb 2022 09:42:23 -0800 (PST) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 3134316016E; Mon, 28 Feb 2022 09:42:23 -0800 (PST) Message-ID: <53dd8ffc-03f2-2eb6-a133-1a62c764ea02@cs.ucla.edu> Date: Mon, 28 Feb 2022 09:42:22 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: bug#54155: -f switch fails with large files on 3.x branch Content-Language: en-US To: Marco Marsala References: 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: -2.3 (--) X-Debbugs-Envelope-To: 54155-done Cc: 54155-done@debbugs.gnu.org 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: -3.3 (---) On 2/24/22 22:45, Marco Marsala wrote: > > grep -F -f b.txt a.txt > > returns just first occurrence with grep 3.10 (mingw64, 4GB RAM machine) > if files are bigger (b.txt ~ 1 MB, a.txt ~ 200 MB), works as expected > with smaller files. Could you please send this bug report to whoever maintains the mingw64 port that you're using? (I don't know who that is; they likely don't subscribe to this bug report address.) Thanks. From unknown Fri Aug 22 01:04:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 29 Mar 2022 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator