GNU bug report logs - #54194
Memory Leak on Fedora Machine

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: Mahyar Mirrashed <mirrashm@HIDDEN>; Keywords: moreinfo; dated Mon, 28 Feb 2022 08:16:07 UTC; Maintainer for grep is bug-grep@HIDDEN.
Added tag(s) moreinfo. Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 54194) by debbugs.gnu.org; 28 Feb 2022 17:38:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 28 12:38:21 2022
Received: from localhost ([127.0.0.1]:34690 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nOjyX-0006Fj-KA
	for submit <at> debbugs.gnu.org; Mon, 28 Feb 2022 12:38:21 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:33512)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1nOjyW-0006FV-5t
 for 54194 <at> debbugs.gnu.org; Mon, 28 Feb 2022 12:38:21 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id E3F05160171;
 Mon, 28 Feb 2022 09:38:13 -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 8W_6fgZfbaRQ; Mon, 28 Feb 2022 09:38:13 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2AC6C16017E;
 Mon, 28 Feb 2022 09:38:12 -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 Z8vP7ojeI1Ie; Mon, 28 Feb 2022 09:38:12 -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 AFA08160174;
 Mon, 28 Feb 2022 09:38:11 -0800 (PST)
Message-ID: <e976e327-88d8-b4ac-b593-7e1d1f9d7f33@HIDDEN>
Date: Mon, 28 Feb 2022 09:38:11 -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#54194: Memory Leak on Fedora Machine
Content-Language: en-US
To: Mahyar Mirrashed <mirrashm@HIDDEN>
References: <CAKpDRSUu+nfNQUGNgMwxFQB2Uuqp=7akar5bcXosR3JR_YOVjA@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
In-Reply-To: <CAKpDRSUu+nfNQUGNgMwxFQB2Uuqp=7akar5bcXosR3JR_YOVjA@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 54194
Cc: 54194 <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: -3.3 (---)

On 2/27/22 21:34, Mahyar Mirrashed wrote:
> I accidentally profiled
> `grep` and noticed that there was over 110KB of memory leakage.

There's a good possibility that it's not a true memory leakage. grep 
doesn't bother freeing storage just before it exits, merely to pacify 
memory checkers, as it's faster to simply exit. To find out for sure 
you'll need to investigate further.




Information forwarded to bug-grep@HIDDEN:
bug#54194; Package grep. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 28 Feb 2022 08:15:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 28 03:15:30 2022
Received: from localhost ([127.0.0.1]:59935 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nObBp-0000wg-V3
	for submit <at> debbugs.gnu.org; Mon, 28 Feb 2022 03:15:30 -0500
Received: from lists.gnu.org ([209.51.188.17]:56872)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mirrashm@HIDDEN>) id 1nOZ09-0005m1-7g
 for submit <at> debbugs.gnu.org; Mon, 28 Feb 2022 00:55:17 -0500
Received: from eggs.gnu.org ([209.51.188.92]:40018)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mirrashm@HIDDEN>)
 id 1nOZ08-0002XE-Qr
 for bug-grep@HIDDEN; Mon, 28 Feb 2022 00:55:17 -0500
Received: from mail-eopbgr670120.outbound.protection.outlook.com
 ([40.107.67.120]:55264 helo=CAN01-TO1-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 <mirrashm@HIDDEN>)
 id 1nOZ07-0002uM-4H
 for bug-grep@HIDDEN; Mon, 28 Feb 2022 00:55:16 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=hR8tJJNmPxaDEzsOcUPOAyfe4VGeqlH+qMuuIMXaJsca4ktBsec7diZf+DxN4rC73rPHrR0zbys64MXzA6KUx8nw5jFLxWWHSyN4ZJi3Pk2icWoFgSUIR7JLQc1a42qgT1HARguDAqz5QOCJCsbx7hX0/s23YFdlDs+ihrhPIPzRKdMCBs/PGDdBeXoK5uML9Tpbkr24x1AXE278QZdL6YeV3qTurpvF86EFNcmBpusTHo9iB2iW2cp+hVjDZH9HgNjd4p6KCZ0gB57e9a84aXrl16R9Vf5oqcqHLdL4fMqjgasIT0PtlMEravzjC0GW9sQ7EYkZ09jHmurqeR4vnA==
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=6qhq2neTB7tSkSOWD8vwtDf46IXfiX2fG2KRmPD3vdI=;
 b=U38puox7h9Og67Q6z220l/sZSBZYw52roO9Qp0zDapwnwPBKgPbaNZ1zpZOn/ER6cV5dkueZztuIDMosmE71SgLGlx6J8MAftIAeFOO8YHDzmXrnqSVauyCJ8+9Emk2pFQGW7yvJ2Y1dcx0mFmxVdoLnPZyXynVtjeAi+168bBdsF9i61PPoBNLH1K0QFXJYxHgauOw55yCkX8GR6Ec4NZqcCBgpD1tFmueYIlsAEJu9w9uodR1kldUV2Swql5XRLFQJ0ZLPSt0Ck7cLskMqCdhfVuruYghFvdSlBvD2NbdxGDtRUFLMFo+CMokDnZep7AIHdKt5QVTRBclD/0km8g==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=myumanitoba.ca; dmarc=pass action=none
 header.from=myumanitoba.ca; dkim=pass header.d=myumanitoba.ca; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=umanitoba.onmicrosoft.com; s=selector2-umanitoba-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=6qhq2neTB7tSkSOWD8vwtDf46IXfiX2fG2KRmPD3vdI=;
 b=VCUSh1h3xQA/LRw/OzY0T5WaFXQUgjuSvc3/ciLP6/rzmIReR/zLdq2HvL2bmCIW4O2Vu6qEa7Zow2HX1pYiiHwG7oN5CwZZOINKpPVHbYAo65z1D9BnZilHJd9JQoIJDiB4H0axgyb4srI4zlwqRh2Kqlgv4PzqxAxeywXWPGQ=
