GNU bug report logs - #71079
Bug Report: Unexpected Termination of grep Process

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: grep; Reported by: Joseph Joshua <okikijoshua123@HIDDEN>; merged with #71013; dated Mon, 20 May 2024 14:07:01 UTC; Maintainer for grep is bug-grep@HIDDEN.

Message received at 71079 <at> debbugs.gnu.org:


Received: (at 71079) by debbugs.gnu.org; 20 May 2024 15:04:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 20 11:04:18 2024
Received: from localhost ([127.0.0.1]:43078 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s94Yj-0000Be-NP
	for submit <at> debbugs.gnu.org; Mon, 20 May 2024 11:04:17 -0400
Received: from mail.cs.ucla.edu ([131.179.128.66]:38786)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1s94Yg-0000BW-FR
 for 71079 <at> debbugs.gnu.org; Mon, 20 May 2024 11:04:16 -0400
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id 6FCF73C00E8B0;
 Mon, 20 May 2024 08:04:04 -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 g5NtJN6zyRlz; Mon, 20 May 2024 08:04:04 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id 2B99F3C00E401;
 Mon, 20 May 2024 08:04:04 -0700 (PDT)
DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 2B99F3C00E401
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
 s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1716217444;
 bh=PBg+86AuXLJwyOPTQ2ex7fPln4M9+goVU7IInPgob0s=;
 h=Message-ID:Date:MIME-Version:To:From;
 b=C1bJNE060md+ilb5qUQBuh7ODQROg5IfI567Nszny4FWlrTiaw3Z3F2kVcjq9IciG
 jAVycA8gR2mQZrTiFBTBKoREp/NKUkPoGDJnTFJA/0SaeuY2bbd387ZH1KV8adAsg5
 WGXTuOB89/K8bUBuDH7dsKz5XBOw3npJWAKSibwxYmyQ58k9UXSunJZastL/B/iMw1
 RtZBh7tA4DPWBpVh3RX+m5O3/dg5apRuN/Bzkf/tq9Zk29Bz8vYST1/QtSsisQ57QM
 Eu5fXLi86qgFXE9V/d6c6bv9BxwpYcYxI9b+nVwbuodn8F9uR1F0ALSwmtrOihtHn9
 CUc1XTUNuKIFg==
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 ry0leklqwgFF; Mon, 20 May 2024 08:04:04 -0700 (PDT)
Received: from [192.168.254.12] (unknown [47.154.17.165])
 by mail.cs.ucla.edu (Postfix) with ESMTPSA id 06EF23C00E8B0;
 Mon, 20 May 2024 08:04:04 -0700 (PDT)
Message-ID: <2b02264f-6b49-4d21-8c62-6bc081e18d64@HIDDEN>
Date: Mon, 20 May 2024 08:04:03 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#71013: Bug Report: Unexpected Termination of grep Process
To: Joseph Joshua <okikijoshua123@HIDDEN>
References: <CAO1wkveENTGdWA4B-hCbW+RppydR1BsZ=8NVp7uJbHJFu=0CLA@HIDDEN>
Content-Language: en-US
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
In-Reply-To: <CAO1wkveENTGdWA4B-hCbW+RppydR1BsZ=8NVp7uJbHJFu=0CLA@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71079
Cc: 71079 <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>
Reply-To: 71079 <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2024-05-17 05:52, Joseph Joshua wrote:
> 1. Run the following command as part of a build process: grep -r 'pattern'
> /path/to/directory

Please give us a way to reproduce the bug; including the actual pattern 
that you're using. Otherwise we won't be able to help.

Also, please reply to <71079 <at> debbugs.gnu.org> instead of creating a new 
bug report for each email message.

Thanks.




Information forwarded to bug-grep@HIDDEN:
bug#71079; Package grep. Full text available.
Merged 71013 71079. Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 May 2024 14:06:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 20 10:06:33 2024
Received: from localhost ([127.0.0.1]:42847 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s93eq-0005GS-JC
	for submit <at> debbugs.gnu.org; Mon, 20 May 2024 10:06:33 -0400
Received: from lists.gnu.org ([209.51.188.17]:45444)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <okikijoshua123@HIDDEN>) id 1s93Je-00051w-En
 for submit <at> debbugs.gnu.org; Mon, 20 May 2024 09:44:41 -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 <okikijoshua123@HIDDEN>)
 id 1s93HS-0000ua-1A
 for bug-grep@HIDDEN; Mon, 20 May 2024 09:42:22 -0400
Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <okikijoshua123@HIDDEN>)
 id 1s93HQ-0005rG-5u
 for bug-grep@HIDDEN; Mon, 20 May 2024 09:42:21 -0400
