From unknown Tue Jun 17 22:23:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76291: BUG: grep sometimes spits out random garbage in the moddle of results Resent-From: php fan Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Fri, 14 Feb 2025 17:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76291 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: 76291@debbugs.gnu.org X-Debbugs-Original-To: bug-grep@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17395524056988 (code B ref -1); Fri, 14 Feb 2025 17:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Feb 2025 17:00:05 +0000 Received: from localhost ([127.0.0.1]:51441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiz2q-0001oN-8g for submit@debbugs.gnu.org; Fri, 14 Feb 2025 12:00:04 -0500 Received: from lists.gnu.org ([2001:470:142::17]:36474) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tiyYu-0000MW-I7 for submit@debbugs.gnu.org; Fri, 14 Feb 2025 11:29:09 -0500 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 1tiyYe-0005OF-5c for bug-grep@gnu.org; Fri, 14 Feb 2025 11:28:52 -0500 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tiyYc-00022l-9v for bug-grep@gnu.org; Fri, 14 Feb 2025 11:28:51 -0500 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-545284eac3bso900896e87.0 for ; Fri, 14 Feb 2025 08:28:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739550527; x=1740155327; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=AOauQOk+YLQBupHbVSf2ALAHOw8Md5bclxt8ePDMpyM=; b=Ix3LrnLad95yIwTMIo0CdkwxcsRfHLRof+/zZWE2HNmXZLSrus3Dk5AZh779XEOMH/ Hn4GbaxpaDxvoMSmu66Kn1Ugldnf503ZU66qePWQ0gGfjKdosZXxnYrfrSl0nTtp4o0a ogCKSAkdMdRuUTmbyLT3ftBdaNwvRYY9tVjJtpTt6A8AwweGpST/qkd54dCB/gEjGVpD g/oAAUf65q3qH0qRsnZ8BdyuPg7+GOBcSTokVaffkWcMI3TGaHW3RnBSO6jLuqT/Dtdt Dw1vYdcapdN+T89u0U77/ZsKBxZkNfpY8RTGvROXXiK5FBY59k2+p+FSE8GPA1uhZNiT HiQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739550527; x=1740155327; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=AOauQOk+YLQBupHbVSf2ALAHOw8Md5bclxt8ePDMpyM=; b=Mcjpx0yepvUzit3Ud1VPkABES8vXX9unygOec8Rup0/+AehVscGLnfmkvHcMCOQCYh JvgaMxeppg4hINukLoszLyAaecw07nGYf4vIQyzZ90lPvYsDFvy69zQWUYtnkJbaNTT5 v1gYDgR79HnmbpKLxs+BBuP9yIVX+3gXQCTu6VgfXaGgOLHIVOhYyq/L99nvgTbdXLXI HLmQWQjIYFxVRY4GYOk/6rEn8Y2wdIGoc+CNyjmhXvizyfu49NIyYm4BH3BbAgV3MJ+L VhN13utrWB1mnaNUjBL9yPtMelBIy6uqwO5RiEJO8ChFOHdvis4i+/H4xGG26UpPRcH5 Gh/Q== X-Gm-Message-State: AOJu0YwQ5sQV+4vL1fTAsxVRtEMoEhpY8V/RwLQYvPenlrn4w6Z16so4 fRp40TObKH59+HA/Pa503XzOfN4NKxn++reH7QuLKlnsFdmAiXsHy43+TKqcpuegppcHKU09Sjb yWPnntlEHAoviz1jiAMowhbVjGPUlRQ== X-Gm-Gg: ASbGncs7LcLFufTfUptuc9JPjSnoWm1y13dw6FNKYjkV5omnsLm5OakfOiFSuWrtfJd gqF0wLnAqlzobLEuRyiUy2UZp6UNWpG860CNUQe5fm0LQNITJR7ukn/MGhOzKMhxBCR8Xhq5GWQ == X-Google-Smtp-Source: AGHT+IE0GWorKgyduDDF6m4ENMiMc1pMffco/Q6JFMSISVkk2xA6Td93AcqV4YP+ndkkV7kg/4Ekp08pkwRDuwwKmc0= X-Received: by 2002:a05:6512:3d01:b0:545:285f:cd7f with SMTP id 2adb3069b0e04-545285fce62mr1011872e87.14.1739550526865; Fri, 14 Feb 2025 08:28:46 -0800 (PST) MIME-Version: 1.0 From: php fan Date: Fri, 14 Feb 2025 17:28:35 +0100 X-Gm-Features: AWEUYZlLJHq1gAW41rwAqoe9IWJ5ZdKusF9aZGv7miD3fxOjBoVv-GiRxjT3A-c Message-ID: Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=php4fan@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Mailman-Approved-At: Fri, 14 Feb 2025 11:59:58 -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.0 (/) I have no idea what triggers this, so I haven't been able to produce a minimal reproducing example; and I can't share the actual folder with which this happens to me all the time. Sometimes I use "grep -R" on a folder with several repositories, and after a few legitimate results, I get a blob of dozens of lines of text, coming from several files, with no indication of the file they belong to, and which often don't match the pattern. For example: ``` $ grep -R foo path/to/file1.txt: lorem ipsum foo bar path/to/file2.txt: lalalalala foo lalalala and here's a blob of totally unrelated text that doen't contain the string who knows where this comes from lalalallaal lorem ipsum dolor sit amet ``` I am NOT talking about the case where you have a file that is one very long line that matches, so you get basically the whole file in the output and it gets wrapped. In that case, it will still start with the path of the file followed by a colon. Not in this case. From unknown Tue Jun 17 22:23:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76291: BUG: grep sometimes spits out random garbage in the moddle of results Resent-From: Jim Meyering Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Fri, 14 Feb 2025 20:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76291 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: php fan Cc: 76291@debbugs.gnu.org Received: via spool by 76291-submit@debbugs.gnu.org id=B76291.173956640030481 (code B ref 76291); Fri, 14 Feb 2025 20:54:02 +0000 Received: (at 76291) by debbugs.gnu.org; 14 Feb 2025 20:53:20 +0000 Received: from localhost ([127.0.0.1]:52028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tj2ga-0007vZ-2s for submit@debbugs.gnu.org; Fri, 14 Feb 2025 15:53:20 -0500 Received: from mail-pl1-f182.google.com ([209.85.214.182]:45194) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tj2gX-0007vI-9p for 76291@debbugs.gnu.org; Fri, 14 Feb 2025 15:53:18 -0500 Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-220c8f38febso46995475ad.2 for <76291@debbugs.gnu.org>; Fri, 14 Feb 2025 12:53:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739566391; x=1740171191; 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=hee2ELWcmgZwzJMdwfjwSeyKmKivE304D3B8MGNOgDs=; b=EvgSniVi1V6GGr0Z0shHn75j5r0rxQPBiVPzl0+T++1eP9+ucTnhKtarRbv2p5lu5K H8iRTl8gX/7MGwFdeiZAIEIcXjweHRqpwsgoB9Ota7BQjdWePHmS6zuQQQE6VMA/Rvx0 szT97W0la9FO9mPs/KZQNH21V8tuukCjTNY8eGEkh2v8etiK2y9fz/0RxGW2jZkRvQjV 7OgA91Z3TGnV/sbj8rjzxRtk6aPtBkBOov2o5sHpFuJ8giZbOkv1CqFYUxT5Vx3PiMon lyx4lk9chJVFZaEMkOANfh22T/2nxihryMKKh9Ibu5X6UkyZvRwxurFXCTMyaL+n93Qh eOdQ== X-Gm-Message-State: AOJu0Yzwgzt0dae8PqvrGL6HdLW4nLPv+mk7vtoToGjDhMVKhIJLpQDW YpWrpKRXRdSAhih6GQtw40QXlYP+dM3orsmd9wuGWDN08157NLI9LxVskGTnEknZalxF1cyp96d Zyv7yFJYbRMdX8oTl9DNAj9ZbVzU= X-Gm-Gg: ASbGnctCOgXXnWvDYx1pev+B80iNQbl/EELK6noognD7l+/aRGylbQrR/lnP+PXVzlj +/pN5kzVVgJIIN21jOvRswzOKTnJvIAE2QV92G02Q563B5kI9zZGab9Qvb/3nheo9qgL3bnKxxn AiVf1rbX8fkC/JBjLPYjm2Tk0E X-Google-Smtp-Source: AGHT+IFmp6MF2Wul6EEX0KJamBnVAtC6aRwX353G1H5jM8pLD2WQzB8rIX3enXfE4VKEhE7kLdH1jvJZOmcJJ4D6ueQ= X-Received: by 2002:a17:902:fc8f:b0:220:f7bb:842 with SMTP id d9443c01a7336-221040b1922mr10025515ad.42.1739566390857; Fri, 14 Feb 2025 12:53:10 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jim Meyering Date: Fri, 14 Feb 2025 12:52:57 -0800 X-Gm-Features: AWEUYZkhz1uc5ShRoWXXIJeLfUX08wrsKN55Q09IHHOyjTGfdXXzwiZqGend5UQ Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.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: -1.0 (-) On Fri, Feb 14, 2025 at 9:02=E2=80=AFAM php fan wrote: > I have no idea what triggers this, so I haven't been able to produce a > minimal reproducing example; and I can't share the actual folder with > which this happens to me all the time. > > Sometimes I use "grep -R" on a folder with several repositories, and > after a few legitimate results, I get a blob of dozens of lines of > text, coming from several files, with no indication of the file they > belong to, and which often don't match the pattern. > > For example: > > ``` > $ grep -R foo > path/to/file1.txt: lorem ipsum foo bar > path/to/file2.txt: lalalalala foo lalalala > and here's a blob of totally unrelated text > that doen't contain the string > who knows where this comes from > lalalallaal lorem ipsum dolor sit amet > ``` > > I am NOT talking about the case where you have a file that is one very > long line that matches, so you get basically the whole file in the > output and it gets wrapped. In that case, it will still start with the > path of the file followed by a colon. Not in this case. Thanks for the report. Can you tell me how to reproduce that? I have never seen such a failure. We'd need system type, version of grep, and names/contents of the files in the searched directory. From unknown Tue Jun 17 22:23:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76291: BUG: grep sometimes spits out random garbage in the moddle of results Resent-From: Jim Meyering Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Mon, 17 Feb 2025 16:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76291 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: php fan Cc: 76291@debbugs.gnu.org Received: via spool by 76291-submit@debbugs.gnu.org id=B76291.17398082753199 (code B ref 76291); Mon, 17 Feb 2025 16:05:02 +0000 Received: (at 76291) by debbugs.gnu.org; 17 Feb 2025 16:04:35 +0000 Received: from localhost ([127.0.0.1]:47967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tk3bm-0000pX-JT for submit@debbugs.gnu.org; Mon, 17 Feb 2025 11:04:34 -0500 Received: from mail-pj1-f47.google.com ([209.85.216.47]:55517) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tk3bk-0000ov-Aa for 76291@debbugs.gnu.org; Mon, 17 Feb 2025 11:04:33 -0500 Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-2fc0bd358ccso9072873a91.2 for <76291@debbugs.gnu.org>; Mon, 17 Feb 2025 08:04:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739808266; x=1740413066; 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=lERkUXrmG8rHAQPFZmqrIER8hPsJlkoved2HswqwsEY=; b=DPx7L0XwIrw7zNAC38wJUWltyqwtrAA8rVyCPBZMU6dpKDaUqaMTgiJyEhyt2SEAl2 C2q5p02Ec+/IheZ/PpNj051yTm1LbwXv6as3O3t8DC8rQX4w3w5BpfAgxLHccynFSTk+ 1vY3oTlG+DlcbL21EbwXkRnAnzbWIV4h7B+oc9u1ucfriqFwz/AjTl5u+SW8dfMeThoc AcphGYQ8U3aXNQTn/m8YJna9w3K5yzWvqQh/5WtAz4CQMPjoDSDNGmU3BXfU0B597vY3 eo+3pCIo7Ad4CJF5K8WS2RLxAIh/X/sfUFLeEmNhLSO7hip8+WkpT+Rae5DJd+2/7zuT bi6Q== X-Gm-Message-State: AOJu0Yy54FGDd4Um4QrbDHAoWmOU1oPLB1J5A436Q8Ct0Q/XycoWNmCz ebtDjqlJmKduPA+nT+nNl/pwR7rXFptdd9DuOGrYlsAWx2lR4qg+VLEsJ3vTosPKFQMFb9hIJe4 keQ2LEpexND8h8pbHDZzlW7IVXWQ= X-Gm-Gg: ASbGncv7tYEJAzpWCRgn6OJRARoqaCnQ492d2szFjbi44ZM8V3YqRZLo6xGoFtIkvic NigDkeYf1Psy7LkURc9qmtw34lTCK+ovdn6DKjIqj6FFNp5jiLADMPXGLP2Oj4iVXAzm/Xv624q C3scS7SvjXtzANkT+HxXdMP/18 X-Google-Smtp-Source: AGHT+IElFx9kDnqsP2EkrObof9NvM2I/qRYffvpZmqLhaNoX5YPQwuJvfJVNCuWwTpLowqu8Yvi2SuACUI+mWxtA5DI= X-Received: by 2002:a17:90b:3b46:b0:2ee:b2e6:4276 with SMTP id 98e67ed59e1d1-2fc4104214emr14634241a91.27.1739808265966; Mon, 17 Feb 2025 08:04:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jim Meyering Date: Mon, 17 Feb 2025 08:04:13 -0800 X-Gm-Features: AWEUYZk-U4th2t3vd_R2JSEsyRVmxitn0oyqKOhmK41DHGN0YBeQ4tSblzIIpuM Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.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: -1.0 (-) On Fri, Feb 14, 2025 at 12:52=E2=80=AFPM Jim Meyering wr= ote: > On Fri, Feb 14, 2025 at 9:02=E2=80=AFAM php fan wrote= : > > I have no idea what triggers this, so I haven't been able to produce a > > minimal reproducing example; and I can't share the actual folder with > > which this happens to me all the time. > > > > Sometimes I use "grep -R" on a folder with several repositories, and > > after a few legitimate results, I get a blob of dozens of lines of > > text, coming from several files, with no indication of the file they > > belong to, and which often don't match the pattern. > > > > For example: > > > > ``` > > $ grep -R foo > > path/to/file1.txt: lorem ipsum foo bar > > path/to/file2.txt: lalalalala foo lalalala > > and here's a blob of totally unrelated text > > that doen't contain the string > > who knows where this comes from > > lalalallaal lorem ipsum dolor sit amet > > ``` > > > > I am NOT talking about the case where you have a file that is one very > > long line that matches, so you get basically the whole file in the > > output and it gets wrapped. In that case, it will still start with the > > path of the file followed by a colon. Not in this case. > > Thanks for the report. Can you tell me how to reproduce that? I have > never seen such a failure. > We'd need system type, version of grep, and names/contents of the > files in the searched directory. Can you share the names of the files in that directory? I.e., run this: cd YOUR_DIR && find . -print | cat -A Also, please rerun your command but pipe its output through "cat -A", to see if there are unexpected characters in the output: $ grep -R foo | cat -A If that shows nothing surprising, please consider sharing a sample of real output where you've substituted XXX for any sensitive file names or contents. From unknown Tue Jun 17 22:23:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76291: BUG: grep sometimes spits out random garbage in the moddle of results References: Resent-From: "Dale R. Worley" Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Thu, 20 Feb 2025 05:07:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76291 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: php fan Cc: 76291@debbugs.gnu.org Received: via spool by 76291-submit@debbugs.gnu.org id=B76291.174002802122991 (code B ref 76291); Thu, 20 Feb 2025 05:07:04 +0000 Received: (at 76291) by debbugs.gnu.org; 20 Feb 2025 05:07:01 +0000 Received: from localhost ([127.0.0.1]:57642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tkym4-0005ya-OP for submit@debbugs.gnu.org; Thu, 20 Feb 2025 00:07:01 -0500 Received: from resqmta-c2p-570217.sys.comcast.net ([2001:558:fd00:56::7]:25398) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tkvtH-00051U-4o for 76291@debbugs.gnu.org; Wed, 19 Feb 2025 21:02:16 -0500 Received: from resomta-c2p-555921.sys.comcast.net ([96.102.18.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resqmta-c2p-570217.sys.comcast.net with ESMTPS id ktqktCan9tZwYkvt9t5ept; Thu, 20 Feb 2025 02:02:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1740016928; bh=vhCZ6gmwmk2Lky1dpqNotnpKjYlmjgxHI/aFrkC6Hc4=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-ID:Xfinity-Spam-Result; b=o6GCPOivC4NleAAOKJTMbAjyZwriqnFrKh23HuUP6+HcwjK+ki8d3xdKz6Kg+SWi2 nhioreWGV1rEhaurNZ1ZTpN0ZToiYHVdNTHxhPV/ytZOKboAEHza17xnhyUIc10akF 3mu6P0J4dmJuAEliY/NcKS9Wo88i2Gaz0Nl/ghPgT6wPGN0jiRDJsJ1KLj7hOWWq24 a1gFPIHo/cwXFRDIoxmYumsx3ZJxCzKvseIoahtZfYePN1rPOaLtlY9ZrgXjgDKpmb nC1PVdT0+LvhAWkeubW9h8nQ103++BHMnGlneHdsBSnB39NVf/31t28nM39TObjl8I tQReAc5e4fhqg== Received: from hobgoblin.ariadne.com ([IPv6:2601:192:4a00:430::a243]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resomta-c2p-555921.sys.comcast.net with ESMTPSA id kvt7t6hrQpchIkvt8ti4ua; Thu, 20 Feb 2025 02:02:06 +0000 Received: from hobgoblin.ariadne.com (localhost [127.0.0.1]) by hobgoblin.ariadne.com (8.16.1/8.16.1) with ESMTPS id 51K225Q02643811 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 19 Feb 2025 21:02:05 -0500 Received: (from worley@localhost) by hobgoblin.ariadne.com (8.16.1/8.16.1/Submit) id 51K223eW2643808; Wed, 19 Feb 2025 21:02:03 -0500 X-Authentication-Warning: hobgoblin.ariadne.com: worley set sender to Dale.Worley@comcast.net using -f From: "Dale R. Worley" In-Reply-To: (php4fan@gmail.com) Date: Wed, 19 Feb 2025 21:02:03 -0500 Message-ID: <87bjuxxtk4.fsf@hobgoblin.ariadne.com> X-CMAE-Envelope: MS4xfAyW+bW212mpbIaahDY+s5KuiNAI+txftuUFzv6LwpV+knDapVVdwJRpTdLiUyY4BgIc8pM9T1jUUh0PTSwRjf73QrBFV0MWbYC6b5e6DrxdmGA7A1eB +sYI3hhBZJu5pGT+D1tvbv99hfauemmsW3pstLMBGDOCrkCDs7Z0ypbZW3GLcZA5eUu0nIVTT/yBnrXGB+IBAZKvTvH7zaOOyIDc2qjleCmMPKU1cdNhtI4D MYeeaprkRBq/O9ZFIbkBOVMBaaRFIwpc2pRTTNzT7kI= X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Thu, 20 Feb 2025 00:06:54 -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: -1.0 (-) php fan writes: > I have no idea what triggers this, so I haven't been able to produce a > minimal reproducing example; and I can't share the actual folder with > which this happens to me all the time. > > Sometimes I use "grep -R" on a folder with several repositories, and > after a few legitimate results, I get a blob of dozens of lines of > text, coming from several files, with no indication of the file they > belong to, and which often don't match the pattern. One thing to do is to see if the results are reproducible. So whenever one of these incidents happens, immediately run the same command again and see if you get another incident. Another thing that would help is if the problem is reproducible, run it again but "tee" it to capture the results in a file. E.g. $ grep -R foo | tee /tmp/grep-save Then you can examine the file with an editor. Likely the actual output is a set of "lines" from grep's point of view, but the apparent line breaks are driven by long strings of characters that don't contain newlines, or perhaps non-ASCII bytes that cause the display to break lines. Are the files in these repositories likely to contain compressed text? Dale