Authentication-Results: dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=myumanitoba.ca;
Received: from QB1PR01MB3523.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:38::12)
 by QB1PR01MB2321.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:3c::18)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22; Mon, 28 Feb
 2022 05:34:44 +0000
Received: from QB1PR01MB3523.CANPRD01.PROD.OUTLOOK.COM
 ([fe80::593c:fd4c:b19b:810d]) by QB1PR01MB3523.CANPRD01.PROD.OUTLOOK.COM
 ([fe80::593c:fd4c:b19b:810d%4]) with mapi id 15.20.5017.026; Mon, 28 Feb 2022
 05:34:44 +0000
X-Gm-Message-State: AOAM531vrM3GRFbVgmwN3HEKIQfQ31Ou82n74P+1n/oCb1n+oSRI3y7l
 RhIqq9WN3dEve8Z+ueaE54fnM9OiNgN01UjoiH0=
X-Google-Smtp-Source: ABdhPJyG45RvL+tVGP6v7CXWFjhRYii6Y3IqahU+cNbF4ldlqdqn471Dl8Kt7iBkGsXU4ghNppLWWmGYOqSfOveDDuk=
X-Received: by 2002:a05:6214:17c8:b0:432:b906:642a with SMTP id
 cu8-20020a05621417c800b00432b906642amr11476453qvb.58.1646026483072; Sun, 27
 Feb 2022 21:34:43 -0800 (PST)
From: Mahyar Mirrashed <mirrashm@HIDDEN>
Date: Sun, 27 Feb 2022 23:34:07 -0600
X-Gmail-Original-Message-ID: <CAKpDRSUu+nfNQUGNgMwxFQB2Uuqp=7akar5bcXosR3JR_YOVjA@HIDDEN>
Message-ID: <CAKpDRSUu+nfNQUGNgMwxFQB2Uuqp=7akar5bcXosR3JR_YOVjA@HIDDEN>
Subject: Memory Leak on Fedora Machine
To: bug-grep@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000d0836c05d90d676d"
X-ClientProxiedBy: BL0PR03CA0010.namprd03.prod.outlook.com
 (2603:10b6:208:2d::23) To QB1PR01MB3523.CANPRD01.PROD.OUTLOOK.COM
 (2603:10b6:c00:38::12)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: b0495e5c-4e70-476e-d1a5-08d9fa7c06b7
X-MS-TrafficTypeDiagnostic: QB1PR01MB2321:EE_
X-Microsoft-Antispam-PRVS: <QB1PR01MB2321F35B2F172B07BEDE20EEB7019@HIDDEN>
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: a9SN1DXuZlqXfURzkJz/TnsTqfUxAszB6FpIS3WhZvAOyyVDfBA5lTxu+vbpGZuS33RZ8O7DpvJ0u7K4sPCRbKF0V7dMDCAAvQ/ishx45L15FB7FgWnIKRZ/iW7NyMxtm+AsWSZTqLAkMdA6ikfR4n+m+HXzaU34Y6hGrKXaUYEawaebiI5NzKWS5DE8fiCTq0kXx7mwYFTM58DGLEJ8RfGuBySpT1rkXEgHiB4eh+F2L2JH22EXuAXcYqqRgFLs+PoDxFMyMrr7GyYcR+cDHhZlVEcvdV0oxwv0UX3uFUcLJtedhFvP5xgapA/GsozYF2lPNodqtdcuAvaqF8IZR6Mb4/Jf+fPNW55VjmSS0IGHwwmwLCwV6QAK61hoQnWldJrdM3YEFXyI77IMApC050uK4xHkQclKBzAwPUT4X0DFy6XwS1U9zQnLTFijeNnzJZhPwIF91vhn+Ai+Rgjqa6JRelXOIyLfEMmiC2n9Xe7z5i3pc/47OfIo/ma7x40GJwP9XsZB7o2DsLgJpnneCngdwOmehN6x1Zio7bm7PvNadwmop1j1neqZQ230yVi/Nj6uU6EOvVpMGQrfWNYxFxH4kXC8qnwknAtgHYg6LWOQc57xFOIOodqPqm1wvGjrLuRGtFJ0Xntze796loKvUn2WfFBbcHWuNUdAcK4znaSnPu4tuuGBH9Kaf+uMmVKGW7zh7f1OinlpdJfTthkchw==
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:QB1PR01MB3523.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE;
 SFS:(13230001)(366004)(6916009)(316002)(33964004)(786003)(9686003)(6486002)(83380400001)(5660300002)(2906002)(8936002)(8676002)(66476007)(26005)(55236004)(186003)(55446002)(86362001)(38350700002)(508600001)(52116002)(38100700002)(66946007)(6506007)(66556008)(6512007)(6666004);
 DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VTBYYUFTQnBFejNxWnczZVNwaTUwd0IvdW9DeE1GVzRLdjBQSzNDWW9VcmxS?=
 =?utf-8?B?bWlFaHp2Tk1GYzVCbFBmbkNIVXBBdmJqOVREZ1ovbTd4NURNTmJmZWUwcUtN?=
 =?utf-8?B?eVU0cmpBeFEvNFBaM24vbkVyMjdheTFZTnNpVlhqYzE1QnBlVk5zOWozdnlj?=
 =?utf-8?B?bmZEcFUydEtoeGZYbVpCUjdRcTI2Y2k4TVVWWW1lczlrUFpWSEtPTmgyRFpz?=
 =?utf-8?B?bEVic2R3Nz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psbDJ6Y3RWYmdCRHRoR2tVTVRXRHl4REd3ZmFtN3M1c1oreUdPN3dWdjVN?=
 =?utf-8?B?aHFRazZEWUhOcStaeDJoRDF0ZEp5dEtkMFI1YXdaV1ZSWFZGQW1lcGt2MGx5?=
 =?utf-8?B?VEE4amFuNjI0UzBkU0VKMHd2S0FRUGtFZ1U3eUx6ZG9ZNnFNcFhWamxLMTNS?=
 =?utf-8?Q?/vYmHWugCcEnPTZSahmIfx0=3D?=