Received: by mail-lf1-x135.google.com with SMTP id
 2adb3069b0e04-51f1bf83f06so5213280e87.1
 for <bug-grep@HIDDEN>; Mon, 20 May 2024 06:42:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1716212538; x=1716817338; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=Xja/zGzGIGUdo+gNPJAjtsNLsT469QTcqu/yU5Nsh6s=;
 b=h7A81haSJvOrfPBeCt3ckKPeeGBEbZAIRuB/qOnF9Zyg3HkIozeBIF/xiKnMeKo+05
 AGPstMfp5BhEjgoqUnZpYhR27Gl6CnD6jMzw8NTpqcJhrARlSlLGaAhkI093vKnN+sxJ
 0OCpSTSFl/kAxJDHfutGGX4CryPTXjTC5qIBgufblw77aS4QmX+j0tNMxZM8BxNHnzbf
 jj3hceJg969pRysRm7QNsTRB0nexi0rtxggSiOYVmEF5rkz8gohSIYmoPyG3P2+X6wkG
 01EGJcbyGs+GZKACEdY4cmT23HZRcnRK3B6TNm1AO53AbhJ79LZIRX8J3lIO45bqj15u
 LCpg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1716212538; x=1716817338;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=Xja/zGzGIGUdo+gNPJAjtsNLsT469QTcqu/yU5Nsh6s=;
 b=e0L0OT62xb5Ja1GPogkJO4dCDIzVCLCnZQ0QpwVii2ZZmfUiXpa7LVL+wjbUrNLXMg
 Xd9E/+Cr/9t45GLWzjI0sKOi5S2n1nafLsyxt+Bkd1j1GOLl5WzxoPBZJF5n+tvPkh0U
 tu59Vvd9bk4ZiupKH+kMOHrx/rEbCpkg+58h/paqLmQpw5sblX6TqnQK0EJi1pGnljV8
 EzHTHyEj/62HrE5JaWfoYTbXIXonID3f4KBAszFqg2E5Mw/A/LCUf5weGg3i0gObvyWQ
 WvLgZquvoDrSsKHx1hFGFbbTPxPwypfa2fweY8+MtKaFGfe9QENDUxm+gajC2RhqcEAt
 1a/Q==
X-Gm-Message-State: AOJu0YxHcxfD4LF/wiwCXu+s3PdYVC1NvJtyuwZaT6OYRnELzfDhSNVi
 5FuJ1mIvTBmcUySw7VGSu0bvvAxCqr16gXFUaH3lPsH1jCwkeN5TFwjKb1vUwjWdGye1uQZxWC8
 V2z944bfTliMkndEyVwtGxNHYe1AJETHn6iLWPg==
X-Google-Smtp-Source: AGHT+IGAH8m/AMUDtSBcLNfBwoUKQRpt+3PoEcE5opHgcHoviU5BUAZ8wG/0nbpD7jkjNcGrjxWf6NVrocnN+vJjK3U=
X-Received: by 2002:a05:6512:158e:b0:51d:68fb:5d73 with SMTP id
 2adb3069b0e04-5220fb768fcmr26510812e87.8.1716212537515; Mon, 20 May 2024
 06:42:17 -0700 (PDT)
MIME-Version: 1.0
From: Joseph Joshua <okikijoshua123@HIDDEN>
Date: Mon, 20 May 2024 14:42:03 +0100
Message-ID: <CAO1wkvety1+SjBzuRCLyUYnyRti=M1yXqJVxAcm=y1wY-6NrsA@HIDDEN>
Subject: Bug Report: Unexpected Termination of grep Process
To: bug-grep@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000a869ec0618e2de79"
Received-SPF: pass client-ip=2a00:1450:4864:20::135;
 envelope-from=okikijoshua123@HIDDEN; helo=mail-lf1-x135.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=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.1 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 20 May 2024 10:06:31 -0400
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: -2.1 (--)

--000000000000a869ec0618e2de79
Content-Type: text/plain; charset="UTF-8"

Dear GNU Grep Maintainers,

I have upgraded to GNU grep version 3.11 and re-ran the test.
Unfortunately, the issue persists. Below are the detailed steps and the
transcript of the commands and their outputs:

### System Information:
- **Grep Version**: 3.11
- **Operating System**: Debian GNU/Linux 12 (bookworm)
- **Memory**:
  - Total RAM: 2.7 GiB
  - Used RAM: 1.8 GiB
  - Free RAM: 594 MiB
  - Shared: 64 MiB
  - Buff/Cache: 331 MiB
  - Available: 926 MiB
  - Swap: Not configured