X-OriginatorOrg: myumanitoba.ca
X-MS-Exchange-CrossTenant-Network-Message-Id: b0495e5c-4e70-476e-d1a5-08d9fa7c06b7
X-MS-Exchange-CrossTenant-AuthSource: QB1PR01MB3523.CANPRD01.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2022 05:34:44.6796 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 4f80dd0b-338c-4e4c-8a14-90446962f7b8
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: 2ncZdXIDwLWBMO8aLdsmVvZTNGjmTezt/ech/kGUsC1u3yR2zLg5c20bQVAwlhz/VWyK3+7RvDBzEGbFnP/GiA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: QB1PR01MB2321
Received-SPF: pass client-ip=40.107.67.120;
 envelope-from=mirrashm@HIDDEN;
 helo=CAN01-TO1-obe.outbound.protection.outlook.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, HTML_MESSAGE=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=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 28 Feb 2022 03:15:21 -0500
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.4 (--)

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

Hi there,

I was implementing a simplistic shell script parser for fun in C. When
profiling with valgrind with --trace-children=yes, I accidentally profiled
`grep` and noticed that there was over 110KB of memory leakage.

I am running grep v3.6 which is the most recent according to `dnf` on
Fedora Linux 35 (KDE Plasma) x86_64 with kernel 5.16.9-200

Thinking that it was because of whatever came with Fedora, I tried
compiling from source but the same memory leakage persisted.

The line that I was profiling was
cat /proc/self/status | grep nonvol > nonvoluntaryswitches.txt

Regards,
Mahyar

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

<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8"><d=
iv dir=3D"ltr"><div>Hi there,</div><div><br></div><div>I was implementing a=
 simplistic shell script parser for fun in C. When profiling with valgrind =
with --trace-children=3Dyes, I accidentally profiled `grep` and noticed tha=
t there was over 110KB of memory leakage.</div><div><br></div><div>I am run=
ning grep v3.6 which is the most recent according to `dnf` on Fedora Linux =
35 (KDE Plasma) x86_64 with kernel 5.16.9-200<br></div><div><br></div><div>=
Thinking that it was because of whatever came with Fedora, I tried compilin=
g from source but the same memory leakage persisted.</div><div><br></div><d=
iv>The line that I was profiling was <br><div style=3D"color:rgb(247,241,25=
5);background-color:rgb(34,34,34);font-family:FiraCode NF,Consolas,&quot;Co=
urier New&quot;,monospace,&quot;Droid Sans Mono&quot;,&quot;monospace&quot;=
,monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:p=
re"><div><span style=3D"color:rgb(247,241,255)">cat /proc/self/status </spa=
n><span style=3D"color:rgb(252,97,141)">|</span><span style=3D"color:rgb(24=
7,241,255)"> grep nonvol </span><span style=3D"color:rgb(252,97,141)">&gt;<=
/span><span style=3D"color:rgb(247,241,255)"> nonvoluntaryswitches.txt</spa=
n></div></div></div><div><br></div><div>Regards,</div><div>Mahyar<br></div>=
</div>

--000000000000d0836c05d90d676d--




Acknowledgement sent to Mahyar Mirrashed <mirrashm@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-grep@HIDDEN. Full text available.
Report forwarded to bug-grep@HIDDEN:
bug#54194; 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, 28 Feb 2022 17:45:01 UTC

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