### Steps to Reproduce:

1. **Directory Listing**:
    ```bash
    $ ls -l /path/to/directory
    total 4
    -rw-r--r-- 1 user user  20 May 17 12:34 file1.txt
    -rw-r--r-- 1 user user  15 May 17 12:34 file2.txt
    drwxr-xr-x 2 user user 4096 May 17 12:34 subdir
    ```

2. **Command Execution with Specific Pattern**:
    ```bash
    $ grep -r 'specific_pattern' /path/to/directory
    ```

3. **Output and Errors**:
    ```plaintext
    $ script -c "grep -r 'specific_pattern' /path/to/directory" output.log
    Script started, file is output.log
    The build failed because the process exited too early. This probably
means the system ran out of memory or someone called `kill -9` on the
process.
    Usage: grep [OPTION]... PATTERNS [FILE]...
    Try 'grep --help' for more information.
    Script done, file is output.log
    ```

Please let me know if further information is required to diagnose and
resolve this issue.

Thank you for your assistance.

Yours faithfully,
Joshua
09023556682
okikijoshua123@HIDDEN

--000000000000a869ec0618e2de79
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>Dear GNU Grep Maintainers,<br><br>I have upgraded =
to GNU grep version 3.11 and re-ran the test. Unfortunately, the issue pers=
ists. Below are the detailed steps and the transcript of the commands and t=
heir outputs:<br><br>### System Information:<br>- **Grep Version**: 3.11<br=
>- **Operating System**: Debian GNU/Linux 12 (bookworm)<br>- **Memory**:<br=
>=C2=A0 - Total RAM: 2.7 GiB<br>=C2=A0 - Used RAM: 1.8 GiB<br>=C2=A0 - Free=
 RAM: 594 MiB<br>=C2=A0 - Shared: 64 MiB<br>=C2=A0 - Buff/Cache: 331 MiB<br=
>=C2=A0 - Available: 926 MiB<br>=C2=A0 - Swap: Not configured<br><br>### St=
eps to Reproduce:<br><br>1. **Directory Listing**:<br>=C2=A0 =C2=A0 ```bash=
<br>=C2=A0 =C2=A0 $ ls -l /path/to/directory<br>=C2=A0 =C2=A0 total 4<br>=
=C2=A0 =C2=A0 -rw-r--r-- 1 user user =C2=A020 May 17 12:34 file1.txt<br>=C2=
=A0 =C2=A0 -rw-r--r-- 1 user user =C2=A015 May 17 12:34 file2.txt<br>=C2=A0=
 =C2=A0 drwxr-xr-x 2 user user 4096 May 17 12:34 subdir<br>=C2=A0 =C2=A0 ``=
`<br><br>2. **Command Execution with Specific Pattern**:<br>=C2=A0 =C2=A0 `=
``bash<br>=C2=A0 =C2=A0 $ grep -r &#39;specific_pattern&#39; /path/to/direc=
tory<br>=C2=A0 =C2=A0 ```<br><br>3. **Output and Errors**:<br>=C2=A0 =C2=A0=
 ```plaintext<br>=C2=A0 =C2=A0 $ script -c &quot;grep -r &#39;specific_patt=
ern&#39; /path/to/directory&quot; output.log<br>=C2=A0 =C2=A0 Script starte=
d, file is output.log<br>=C2=A0 =C2=A0 The build failed because the process=
 exited too early. This probably means the system ran out of memory or some=
one called `kill -9` on the process.<br>=C2=A0 =C2=A0 Usage: grep [OPTION].=
.. PATTERNS [FILE]...<br>=C2=A0 =C2=A0 Try &#39;grep --help&#39; for more i=
nformation.<br>=C2=A0 =C2=A0 Script done, file is output.log<br>=C2=A0 =C2=
=A0 ```<br><br>Please let me know if further information is required to dia=
gnose and resolve this issue.<br><br>Thank you for your assistance.<br><br>=
Yours faithfully,<br>Joshua<br>09023556682<br><a href=3D"mailto:okikijoshua=
123@HIDDEN">okikijoshua123@HIDDEN</a><br></div>

--000000000000a869ec0618e2de79--




Acknowledgement sent to Joseph Joshua <okikijoshua123@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-grep@HIDDEN. Full text available.
Report forwarded to bug-grep@HIDDEN:
bug#71079; Package grep. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 20 May 2024 15:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.